TWI719330B - Electronic device and driving safety reminding method - Google Patents
Electronic device and driving safety reminding method Download PDFInfo
- Publication number
- TWI719330B TWI719330B TW107126249A TW107126249A TWI719330B TW I719330 B TWI719330 B TW I719330B TW 107126249 A TW107126249 A TW 107126249A TW 107126249 A TW107126249 A TW 107126249A TW I719330 B TWI719330 B TW I719330B
- Authority
- TW
- Taiwan
- Prior art keywords
- coordinates
- electronic device
- vehicle
- image
- module
- Prior art date
Links
Images
Abstract
Description
本發明涉及行車安全領域,尤其是一種電子裝置及行車安全提醒方法。 The invention relates to the field of driving safety, in particular to an electronic device and a driving safety reminding method.
隨著車輛在日常生活中的日益普及,車輛成為工作和生活中一種有效的交通工具,然而遇到疲勞駕駛或精神不集中時,很可能發生交通事故,安全駕駛顯得尤為重要。普遍的避免交通事故發生的手段有很多例如喝提神飲料、嚼口香糖、聽音樂或廣播、和同行人員聊天、製造短暫輕微痛感等。然而,這些方法在只有一個人駕駛時,風險相對較高,而如何在只有一個人駕駛時提醒行車安全顯得尤為重要。 With the increasing popularity of vehicles in daily life, vehicles have become an effective means of transportation in work and life. However, when experiencing fatigue driving or lack of concentration, traffic accidents are likely to occur, and safe driving is particularly important. There are many common ways to avoid traffic accidents, such as drinking refreshing drinks, chewing gum, listening to music or radio, chatting with colleagues, and creating short-term mild pain. However, these methods are relatively risky when there is only one person driving, and how to remind the driving safety when there is only one person driving is particularly important.
針對以上內容,有必要提供一種能解決上述問題的電子裝置及行車安全提醒方法。 In view of the above content, it is necessary to provide an electronic device and a driving safety reminding method that can solve the above problems.
一種電子裝置,所述電子裝置包括記憶體;至少一個處理器;以及多個模組,所述多個模組存儲在所述記憶體中,並由所述至少一個處理器執行,所述多個模組包括:獲取模組,用於獲取一駕駛者的眼部影像和前方景物影像;偵測模組,用於根據所述眼部影像偵測所述駕駛者的瞳孔座標;換算模 組,用於根據瞳孔座標與車輛前方景物影像中的視角座標之間的預設映射關係將所述駕駛者的瞳孔座標換算成前方景物影像中的視角座標,所述預設映射關係為預先存儲於所述電子裝置內的一個映射表;查找模組,用於在前方景物影像中查找車輛前方一預設距離內的物體;判斷模組,用於判斷所述視角座標是否位於所述物體所對應的安全範圍內,所述車輛前方景物影像被劃分成多個區域,所述安全範圍是所述物體所在的區域,其中,當所述視角座標位於所述物體所在的區域時,判斷所述視角座標處於所述安全範圍內,否則所述判斷模組判斷所述視角座標位於所述安全範圍外;及提示模組,用於在所述視角座標不在所述物體所對應的安全範圍內時,發出一提示信號。 An electronic device including a memory; at least one processor; and a plurality of modules, the plurality of modules are stored in the memory and executed by the at least one processor, and the plurality of modules are stored in the memory and executed by the at least one processor. Each module includes: an acquisition module, which is used to acquire a driver’s eye image and a front scene image; a detection module, which is used to detect the driver’s pupil coordinates based on the eye image; and a conversion module Group, used to convert the pupil coordinates of the driver to the angle of view coordinates in the front scene image according to the preset mapping relationship between the pupil coordinates and the angle of view coordinates in the scene image in front of the vehicle, and the preset mapping relation is stored in advance A mapping table in the electronic device; a search module for finding objects within a preset distance in front of the vehicle in the front scene image; a judging module for judging whether the perspective coordinates are located at the object Within the corresponding safe range, the image of the scene in front of the vehicle is divided into a plurality of areas. The safe range is the area where the object is located. When the view angle coordinates are located in the area where the object is located, it is determined that the The viewing angle coordinates are within the safe range, otherwise the judgment module judges that the viewing angle coordinates are outside the safe range; and a prompt module is used for when the viewing angle coordinates are not within the safe range corresponding to the object , Send out a reminder signal.
一種行車安全提醒方法,包括獲取一駕駛者的眼部影像和前方景物影像;根據所述眼部影像偵測所述駕駛者的瞳孔座標;根據瞳孔座標與車輛前方景物影像中的視角座標之間的預設映射關係將所述駕駛者的瞳孔座標換算成前方景物影像中的視角座標,所述預設映射關係為預先存儲於電子裝置內的一個映射表;在前方景物影像中查找車輛前方一預設距離內的物體;判斷所述視角座標是否位於所述物體所對應的安全範圍內,所述車輛前方景物影像被劃分成多個區域,所述安全範圍是所述物體所在的區域,其中,當所述視角座標位於所述物體所在的區域時,判斷所述視角座標處於所述安全範圍內,否則所述判斷模組判斷所述視角座標位於所述安全範圍外;及在所述視角座標不在所述物體所對應的安全範圍內時,發出一提示信號。 A driving safety reminder method, including acquiring a driver’s eye image and a front scene image; detecting the driver’s pupil coordinates according to the eye image; according to the difference between the pupil coordinates and the field of view coordinates in the vehicle’s front scene image The preset mapping relationship of the driver converts the pupil coordinates of the driver into the field of view coordinates in the front scene image. The preset mapping relationship is a mapping table stored in the electronic device in advance; An object within a preset distance; judging whether the viewing angle coordinates are within a safe range corresponding to the object, the image of the scene in front of the vehicle is divided into a plurality of areas, and the safe range is the area where the object is located, wherein , When the viewing angle coordinates are located in the area where the object is located, determining that the viewing angle coordinates are within the safe range; otherwise, the judging module judges that the viewing angle coordinates are outside the safe range; and in the viewing angle When the coordinates are not within the safety range corresponding to the object, a prompt signal is sent out.
所述電子裝置及行車安全提醒方法能夠在只有駕駛者一個人開車時,出現駕駛疲勞或精神不集中的情況時,提醒駕駛者,從而達到安全駕駛的目的。 The electronic device and the driving safety reminding method can remind the driver when driving fatigue or lack of concentration occurs when the driver is driving alone, so as to achieve the goal of safe driving.
10:電子裝置 10: Electronic device
11:處理器 11: processor
12:記憶體 12: Memory
100:行車安全提醒系統 100: Driving safety reminder system
20:拍攝組件 20: Shooting components
23:提示模組 23: Prompt module
25:無線通訊模組 25: Wireless communication module
31:獲取模組 31: Obtain the module
33:偵測模組 33: Detection module
35:換算模組 35: Conversion module
37:調整模組 37: Adjustment module
39:查找模組 39: Find Module
40:判斷模組 40: Judgment module
1:第一點 1: the first point
2:第二點 2: second point
3:第三點 3: third point
4:第四點 4: The fourth point
5:第五點 5: The fifth point
圖1為本發明電子裝置一較佳實施例的系統架構圖。 FIG. 1 is a system architecture diagram of a preferred embodiment of an electronic device of the present invention.
圖2為本發明電子裝置應用的行車安全提醒系統一較佳實施例的功能模組圖。 2 is a functional module diagram of a preferred embodiment of the driving safety reminding system applied by the electronic device of the present invention.
圖3為本發明行車安全提醒方法的一較佳實施例的流程圖。 Fig. 3 is a flowchart of a preferred embodiment of the driving safety reminding method of the present invention.
圖4為本發明前方景物投影的示意圖。 Fig. 4 is a schematic diagram of the front scene projection of the present invention.
參閱圖1所示,是本發明電子裝置10較佳實施例的架構圖。電子裝置10放置或設置在一車輛中。在本實施例中,電子裝置10包括,但不限於,至少一個處理器11、記憶體12、拍攝組件20、提示模組23及無線通訊模組25。
上述各個元件之間電氣連接。在本較佳實施例中,所述電子裝置10可以是手機、行車記錄儀等具有拍攝功能的設備。
Referring to FIG. 1, it is a structural diagram of a preferred embodiment of an
所述處理器11可以為中央處理器、微處理器或其他具有資料處理功能的晶片。
The
所述記憶體12可以是電子裝置10本身的記憶體,也可以是外部記憶體,如智慧媒體卡(Smart Media Card)、安全數位卡(Secure Digital Card)、快閃記憶體卡(Flash Card)等。所述記憶體12安裝有一行車安全提醒系統100。
The
拍攝組件20用於拍攝車輛的駕駛者的眼部影像和車輛前方景物影像,並可以將拍攝到的影像存儲於記憶體12中。
The photographing
在一實施例中,拍攝組件20包括第一相機和第二相機。所述第一相機用於拍攝車輛前方景物影像,所述第二相機用於拍攝駕駛者的眼部影像。
In an embodiment, the photographing
在另一實施例中,拍攝組件20用於拍攝駕駛者的眼部影像。車輛前方景物影像由一電子設備(圖未示)拍攝。所述電子裝置10可以藉由所述無
線通訊模組25與所述電子設備無線連接,用於獲取所述電子設備拍攝的車輛前方景物影像。所述電子設備可以是行車記錄儀等其他具有拍攝功能的設備。
In another embodiment, the photographing
在又一實施例中,所述拍攝組件20可以省略,即電子裝置10本身可以不包括拍攝組件20,而是藉由連接到所述電子設備以獲取駕駛者的眼部影像和車輛前方景物影像。所述電子裝置10可以藉由所述無線通訊模組25與所述電子設備無線連接,用於獲取所述電子設備拍攝的駕駛者的眼部影像和車輛前方景物影像。
In yet another embodiment, the photographing
提示模組23用於發出一提示信號給所述駕駛者。所述提示信號可以是警示音,所述警示音預先存儲在所述電子裝置10內。
The
無線通訊模組25用於所述電子裝置10與所述電子設備或無線網路(圖未示)的通信連接。所述無線通訊模組25可為Wi-Fi模組、藍牙模組或ZigBee等無線通訊模組。
The
在本較佳實施例中,所述行車安全提醒系統100可以被分割成多個模組,所述多個模組存儲在所述記憶體12中,並由所述處理器11執行,使得電子裝置10以回應對使用者的行車安全提醒。
In the preferred embodiment, the driving
請同時參閱圖2,所述行車安全提醒系統100包括獲取模組31、偵測模組33、換算模組35、調整模組37、查找模組39、判斷模組40。本發明所稱的模組可以是完成一特定功能的程式段,比程式更適合用於描述軟體在電子裝置10中的執行過程,關於各模組的詳細功能將結合圖3的流程圖作具體的描述。
Please also refer to FIG. 2, the driving
參閱圖3所示,是本發明用於一電子裝置10上的行車安全提醒方法較佳實施例的流程圖。根據不同需求,該流程圖中步驟的順序可以改變,某些步驟可以省略或合併。
Referring to FIG. 3, it is a flowchart of a preferred embodiment of a driving safety reminding method used on an
步驟S300,獲取模組31獲取駕駛者的眼部影像和車輛前方景物影像。
In step S300, the
在本較佳實施例中,所述駕駛者可調整電子裝置10的位置,使所述電子裝置10的拍攝組件20能夠拍攝到所述駕駛者的眼部影像以及車輛前方景物影像。
In this preferred embodiment, the driver can adjust the position of the
在一實施方式中,所述拍攝組件20是具備可轉動地調整方向及角度的鏡頭。獲取模組31獲取拍攝組件20拍攝的所述駕駛者的眼部影像和車輛前方景物影像。
In one embodiment, the photographing
在另一較佳實施例中,所述電子裝置10與所述電子設備無線連接,使得獲取模組31獲取所述電子設備拍攝的車輛前方景物影像和所述拍攝組件20拍攝的所述駕駛者的眼部影像。所述電子裝置10可以藉由無線通訊模組25與所述電子設備進行通信及資料交換。
In another preferred embodiment, the
在第三較佳實施例中,所述電子裝置10與所述電子設備無線連接,使得獲取模組31獲取所述電子設備拍攝的車輛前方景物影像和所述駕駛者的眼部影像。所述電子設備可以包括第一相機和第二相機。所述第一相機可以用於拍攝車輛前方景物影像,所述第二相機可以用於拍攝駕駛者的眼部影像。
In the third preferred embodiment, the
步驟S301,偵測模組33根據所述眼部影像偵測所述駕駛者的瞳孔座標,即所述駕駛者的瞳孔在所述眼部影像中的座標。
In step S301, the
步驟S302,換算模組35將所述瞳孔座標換算成車輛前方景物影像中的視角座標。所述視角座標用於指出所述瞳孔座標在車輛前方景物影像中的對應位置,即所述駕駛者正在注視的位置。
In step S302, the
在本較佳實施例中,所述車輛前方景物可被劃分成多個區域,例如四、六、八個區域或更多區域。在本實施例中,如圖4所示,以所述前方景物和/或車輛前方景物影像的中心5為原點,以平面直角坐標系將所述前方景物和/或前方景物影像劃分成四個區域,即第一區A、第二區B、第三區C和第四區D。藉由引導駕駛者轉動瞳孔分別觀看四個區域的角落上的第一點1、第二點2、第
三點3、第四點4及中央的第五點5。所述第五點5為四個區域交叉的點,所述第一點1為所述第一區A的左上角點,所述第二點2為所述第三區C的左下角點,所述第三點3為所述第二區B的右上角點,所述第四點4為所述第四區D的右下角點。可以理解,所述駕駛者可以轉動瞳孔分別觀看車輛擋風玻璃的中心點及四個邊角點。偵測模組33偵測所述駕駛者藉由所述第一點1、所述第二點2、所述第三點3、所述第四點4及所述第五點5觀看車輛前方景物時的瞳孔座標,換算模組35可根據這些瞳孔座標和線性內插法計算出所述駕駛者的眼部影像中的瞳孔座標與車輛前方景物影像中的視角座標之間的預設映射關係。
In this preferred embodiment, the scene in front of the vehicle can be divided into multiple areas, such as four, six, eight or more areas. In this embodiment, as shown in FIG. 4, the
在本較佳實施例中,所述預設映射關係可以是預先存儲在所述電子裝置10內的一個映射表。換算模組35可以根據所述映射表進行換算,將所述駕駛者的眼部影像中瞳孔座標換算成車輛前方景物影像中的視角座標。
In this preferred embodiment, the preset mapping relationship may be a mapping table stored in the
步驟S303,查找模組39在車輛前方景物影像中查找在車輛前方的預設距離內的物體。所述物體可以是人、動物、障礙物等可能造成行車安全隱患的物體。查找模組39可根據拍攝車輛前方景物影像時的焦距判斷車輛前方的物體距離。
In step S303, the
在本較佳實施例中,電子裝置10配置有衛星定位系統,例如全球定位系統(Global Positioning System,GPS),用於獲取車輛的車速資訊。調整模組37獲取當前的車速資訊,並根據當前的車速資訊調整所述預設距離。所述車速資訊可以是車輛行駛的速度。例如,當車輛行駛的速度較快時,調整模組37調整所述預設距離較長;當車輛行駛的速度較慢時,調整模組37調整所述預設距離較短。所述查找模組39在車輛前方景物影像中查找所述預設距離內的物體。
In this preferred embodiment, the
在另一較佳實施例中,所述電子裝置10沒有配置所述衛星定位系統。所述預設距離可以是固定值,例如20m、30m、50m等。所述預設距離可以
是預先存儲在記憶體12中的,也可以由所述駕駛者藉由調整模組37隨時設置。查找模組39在車輛前方景物影像中查找所述預設距離內的物體。
In another preferred embodiment, the
步驟S304,判斷模組40判斷所述視角座標是否位於在車輛前方的預設距離內的所述物體所對應的安全範圍內。所述安全範圍是車輛前方景物影像中的一個預設範圍。若所述視角座標位於所述安全範圍外,表示所述駕駛者並未關注所述物體,所述駕駛者可能處於危險狀態。
In step S304, the judging
在另一較佳實施例中,所述車輛前方景物影像被劃分成多個區域,所述安全範圍可以是所述物體所在的區域。如圖4所示,例如,前方有一動物在第一區A內,判斷模組40判斷駕駛者的視角座標是否在第一區A內。若駕駛者的視角座標位於第一區A內則判斷所述視角座標處於所述安全範圍內,否則判斷模組40判斷所述視角座標位於所述安全範圍外,所述駕駛者可能處於危險狀態。
In another preferred embodiment, the image of the scene in front of the vehicle is divided into a plurality of areas, and the safe range may be the area where the object is located. As shown in FIG. 4, for example, if there is an animal in front of the first zone A, the
步驟S305,提示模組23在所述視角座標不在所述物體所對應的安全範圍內時,發出一提示信號。所述提示信號可以是警示音,所述警示音預先存儲在所述電子裝置10內。
In step S305, the
在本較佳實施例中,判斷模組40判斷車輛前方景物影像中的視角座標不是位於所述物體所對應的安全範圍內時,提示模組23發出所述提示信號以提醒所述駕駛者。
In this preferred embodiment, when the judging
除了圖3的行車安全提醒方法以外,偵測模組33還可以藉由駕駛者的瞳孔座標確定駕駛者是否處於危險狀態。具體地,當偵測模組33偵測不到所述瞳孔座標時,說明駕駛者可能在打瞌睡或者在大幅度的左看右看,此時,駕駛者可能處於危險狀態,提示模組23發出所述提示信號以提醒所述駕駛者。當偵測模組33偵測到所述駕駛者的瞳孔座標經過一段預設時長均不變時,駕駛者可能在發呆或思考,提示模組23也會發出所述提示信號以提醒所述駕駛者。
In addition to the driving safety reminding method of FIG. 3, the
本發明提供的電子裝置及行車安全提醒方法能夠在駕駛者一個人開車時,出現駕駛疲勞或精神不集中的情況時,提醒駕駛者,從而達到安全駕駛的目的。 The electronic device and the driving safety reminding method provided by the present invention can remind the driver when driving fatigue or lack of concentration occurs when the driver is driving alone, thereby achieving the goal of safe driving.
綜上所述,本創作符合發明專利要件,爰依法提出專利申請。惟,以上所述者僅為本創作之較佳實施例,本創作之範圍並不以上述實施例為限,舉凡熟習本案技藝之人士爰依本創作之精神所作之等效修飾或變化,皆應涵蓋於以下申請專利範圍內。 In summary, this creation meets the requirements of an invention patent, and Yan filed a patent application in accordance with the law. However, the above are only the preferred embodiments of this creation, and the scope of this creation is not limited to the above embodiments. For those who are familiar with the techniques of this case, equivalent modifications or changes made in accordance with the spirit of this creation are all Should be covered in the scope of the following patent applications.
100:行車安全提醒系統 100: Driving safety reminder system
31:獲取模組 31: Obtain the module
33:偵測模組 33: Detection module
35:換算模組 35: Conversion module
37:調整模組 37: Adjustment module
39:查找模組 39: Find Module
40:判斷模組 40: Judgment module
Claims (9)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW107126249A TWI719330B (en) | 2018-07-27 | 2018-07-27 | Electronic device and driving safety reminding method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW107126249A TWI719330B (en) | 2018-07-27 | 2018-07-27 | Electronic device and driving safety reminding method |
Publications (2)
Publication Number | Publication Date |
---|---|
TW202008184A TW202008184A (en) | 2020-02-16 |
TWI719330B true TWI719330B (en) | 2021-02-21 |
Family
ID=70412973
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW107126249A TWI719330B (en) | 2018-07-27 | 2018-07-27 | Electronic device and driving safety reminding method |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI719330B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW200838750A (en) * | 2007-03-22 | 2008-10-01 | Univ Chang Gung | Intelligent driving safety monitoring system integrating multiple direction information and method thereof |
CN101500874A (en) * | 2006-09-14 | 2009-08-05 | 丰田自动车株式会社 | Sight-line end estimation device and driving assist device |
CN103770780A (en) * | 2014-01-15 | 2014-05-07 | 中国人民解放军国防科学技术大学 | Vehicle active safety system alarm shielding device |
US20150266486A1 (en) * | 2014-03-24 | 2015-09-24 | Volvo Car Corporation | Driver intention estimation arrangement |
-
2018
- 2018-07-27 TW TW107126249A patent/TWI719330B/en active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101500874A (en) * | 2006-09-14 | 2009-08-05 | 丰田自动车株式会社 | Sight-line end estimation device and driving assist device |
TW200838750A (en) * | 2007-03-22 | 2008-10-01 | Univ Chang Gung | Intelligent driving safety monitoring system integrating multiple direction information and method thereof |
CN103770780A (en) * | 2014-01-15 | 2014-05-07 | 中国人民解放军国防科学技术大学 | Vehicle active safety system alarm shielding device |
US20150266486A1 (en) * | 2014-03-24 | 2015-09-24 | Volvo Car Corporation | Driver intention estimation arrangement |
Also Published As
Publication number | Publication date |
---|---|
TW202008184A (en) | 2020-02-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9298994B2 (en) | Detecting visual inattention based on eye convergence | |
US10839694B2 (en) | Blind spot alert | |
US10298741B2 (en) | Method and device for assisting in safe driving of a vehicle | |
US9180814B2 (en) | Vehicle rear left and right side warning apparatus, vehicle rear left and right side warning method, and three-dimensional object detecting device | |
US20230106673A1 (en) | Vehicle and mobile device interface for vehicle occupant assistance | |
US9073493B1 (en) | Method and apparatus for adjusting view mirror in vehicle | |
US11562550B1 (en) | Vehicle and mobile device interface for vehicle occupant assistance | |
WO2018046015A1 (en) | Alarm method, device and terminal for vehicle | |
WO2018198926A1 (en) | Electronic device, roadside device, method for operation of electronic device, and traffic system | |
KR101298197B1 (en) | Vsdt rearview mirror for sleepiness prevention | |
JP7003689B2 (en) | Control device and agent cooperation method | |
CN105139583A (en) | Vehicle danger prompting method based on portable intelligent equipment | |
CN109664889B (en) | Vehicle control method, device and system and storage medium | |
EP3324378A1 (en) | Electronic safety system and method for detecting a vehicle driver's attention | |
JP6717330B2 (en) | Eye-gaze detecting device, control method of the eye-gaze detecting device, method of detecting corneal reflection image position, and computer program | |
JP7143736B2 (en) | Driving support device, wearable device, driving support method and program | |
TWI719330B (en) | Electronic device and driving safety reminding method | |
KR20200039046A (en) | Method for searching caller of autonomous vehicle | |
WO2019044456A1 (en) | Information processing device, vehicle, and roadside unit | |
CN110758237A (en) | Electronic device and driving safety reminding method | |
KR102067547B1 (en) | Method and detection for peripheral vehicle risk based on image analysis and communication connection between portable communication terminals and building cctv camera | |
JP7068606B2 (en) | Driving evaluation device, on-board unit, driving evaluation method, and computer program | |
CN111323042A (en) | Target object early warning method and device and electronic equipment | |
US11763679B2 (en) | Notification system and notification method | |
JP2019031264A (en) | Information processing method, information processing system, and program |