TWI719330B - Electronic device and driving safety reminding method - Google Patents

Electronic device and driving safety reminding method Download PDF

Info

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
Application number
TW107126249A
Other languages
Chinese (zh)
Other versions
TW202008184A (en
Inventor
劉伯彥
Original Assignee
群邁通訊股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 群邁通訊股份有限公司 filed Critical 群邁通訊股份有限公司
Priority to TW107126249A priority Critical patent/TWI719330B/en
Publication of TW202008184A publication Critical patent/TW202008184A/en
Application granted granted Critical
Publication of TWI719330B publication Critical patent/TWI719330B/en

Links

Images

Abstract

The present invention provides a driving safety reminding method. The driving safety reminding method includes steps of: obtaining an eye image of a driver and a front scene image; detecting pupil coordinates of the driver according to the eye image; converting the pupil coordinates of the driver into view coordinates in the front scene image; searching an object in a preset distance in front of a vehicle in the front scene image; determining whether the view coordinates are within a safe range corresponding to the object; and sending a prompt signal when the view coordinates are not within the safe range corresponding to the object. An electronic device is also provided.

Description

電子裝置及行車安全提醒方法 Electronic device and driving safety reminding method

本發明涉及行車安全領域,尤其是一種電子裝置及行車安全提醒方法。 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 electronic device 10 of the present invention. The electronic device 10 is placed or installed in a vehicle. In this embodiment, the electronic device 10 includes, but is not limited to, at least one processor 11, a memory 12, a photographing component 20, a prompting module 23, and a wireless communication module 25. Electrical connections between the above-mentioned components. In this preferred embodiment, the electronic device 10 may be a device with a photographing function, such as a mobile phone and a driving recorder.

所述處理器11可以為中央處理器、微處理器或其他具有資料處理功能的晶片。 The processor 11 may be a central processing unit, a microprocessor, or other chips with data processing functions.

所述記憶體12可以是電子裝置10本身的記憶體,也可以是外部記憶體,如智慧媒體卡(Smart Media Card)、安全數位卡(Secure Digital Card)、快閃記憶體卡(Flash Card)等。所述記憶體12安裝有一行車安全提醒系統100。 The memory 12 may be the memory of the electronic device 10 itself, or an external memory, such as a smart media card (Smart Media Card), a secure digital card (Secure Digital Card), and a flash memory card (Flash Card). Wait. The memory 12 is installed with a car safety reminding system 100.

拍攝組件20用於拍攝車輛的駕駛者的眼部影像和車輛前方景物影像,並可以將拍攝到的影像存儲於記憶體12中。 The photographing component 20 is used to photograph the eye image of the driver of the vehicle and the image of the scene in front of the vehicle, and can store the photographed image in the memory 12.

在一實施例中,拍攝組件20包括第一相機和第二相機。所述第一相機用於拍攝車輛前方景物影像,所述第二相機用於拍攝駕駛者的眼部影像。 In an embodiment, the photographing component 20 includes a first camera and a second camera. The first camera is used to capture images of a scene in front of the vehicle, and the second camera is used to capture images of the driver's eyes.

在另一實施例中,拍攝組件20用於拍攝駕駛者的眼部影像。車輛前方景物影像由一電子設備(圖未示)拍攝。所述電子裝置10可以藉由所述無 線通訊模組25與所述電子設備無線連接,用於獲取所述電子設備拍攝的車輛前方景物影像。所述電子設備可以是行車記錄儀等其他具有拍攝功能的設備。 In another embodiment, the photographing component 20 is used to photograph the driver's eye image. The image of the scene in front of the vehicle is captured by an electronic device (not shown). The electronic device 10 can be The line communication module 25 is wirelessly connected to the electronic device, and is used to obtain an image of a scene in front of the vehicle captured by the electronic device. The electronic device may be other devices with shooting function such as a driving recorder.

在又一實施例中,所述拍攝組件20可以省略,即電子裝置10本身可以不包括拍攝組件20,而是藉由連接到所述電子設備以獲取駕駛者的眼部影像和車輛前方景物影像。所述電子裝置10可以藉由所述無線通訊模組25與所述電子設備無線連接,用於獲取所述電子設備拍攝的駕駛者的眼部影像和車輛前方景物影像。 In yet another embodiment, the photographing component 20 may be omitted, that is, the electronic device 10 itself may not include the photographing component 20, but is connected to the electronic device to obtain the driver's eye image and the image of the scene in front of the vehicle. . The electronic device 10 may be wirelessly connected to the electronic device through the wireless communication module 25, and is used to obtain the driver's eye image and the image of the scene in front of the vehicle captured by the electronic device.

提示模組23用於發出一提示信號給所述駕駛者。所述提示信號可以是警示音,所述警示音預先存儲在所述電子裝置10內。 The prompt module 23 is used to send a prompt signal to the driver. The prompt signal may be a warning sound, and the warning sound is stored in the electronic device 10 in advance.

無線通訊模組25用於所述電子裝置10與所述電子設備或無線網路(圖未示)的通信連接。所述無線通訊模組25可為Wi-Fi模組、藍牙模組或ZigBee等無線通訊模組。 The wireless communication module 25 is used for the communication connection between the electronic device 10 and the electronic equipment or a wireless network (not shown). The wireless communication module 25 may be a wireless communication module such as a Wi-Fi module, a Bluetooth module, or ZigBee.

在本較佳實施例中,所述行車安全提醒系統100可以被分割成多個模組,所述多個模組存儲在所述記憶體12中,並由所述處理器11執行,使得電子裝置10以回應對使用者的行車安全提醒。 In the preferred embodiment, the driving safety reminding system 100 can be divided into a plurality of modules, and the plurality of modules are stored in the memory 12 and executed by the processor 11, so that the electronic The device 10 responds to the driving safety reminder to the user.

請同時參閱圖2,所述行車安全提醒系統100包括獲取模組31、偵測模組33、換算模組35、調整模組37、查找模組39、判斷模組40。本發明所稱的模組可以是完成一特定功能的程式段,比程式更適合用於描述軟體在電子裝置10中的執行過程,關於各模組的詳細功能將結合圖3的流程圖作具體的描述。 Please also refer to FIG. 2, the driving safety reminding system 100 includes an acquisition module 31, a detection module 33, a conversion module 35, an adjustment module 37, a search module 39, and a judgment module 40. The module referred to in the present invention can be a program segment that completes a specific function, which is more suitable for describing the execution process of software in the electronic device 10 than a program. The detailed functions of each module will be specifically combined with the flowchart in FIG. 3 description of.

參閱圖3所示,是本發明用於一電子裝置10上的行車安全提醒方法較佳實施例的流程圖。根據不同需求,該流程圖中步驟的順序可以改變,某些步驟可以省略或合併。 Referring to FIG. 3, it is a flowchart of a preferred embodiment of a driving safety reminding method used on an electronic device 10 of the present invention. According to different needs, the order of the steps in the flowchart can be changed, and some steps can be omitted or combined.

步驟S300,獲取模組31獲取駕駛者的眼部影像和車輛前方景物影像。 In step S300, the acquisition module 31 acquires the eye image of the driver and the scene image in front of the vehicle.

在本較佳實施例中,所述駕駛者可調整電子裝置10的位置,使所述電子裝置10的拍攝組件20能夠拍攝到所述駕駛者的眼部影像以及車輛前方景物影像。 In this preferred embodiment, the driver can adjust the position of the electronic device 10 so that the photographing component 20 of the electronic device 10 can capture the eye image of the driver and the image of the scene in front of the vehicle.

在一實施方式中,所述拍攝組件20是具備可轉動地調整方向及角度的鏡頭。獲取模組31獲取拍攝組件20拍攝的所述駕駛者的眼部影像和車輛前方景物影像。 In one embodiment, the photographing component 20 is a lens with a direction and angle that can be rotatably adjusted. The acquiring module 31 acquires the eye image of the driver and the scene image in front of the vehicle captured by the photographing component 20.

在另一較佳實施例中,所述電子裝置10與所述電子設備無線連接,使得獲取模組31獲取所述電子設備拍攝的車輛前方景物影像和所述拍攝組件20拍攝的所述駕駛者的眼部影像。所述電子裝置10可以藉由無線通訊模組25與所述電子設備進行通信及資料交換。 In another preferred embodiment, the electronic device 10 is wirelessly connected to the electronic device, so that the acquisition module 31 acquires the image of the scene in front of the vehicle photographed by the electronic device and the driver photographed by the photographing component 20 Eye image. The electronic device 10 can communicate and exchange data with the electronic device through the wireless communication module 25.

在第三較佳實施例中,所述電子裝置10與所述電子設備無線連接,使得獲取模組31獲取所述電子設備拍攝的車輛前方景物影像和所述駕駛者的眼部影像。所述電子設備可以包括第一相機和第二相機。所述第一相機可以用於拍攝車輛前方景物影像,所述第二相機可以用於拍攝駕駛者的眼部影像。 In the third preferred embodiment, the electronic device 10 is wirelessly connected to the electronic device, so that the acquisition module 31 acquires the image of the scene in front of the vehicle captured by the electronic device and the image of the driver's eyes. The electronic device may include a first camera and a second camera. The first camera may be used to capture images of a scene in front of the vehicle, and the second camera may be used to capture images of the driver's eyes.

步驟S301,偵測模組33根據所述眼部影像偵測所述駕駛者的瞳孔座標,即所述駕駛者的瞳孔在所述眼部影像中的座標。 In step S301, the detection module 33 detects the pupil coordinates of the driver according to the eye image, that is, the coordinates of the driver's pupil in the eye image.

步驟S302,換算模組35將所述瞳孔座標換算成車輛前方景物影像中的視角座標。所述視角座標用於指出所述瞳孔座標在車輛前方景物影像中的對應位置,即所述駕駛者正在注視的位置。 In step S302, the conversion module 35 converts the pupil coordinates into the angle of view coordinates in the scene image in front of the vehicle. The viewing angle coordinates are used to indicate the corresponding position of the pupil coordinates in the scene image in front of the vehicle, that is, the position where the driver is looking at.

在本較佳實施例中,所述車輛前方景物可被劃分成多個區域,例如四、六、八個區域或更多區域。在本實施例中,如圖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 center 5 of the front scene and/or the front scene image of the vehicle is taken as the origin, and the front scene and/or front scene image is divided into four in a rectangular coordinate system. Areas, namely the first area A, the second area B, the third area C and the fourth area D. By guiding the driver to turn his pupils to observe the first point 1, the second point 2, and the first point on the corners of the four areas respectively. Three points 3, fourth point 4, and central fifth point 5. The fifth point 5 is a point where four areas intersect, the first point 1 is the upper left corner point of the first area A, and the second point 2 is the lower left corner point of the third area C, The third point 3 is the upper right corner point of the second zone B, and the fourth point 4 is the lower right corner point of the fourth zone D. It is understandable that the driver can turn his pupils to view the center point and the four corner points of the windshield of the vehicle. The detection module 33 detects that the driver looks at the front of the vehicle through the first point 1, the second point 2, the third point 3, the fourth point 4, and the fifth point 5 The pupil coordinates in the scene, the conversion module 35 can calculate the preset mapping relationship between the pupil coordinates in the driver's eye image and the angle of view coordinates in the scene image in front of the vehicle based on these pupil coordinates and a linear interpolation method .

在本較佳實施例中,所述預設映射關係可以是預先存儲在所述電子裝置10內的一個映射表。換算模組35可以根據所述映射表進行換算,將所述駕駛者的眼部影像中瞳孔座標換算成車輛前方景物影像中的視角座標。 In this preferred embodiment, the preset mapping relationship may be a mapping table stored in the electronic device 10 in advance. The conversion module 35 can perform conversion according to the mapping table, and convert the pupil coordinates in the driver's eye image to the angle of view coordinates in the scene image in front of the vehicle.

步驟S303,查找模組39在車輛前方景物影像中查找在車輛前方的預設距離內的物體。所述物體可以是人、動物、障礙物等可能造成行車安全隱患的物體。查找模組39可根據拍攝車輛前方景物影像時的焦距判斷車輛前方的物體距離。 In step S303, the search module 39 searches for an object within a preset distance in front of the vehicle in the scene image in front of the vehicle. The object may be people, animals, obstacles, and other objects that may cause hidden dangers to driving safety. The search module 39 can determine the distance of the object in front of the vehicle according to the focal length when shooting the image of the scene in front of the vehicle.

在本較佳實施例中,電子裝置10配置有衛星定位系統,例如全球定位系統(Global Positioning System,GPS),用於獲取車輛的車速資訊。調整模組37獲取當前的車速資訊,並根據當前的車速資訊調整所述預設距離。所述車速資訊可以是車輛行駛的速度。例如,當車輛行駛的速度較快時,調整模組37調整所述預設距離較長;當車輛行駛的速度較慢時,調整模組37調整所述預設距離較短。所述查找模組39在車輛前方景物影像中查找所述預設距離內的物體。 In this preferred embodiment, the electronic device 10 is configured with a satellite positioning system, such as a Global Positioning System (GPS), for obtaining vehicle speed information. The adjustment module 37 obtains the current vehicle speed information, and adjusts the preset distance according to the current vehicle speed information. The vehicle speed information may be the speed at which the vehicle is traveling. For example, when the speed of the vehicle is fast, the adjustment module 37 adjusts the preset distance to be longer; when the speed of the vehicle is slow, the adjustment module 37 adjusts the preset distance to be shorter. The search module 39 searches for objects within the preset distance in the scene image in front of the vehicle.

在另一較佳實施例中,所述電子裝置10沒有配置所述衛星定位系統。所述預設距離可以是固定值,例如20m、30m、50m等。所述預設距離可以 是預先存儲在記憶體12中的,也可以由所述駕駛者藉由調整模組37隨時設置。查找模組39在車輛前方景物影像中查找所述預設距離內的物體。 In another preferred embodiment, the electronic device 10 is not equipped with the satellite positioning system. The preset distance may be a fixed value, such as 20m, 30m, 50m, and so on. The preset distance can be It is pre-stored in the memory 12, and can also be set by the driver at any time through the adjustment module 37. The searching module 39 searches for objects within the preset distance in the scene image in front of the vehicle.

步驟S304,判斷模組40判斷所述視角座標是否位於在車輛前方的預設距離內的所述物體所對應的安全範圍內。所述安全範圍是車輛前方景物影像中的一個預設範圍。若所述視角座標位於所述安全範圍外,表示所述駕駛者並未關注所述物體,所述駕駛者可能處於危險狀態。 In step S304, the judging module 40 judges whether the viewing angle coordinates are within a safe range corresponding to the object within a preset distance in front of the vehicle. The safe range is a preset range in the image of the scene in front of the vehicle. If the viewing angle coordinates are outside the safe range, it means that the driver is not paying attention to the object, and the driver may be in a dangerous state.

在另一較佳實施例中,所述車輛前方景物影像被劃分成多個區域,所述安全範圍可以是所述物體所在的區域。如圖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 judgment module 40 judges whether the driver's perspective coordinates are in the first zone A. If the driver’s perspective coordinates are in the first zone A, it is determined that the perspective coordinates are within the safe range, otherwise the judgment module 40 determines that the perspective coordinates are outside the safe range, and the driver may be in a dangerous state .

步驟S305,提示模組23在所述視角座標不在所述物體所對應的安全範圍內時,發出一提示信號。所述提示信號可以是警示音,所述警示音預先存儲在所述電子裝置10內。 In step S305, the prompt module 23 sends a prompt signal when the view angle coordinates are not within the safe range corresponding to the object. The prompt signal may be a warning sound, and the warning sound is stored in the electronic device 10 in advance.

在本較佳實施例中,判斷模組40判斷車輛前方景物影像中的視角座標不是位於所述物體所對應的安全範圍內時,提示模組23發出所述提示信號以提醒所述駕駛者。 In this preferred embodiment, when the judging module 40 judges that the view angle coordinates in the scene image in front of the vehicle are not within the safe range corresponding to the object, the prompt module 23 sends out the prompt signal to remind the driver.

除了圖3的行車安全提醒方法以外,偵測模組33還可以藉由駕駛者的瞳孔座標確定駕駛者是否處於危險狀態。具體地,當偵測模組33偵測不到所述瞳孔座標時,說明駕駛者可能在打瞌睡或者在大幅度的左看右看,此時,駕駛者可能處於危險狀態,提示模組23發出所述提示信號以提醒所述駕駛者。當偵測模組33偵測到所述駕駛者的瞳孔座標經過一段預設時長均不變時,駕駛者可能在發呆或思考,提示模組23也會發出所述提示信號以提醒所述駕駛者。 In addition to the driving safety reminding method of FIG. 3, the detection module 33 can also determine whether the driver is in a dangerous state by using the driver's pupil coordinates. Specifically, when the detection module 33 fails to detect the pupil coordinates, it means that the driver may be dozing off or looking left and right. At this time, the driver may be in a dangerous state, prompting the module 23 The prompt signal is issued to remind the driver. When the detection module 33 detects that the driver’s pupil coordinates remain unchanged for a predetermined period of time, the driver may be in a daze or thinking, and the prompt module 23 will also send out the prompt signal to remind the driver driver.

本發明提供的電子裝置及行車安全提醒方法能夠在駕駛者一個人開車時,出現駕駛疲勞或精神不集中的情況時,提醒駕駛者,從而達到安全駕駛的目的。 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)

一種電子裝置,該電子裝置包括:記憶體;至少一個處理器;以及多個模組,所述多個模組存儲在所述記憶體中,並由所述至少一個處理器執行,所述多個模組包括:獲取模組,用於獲取駕駛者的眼部影像和車輛前方景物影像;偵測模組,用於根據所述眼部影像偵測所述駕駛者的瞳孔座標;換算模組,用於根據瞳孔座標與車輛前方景物影像中的視角座標之間的預設映射關係將所述瞳孔座標換算成車輛前方景物影像中的視角座標,所述預設映射關係為預先存儲於所述電子裝置內的一個映射表;查找模組,用於在車輛前方景物影像中查找車輛前方一預設距離內的物體;判斷模組,用於判斷所述視角座標是否位於所述物體所對應的安全範圍內,所述車輛前方景物影像被劃分成多個區域,所述安全範圍是所述物體所在的區域,其中,當所述視角座標位於所述物體所在的區域時,判斷所述視角座標處於所述安全範圍內,否則所述判斷模組判斷所述視角座標位於所述安全範圍外;及提示模組,用於在所述視角座標不在所述物體所對應的安全範圍內時,發出一提示信號。 An electronic device comprising: a memory; at least one processor; and multiple modules, the multiple modules are stored in the memory and executed by the at least one processor, and the multiple modules are stored in the memory and executed by the at least one processor. The modules include: an acquisition module, which is used to acquire the driver's eye image and an image of the scene in front of the vehicle; a detection module, which is used to detect the driver's pupil coordinates based on the eye image; and a conversion module , For converting the pupil coordinates to the angle of view coordinates in the vehicle front scene image according to a preset mapping relationship between the pupil coordinates and the view angle coordinates in the vehicle front scene image, and the preset mapping relation is pre-stored in the A mapping table in the electronic device; a search module for finding objects within a preset distance in front of the vehicle in the scene image in front of the vehicle; a judging module for judging whether the perspective coordinates are located in the corresponding object Within a 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, the view angle coordinates are determined Is within the safe range, otherwise the judgment module judges that the viewing angle coordinates are outside the safe range; and a prompt module for issuing when the viewing angle coordinates are not within the safe range corresponding to the object A reminder signal. 如請求項1所述的電子裝置,其中:所述電子裝置還包括拍攝組件,所述拍攝組件用於拍攝所述駕駛者的眼部影像。 The electronic device according to claim 1, wherein: the electronic device further includes a photographing component, and the photographing component is used to photograph the eye image of the driver. 如請求項2所述的電子裝置,其中:所述拍攝組件還用於拍攝車輛前方景物影像。 The electronic device according to claim 2, wherein: the photographing component is also used to photograph an image of a scene in front of the vehicle. 如請求項2所述的電子裝置,其中:所述電子裝置還包括無線通訊模組,所述電子裝置藉由所述無線通訊模組與一電子設備連接,以接收所述電子設備拍攝的車輛前方景物影像。 The electronic device according to claim 2, wherein: the electronic device further includes a wireless communication module, and the electronic device is connected to an electronic device through the wireless communication module to receive a vehicle photographed by the electronic device The image of the scene ahead. 如請求項1所述的電子裝置,其中:所述電子裝置還包括調整模組,所述調整模組用於獲取當前的車速資訊,並根據當前的車速資訊調整所述預設距離。 The electronic device according to claim 1, wherein: the electronic device further includes an adjustment module configured to obtain current vehicle speed information and adjust the preset distance according to the current vehicle speed information. 如請求項1所述的電子裝置,其中:所述提示模組還用於在偵測不到視角座標或視角座標經過預設時長均不變時,發出所述提示信號。 The electronic device according to claim 1, wherein: the prompt module is further configured to issue the prompt signal when the viewing angle coordinates cannot be detected or the viewing angle coordinates remain unchanged after a preset period of time. 一種行車安全提醒方法,包括:獲取駕駛者的眼部影像和車輛前方景物影像;根據所述眼部影像偵測所述駕駛者的瞳孔座標;根據瞳孔座標與車輛前方景物影像中的視角座標之間的預設映射關係將所述瞳孔座標換算成車輛前方景物影像中的視角座標,所述預設映射關係為預先存儲於電子裝置內的一個映射表;在車輛前方景物影像中查找車輛前方一預設距離內的物體;判斷所述視角座標是否位於所述物體所對應的安全範圍內,所述車輛前方景物影像被劃分成多個區域,所述安全範圍是所述物體所在的區域,其中,當所述視角座標位於所述物體所在的區域時,判斷所述視角座標處於所述安全範圍內,否則所述判斷模組判斷所述視角座標位於所述安全範圍外;及在所述視角座標不在所述物體所對應的安全範圍內時,發出一提示信號。 A driving safety reminder method, including: acquiring the driver’s eye image and the image of the scene in front of the vehicle; detecting the driver’s pupil coordinates according to the eye image; and according to the difference between the pupil coordinates and the field of view coordinates in the scene image in front of the vehicle The preset mapping relationship between the two converts the pupil coordinates to the angle of view coordinates in the scene image in front of the vehicle, and the preset mapping relation is a mapping table stored in the electronic device in advance; and finds the one in front of the vehicle in the scene image in front of the vehicle. 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. 如請求項7所述的行車安全提醒方法,其中,所述行車安全提醒方法還包括: 獲取當前的車速資訊,並根據當前的車速資訊調整所述預設距離。 The driving safety reminding method according to claim 7, wherein the driving safety reminding method further includes: Obtain current vehicle speed information, and adjust the preset distance according to the current vehicle speed information. 如請求項7所述的行車安全提醒方法,其中,所述行車安全提醒方法還包括:在偵測不到所述視角座標或所述視角座標經過預設時長均不變時,發出所述提示信號。 The driving safety reminding method according to claim 7, wherein the driving safety reminding method further includes: sending out the said view angle coordinates when the view angle coordinates are not detected or the view angle coordinates have not changed for a preset period of time. Prompt signal.
TW107126249A 2018-07-27 2018-07-27 Electronic device and driving safety reminding method TWI719330B (en)

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)

* Cited by examiner, † Cited by third party
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
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