[go: up one dir, main page]

TW201819226A - Method for detecting driving behaviors and system thereof capable of alerting drivers to concentrate on driving before an abnormal driving behavior occurs, thereby effectively improving driving safety - Google Patents

Method for detecting driving behaviors and system thereof capable of alerting drivers to concentrate on driving before an abnormal driving behavior occurs, thereby effectively improving driving safety Download PDF

Info

Publication number
TW201819226A
TW201819226A TW105139062A TW105139062A TW201819226A TW 201819226 A TW201819226 A TW 201819226A TW 105139062 A TW105139062 A TW 105139062A TW 105139062 A TW105139062 A TW 105139062A TW 201819226 A TW201819226 A TW 201819226A
Authority
TW
Taiwan
Prior art keywords
head
image
driving behavior
arm
warning signal
Prior art date
Application number
TW105139062A
Other languages
Chinese (zh)
Other versions
TWI598258B (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 TW105139062A priority Critical patent/TWI598258B/en
Application granted granted Critical
Publication of TWI598258B publication Critical patent/TWI598258B/en
Publication of TW201819226A publication Critical patent/TW201819226A/en

Links

Landscapes

  • Traffic Control Systems (AREA)
  • Image Analysis (AREA)

Abstract

The present invention relates to a method for detecting driving behaviors and a system thereof, which comprises capturing an image of a user with an arm image and a head behavior image; capturing and comparing an arm image with an arm sample image in a database with a processor, wherein the arm image determines whether the driving behavior is normal or not, so when the arm image conforms to the arm sample image, the driving behavior is considered normal, and vice versa; capturing and comparing a head behavior image with a head violation sample image in the database, wherein when the head behavior image does not conform to the head violation sample image, it indicates that the driving behavior is normal, and vice versa, and a second-level warning signal is then sent to alert the driver about the abnormal driving behavior. The present invention can alert drivers to concentrate on driving before an abnormal driving behavior occurs, which effectively improves driving safety.

Description

駕駛行為偵測方法及其系統Driving behavior detection method and system

本發明係有關一種行為偵測技術,特別是指一種能在駕駛產生分心行為之前提醒駕駛專注之駕駛行為偵測方法及其系統。The present invention relates to a behavior detection technology, in particular to a driving behavior detection method and system capable of reminding a driver to focus before driving distracting behavior.

隨著科技日益進步,汽車逐漸已成為普遍家庭中必備的交通工具,但卻因汽車的數量逐漸增加,使每年的交通事故也居高不下,據統計報告顯示,車禍肇事的主因絕大部分來自於駕駛者,其原因可能為駕駛者的不良駕駛行為、疲勞或疾病造成無法駕駛車輛等情形,其中不良駕駛行為,例如,使用手機、拿東西、拿食物等,且上述之動作均為行駛中駕駛者手部離開方向盤之分心行為,因此目前道路交通條例規定,使用手持式行動裝置或手持、吸食香菸致影響他人行車安全之行為者,均予以罰鍰,藉此來減少因駕駛者不良行為而產生的交通事故。With the advancement of technology, cars have gradually become a necessary means of transportation in common families, but the number of cars has gradually increased, making annual traffic accidents still high. According to statistical reports, the main causes of car accidents are mostly from For the driver, the cause may be the driver ’s poor driving behavior, fatigue, or illness, which ca n’t drive the vehicle. Among them, the bad driving behavior, such as using a mobile phone, taking things, taking food, etc. The distracted behavior of the driver's hand away from the steering wheel. Therefore, the current road traffic regulations stipulate that those who use handheld mobile devices or hold and smoke cigarettes that affect the driving safety of others will be punished to reduce the driver ’s bad behavior. Traffic accidents.

然而目前產生了一種可偵測駕駛不良行為之監測裝置,在駕駛者產生分心行為時,提醒駕駛者專心開車,但目前的監測裝置多著重於使用攝影機拍攝臉部,來進行臉部特徵之警示判斷,以判斷眼睛視線或臉部是否偏轉等。或者使用其他感測器來辨識駕駛異常行為判斷是否分心,如使用煙霧探測裝置判斷駕駛者是否分心抽菸,或利用手機訊號檢測器來判斷駕駛者是否使用手機。但由於這些監測平台設置成本較為昂貴,且目前技術僅能在駕駛者已經進行分心動作時才能偵測得到,因此監測裝置只能在駕駛者已經進行分心動作後才能提醒駕駛者,但由於駕駛者的分心動作已經產生,即使經由監測裝置提醒駕駛者,駕駛者仍已經影響到本身以及其餘用路人的交通行車安全。However, a monitoring device capable of detecting bad driving behavior has been produced to remind the driver to concentrate on driving when the driver has a distracted behavior. However, most current monitoring devices focus on using a camera to capture a face to perform facial characteristics. Warning judgment to judge whether the eye sight or the face is deflected. Or use other sensors to identify abnormal driving behaviors and determine whether to be distracted, such as using a smoke detection device to determine whether the driver is distracted to smoke or using a mobile phone signal detector to determine whether the driver is using a mobile phone. However, since these monitoring platforms are relatively expensive to set up, and the current technology can only detect when the driver has performed a distracting action, the monitoring device can only alert the driver after the driver has performed a distracting action. The driver's distraction has already been generated. Even if the driver is reminded by the monitoring device, the driver still influences the traffic safety of himself and other passers-by.

再者,近年來更興起物聯網系統,透過物聯網系統可應用蒐集各種車輛狀態資訊以落實車隊管理,後台所蒐集到的資訊可包括駕駛者車輛上的監測器所偵測到駕駛行為狀態,當監測器監測到駕駛者分心後,將此資訊傳遞至後台,後台可將駕駛行為狀態的資訊儲存,以提供後台管理人員進行監控,或者作為商用車隊駕駛者績效管理之用,但亦具有與上述監測裝置相同的缺點,只能在駕駛者已經進行分心動作後才傳遞分心的資訊給後台,即使後台人員發現後立刻通知駕駛者,但駕駛者分心動作仍已經產生,駕駛者仍已經影響到本身以及其餘用路人的交通行車安全。Furthermore, in recent years, the Internet of Things system has emerged. Through the Internet of Things system, various vehicle status information can be applied to implement fleet management. The information collected in the background can include the driving behavior status detected by the monitor on the driver's vehicle. When the monitor detects the driver's distraction, this information is transmitted to the background. The background can store the driving behavior information for the background management personnel to monitor, or for the performance management of commercial fleet drivers, but it also has The same shortcomings as the above monitoring device can only send distracting information to the background after the driver has performed distraction. Even if the background staff notices the driver immediately after discovery, the driver's distraction has still occurred, and the driver It still affects the traffic safety of itself and other passers-by.

有鑑於此,本發明遂針對上述習知技術之缺失,提出一種能有效偵測駕駛者產生異常行為之前端動作,以在駕駛者可能有不專心行為的現象發生之前,提醒駕駛者專心駕車之行為偵測方法及其系統,以有效克服上述之該等問題。In view of this, the present invention addresses the lack of the above-mentioned conventional technology, and proposes a method that can effectively detect the front-end actions of the driver to generate abnormal behaviors, so as to remind the driver to concentrate on driving before the phenomenon of unconscious behavior occurs. Behavior detection method and system to effectively overcome these problems.

本發明之主要目的在提供一種駕駛行為偵測方法及其系統,其能有效偵測駕駛者產生異常行為之前端動作,在駕駛者可能產生不專心行為現象之前,提醒駕駛者專心駕車,以有效提高行車安全。The main object of the present invention is to provide a driving behavior detection method and a system thereof, which can effectively detect the front-end movement of the driver to produce abnormal behavior, and remind the driver to concentrate on driving before the driver may generate unfocused behavior, so as to effectively Improve driving safety.

本發明之另一目的在提供一種駕駛行為偵測方法及其系統,其係可將駕駛者目前行為傳遞至遠端伺服器,提供後台管理人員進行監控,並作為商用車隊駕駛者績效管理之用,可有效降低不專心駕駛之問題,對行車安全有明顯的助益。Another object of the present invention is to provide a driving behavior detection method and system, which can transmit the driver's current behavior to a remote server, provide background management personnel for monitoring, and serve as a performance management for commercial fleet drivers. , Can effectively reduce the problem of unfocused driving, and has obvious benefits to driving safety.

為達上述之目的,本發明提供一種駕駛行為偵測方法,其步驟包括,首先取得使用者影像,其包括手臂影像以及頭部行為影像;接著對手臂影像以及資料庫中的複數手臂樣本影像進行比對,以判斷手臂影像是否符合至少一手臂樣本影像,若是,手臂影像符合手臂樣本影像,表示駕駛行為正常,但若否,手臂影像不符合手臂樣本影像,表示駕駛行為可能異常,則進入下一步驟;產生一第一級警示訊號,並將第一級警示訊號傳遞出去;比對頭部行為影像與資料庫中的複數頭部違規樣本影像,並判斷頭部行為影像是否符合至少一頭部違規樣本影像,若否,頭部行為影像不符合頭部違規樣本影像,表示駕駛行為正常;若是,頭部行為影像符合頭部違規樣本影像,表示駕駛行為異常,並發出一第二級警示訊號,以將第二級警示訊號傳遞出去。In order to achieve the above object, the present invention provides a driving behavior detection method. The method includes the following steps: firstly obtaining a user image including an arm image and a head behavior image; and then performing an arm image and a plurality of arm sample images in a database. Compare to determine whether the arm image matches at least one arm sample image. If yes, the arm image matches the arm sample image, indicating that the driving behavior is normal, but if not, the arm image does not match the arm sample image, indicating that the driving behavior may be abnormal, then enter the next One step; generating a first-level warning signal and transmitting the first-level warning signal; comparing the head behavior image with the plurality of head violation sample images in the database, and determining whether the head behavior image meets at least one head If the head behavior image does not match the head violation sample image, it indicates that the driving behavior is normal; if it does, the head behavior image matches the head violation sample image, indicating that the driving behavior is abnormal, and a second-level warning is issued Signal to relay the second level warning signal.

另外,本發明亦提供一種駕駛行為偵測系統,包括一攝影裝置擷取至少一使用者影像,其包括一手臂影像以及一頭部行為影像,一資料庫儲存複數手臂樣本影像以及複數頭部違規樣本影像,一處理器電性連接攝影裝置以及資料庫,處理器擷取手臂影像與資料庫中的複數手臂樣本影像進行比對,當手臂影像符合至少一手臂樣本影像時,表示駕駛行為正常;當手臂影像不符合至少一手臂樣本影像時,表示駕駛行為可能異常,即產生一第一級警示訊號,並將第一級警示訊號傳遞出去,處理器再擷取頭部行為影像與資料庫中的複數頭部違規樣本影像進行比對,當頭部行為影像不符合至少一頭部違規樣本影像表示駕駛行為正常;當頭部行為影像符合至少一頭部違規樣本影像表示駕駛行為異常,並發出一第二級警示訊號;一傳輸裝置電性連接處理器,以接收處理器的控制將第一級警示訊號或第二級警示訊號傳遞出去。In addition, the present invention also provides a driving behavior detection system, which includes a photographic device capturing at least one user image, including an arm image and a head behavior image, a database storing a plurality of arm sample images and a plurality of head violations. A sample image. A processor is electrically connected to the photography device and the database. The processor captures the arm image and compares it with a plurality of arm sample images in the database. When the arm image matches at least one arm sample image, it indicates that the driving behavior is normal; When the arm image does not match at least one arm sample image, it indicates that the driving behavior may be abnormal, that is, a first-level warning signal is generated, and the first-level warning signal is transmitted, and the processor retrieves the head behavior image and the database. The multiple head violation sample images are compared. When the head behavior image does not match at least one head violation sample image, the driving behavior is normal; when the head behavior image matches at least one head violation sample image, the driving behavior is abnormal, and a first Secondary warning signal; a transmission device is electrically connected to the processor to receive Controller will signal the first stage or the second stage alert warning signal to pass out.

當處理器擷取手臂影像不符合至少一手臂樣本影像時,表示駕駛行為可能異常,係在駕駛異常行為持續一預定時間後,產生第一級警示訊號。When the processor captures an arm image that does not match at least one arm sample image, it indicates that the driving behavior may be abnormal, and the first-level warning signal is generated after the driving abnormal behavior continues for a predetermined time.

處理器更可利用一頭部偏擺演算法判斷頭部行為影像中使用者的頭部是否偏擺,若是,使用者的頭部偏擺,則發出第二級警示訊號,以提醒駕駛行為異常;若否,使用者的頭部未產生偏擺,則表示駕駛行為正常。The processor can also use a head deflection algorithm to determine whether the user's head is deflected in the head behavior image. If the user's head is deflected, a second-level warning signal is issued to remind the driving behavior abnormally. ; If not, the user's head does not yaw, indicating that the driving behavior is normal.

底下藉由具體實施例詳加說明,當更容易瞭解本發明之目的、技術內容、特點及其所達成之功效。Detailed descriptions will be provided below through specific embodiments to make it easier to understand the purpose, technical content, features and effects of the present invention.

首先請參照第一圖,以說明本發明駕駛行為偵測系統1之結構,駕駛行為偵測系統1包括有一攝影裝置10,攝影裝置10可裝設在駕駛座前方,使攝影裝置10的鏡頭對準駕駛座上駕駛者,以取得駕駛者正面的使用者影像,使用者影像包括有手臂影像以及頭部行為影像;一資料庫12用以儲存複數手臂樣本影像以及頭部違規樣本影像,其中手臂樣本影像係為駕駛者雙手握住方向盤之影像,影像包含一般駕駛者雙手握方向盤之各種姿勢、角度等狀態影像,如雙手平行握方向盤、雙手交叉右手在上、雙手交叉左手在上等各種一般常見駕駛者握方向盤之狀態影像等。而頭部違規樣本影像則為駕駛者打手機或駕駛者吸菸、飲食等違規的影像;一處理器14電性連接攝影裝置10以及資料庫12,處理器14可由攝影裝置10取得使用者影像,並由資料庫12中取得手臂樣本影像與頭部違規樣本影像,以進行比對使用者影像的手臂影像與手臂樣本影像,以及頭部行為影像與頭部違規樣本影像,藉此判斷駕駛行為是否正常並產生判斷結果;一傳輸裝置16電性連接處理器14,以將處理器14所產生判斷結果傳遞至一電腦主機20中,其中電腦主機20可為車上使用的電腦主機或遠端的後台等,本實施例舉例具有二電腦主機20係分別為車用主機22與遠端伺服器24,車用主機22可儲存接收到的判斷結果,並顯示出判斷結果,遠端伺服器24可儲存接收到的判斷結果,並顯示出判斷結果給遠端伺服器的監控人員,提供監控人員判斷是否該發出警示提醒駕駛者注意。First, please refer to the first figure to explain the structure of the driving behavior detection system 1 of the present invention. The driving behavior detection system 1 includes a photographing device 10, which can be installed in front of the driver's seat, so that the lens of the photographing device 10 is aligned. The driver in the driver's seat can obtain a user image of the driver's front, the user image includes an arm image and a head behavior image; a database 12 is used to store a plurality of arm sample images and head violation sample images, among which the arm The sample image is the image of the driver holding the steering wheel with both hands. The image contains the general image of the driver in various postures and angles when holding the steering wheel with both hands, such as holding the steering wheel with two hands in parallel, crossing his right hand on top, and crossing his left hand. The image of the state of the driver holding the steering wheel in a variety of high-end general. The head violation sample image is the driver ’s mobile phone or the driver ’s smoking, eating and other violations; a processor 14 is electrically connected to the camera 10 and the database 12, and the processor 14 may obtain the user image from the camera 10 And obtain the arm sample image and the head violation sample image from the database 12 to compare the arm image and the arm sample image of the user image, and the head behavior image and the head violation sample image to determine the driving behavior Whether it is normal and generates a judgment result; a transmission device 16 is electrically connected to the processor 14 to transmit the judgment result generated by the processor 14 to a computer host 20, wherein the computer host 20 may be a computer host used in a car or a remote end; Background, etc., in this embodiment, there are two computer hosts 20, which are a vehicle host 22 and a remote server 24. The vehicle host 22 can store the received judgment results and display the judgment results. The remote server 24 Can store the received judgment results, and display the judgment results to the monitoring staff of the remote server, and provide the monitoring staff to determine whether it should issue a warning to remind the driver Note.

在解釋完本發明系統架構中的各個角色後,本發明接續針對駕駛行為偵測方法流程圖搭配系統裝置,以更加詳盡的說明本發明之技術內容,請一併參閱第一圖與第二圖,首先在進行駕駛行為偵測方法之前,必須在資料庫12中建立複數手臂樣本影像以及複數頭部違規樣本影像,以利處理器14能使用資料庫12中的資料進行比對。接下來說明本發明駕駛行為偵測方法之步驟,首先進入步驟S10,透過攝影裝置10取得至少一使用者影像,使用者影像中包括了手臂影像以及頭部行為影像。接著請參照步驟S12,處理器14擷取手臂影像以及資料庫12中的複數手臂樣本影像開始進行比對,比對的過程中會先利用一高斯混合模型方程式(Gaussian mixture model,GMM)將手臂影像轉換為能與複數手臂樣本影像對比的影像,以利處理器14進行比對,高斯混合模型方程式如下所示: 其中是高斯分布密度函數;為手臂影像中的手臂位置連續幀所形成的矩陣;的平均向量;連續幀的轉置共軛矩陣;為權重。手臂影像經高斯混合模型方程式轉換後與資料庫12中的複數手臂樣本進行比對,藉此判斷手臂影像是否符合至少一手臂樣本影像,若處理器14判斷手臂影像符合至少一手臂樣本影像,則進入步驟S14,表示駕駛行為正常,同時處理器14可產生一駕駛行為正常訊號,並透過傳輸裝置16將駕駛行為正常訊號傳遞遠端伺服器24,以儲存駕駛行為正常訊號,並可告知後台監控人員目前駕駛行為正常;但若處理器14判斷手臂影像不符合至少一手臂樣本影像,則表示駕駛行為可能異常,此時則進入下一步驟S16。如步驟S16所示,處理器14更可判斷駕駛行為異常是否持續產生一預定時間,若否則進入步驟S14表示駕駛行為正常,同時處理器14可產生駕駛行為正常訊號,並透過傳輸裝置16將駕駛行為正常訊號傳遞至遠端伺服器24中,以告知監控人員目前駕駛行為正常;但若是,處理器14判斷駕駛行為異常持續產生一預定時間,本實施例舉例預定時間為5秒,因此當駕駛行為異常持續5秒,則進入步驟S18,產生一第一級警示訊號,並透過傳輸裝置16將第一級警示訊號傳遞至遠端伺服器24中,以儲存第一級警示訊號並告知後台監控人員,提供監控人員作為監控之判斷,同時並進入下一步驟S19。當然第一級警示訊號亦可直接傳遞至車用主機22中,以直接提醒駕駛者專心開車,並不以傳遞至遠端伺服器24為限制。After explaining the various roles in the system architecture of the present invention, the present invention continues the flowchart of the driving behavior detection method with the system device to explain the technical content of the present invention in more detail. Please refer to the first and second figures together First, before performing the driving behavior detection method, a plurality of arm sample images and a plurality of head violation sample images must be established in the database 12 so that the processor 14 can use the data in the database 12 for comparison. Next, the steps of the driving behavior detection method of the present invention are described. First, the method proceeds to step S10, and at least one user image is obtained through the photographing device 10. The user image includes an arm image and a head behavior image. Next, referring to step S12, the processor 14 captures the arm image and the plurality of arm sample images in the database 12 to start the comparison. During the comparison process, a Gaussian mixture model equation (GMM) is used to first compare the arms. The image is converted into an image that can be compared with the image of the complex arm sample, and compared by the processor 14, the Gaussian mixture model equation is as follows: among them Is a Gaussian distribution density function; A matrix formed by successive frames of arm positions in the arm image; for Average vector for Transposed conjugate matrix of consecutive frames; , versus For weight. The arm image is compared with the plural arm samples in the database 12 after being transformed by the Gaussian mixture model equation, thereby determining whether the arm image matches at least one arm sample image. If the processor 14 determines that the arm image matches at least one arm sample image, then Go to step S14, indicating that the driving behavior is normal, and the processor 14 can generate a normal driving behavior signal, and transmit the normal driving behavior signal to the remote server 24 through the transmission device 16 to store the normal driving behavior signal, and can inform the background monitoring The current driving behavior of the personnel is normal; however, if the processor 14 judges that the arm image does not match at least one arm sample image, it indicates that the driving behavior may be abnormal, and at this time, it proceeds to the next step S16. As shown in step S16, the processor 14 can further determine whether the abnormal driving behavior continues to occur for a predetermined time. If otherwise, the process proceeds to step S14 to indicate that the driving behavior is normal. At the same time, the processor 14 can generate a normal driving behavior signal and transmit the driving signal through the transmission device 16. The normal behavior signal is transmitted to the remote server 24 to inform the monitoring personnel that the current driving behavior is normal; but if it is, the processor 14 judges that the abnormal driving behavior continues to generate a predetermined time. In this embodiment, the predetermined time is 5 seconds, so when driving If the abnormal behavior lasts for 5 seconds, go to step S18 to generate a first-level warning signal, and transmit the first-level warning signal to the remote server 24 through the transmission device 16 to store the first-level warning signal and inform the background monitoring Personnel, provide monitoring personnel as the monitoring judgment, and at the same time proceed to the next step S19. Of course, the first-level warning signal can also be directly transmitted to the vehicle host 22 to directly remind the driver to concentrate on driving, and is not limited to transmitting to the remote server 24.

請參照步驟S19,處理器14再進行判斷頭部行為影像是否符合至少一頭部違規樣本影像,在判斷頭部行為影像時亦可使用高斯混合模型方程式將頭部行為影像轉換成能與頭部違規樣本影像比對的影像,再進行比對是否符合頭部違規樣本影像,但本實施例之比對頭部行為影像係透過特徵點的方式進行比對,處理器14會擷取頭部行為影像中的影像特徵,來比對複數頭部違規樣本影像中的對比特徵進行比對,其中對比特徵係為手機、香菸或其他物品等,處理器14判斷頭部行為影像是否具有手機、香菸或其他物品等影像特徵,若頭部行為影像中沒有符合頭部違規樣本影像的對比特徵點,則進入步驟S14表示駕駛行為正常;但若是頭部行為影像中具有符合頭部違規樣本影像的對比特徵點,表示駕駛行為異常,駕駛者可能有抽菸或打手機等動作,此時進入步驟S20,處理器14產生第二級警示訊號並透過傳輸裝置16將第二級警示訊號傳遞至遠端伺服器24中,以提醒後台監控人員目前駕駛者已產生分心的動作,監控人員可發出警訊提醒駕駛者,並記錄駕駛者當下異常行為,同時處理器14產生第二級警示訊號後,亦可直接傳遞至駕駛者車上的車用主機22,使車用主機22根據第二級警示訊號發出聲音或影像警訊提醒駕駛行為異常,必須專心開車。Please refer to step S19. The processor 14 then determines whether the head behavior image meets at least one head violation sample image. When determining the head behavior image, a Gaussian mixture model equation can also be used to convert the head behavior image into a head image The image of the illegal sample image comparison is then compared with the head violation sample image, but the comparison head behavior image in this embodiment is compared by means of feature points, and the processor 14 will capture the head behavior The image features in the image are used to compare the contrast features in the multiple head violation sample images. The contrast feature is a mobile phone, cigarette, or other items. The processor 14 determines whether the head behavior image has a mobile phone, cigarette, or If there are no image features of other items in the head behavior image, there is no contrast feature point that matches the head violation sample image, then the process proceeds to step S14 to indicate that the driving behavior is normal; but if the head behavior image has the contrast feature that matches the head violation sample image Point, indicating that the driving behavior is abnormal. The driver may have actions such as smoking or using a mobile phone. At this time, the process proceeds to step S20. The device 14 generates a second-level warning signal and transmits the second-level warning signal to the remote server 24 through the transmission device 16 to remind the background monitoring staff that the driver has been distracted. The monitoring staff can issue a warning alert The driver records the current abnormal behavior of the driver. At the same time, after the processor 14 generates the second-level warning signal, it can also be directly transmitted to the vehicle host 22 on the driver's car, so that the vehicle host 22 issues the second-level warning signal. An audible or visual alert reminds you that driving behavior is abnormal and you must concentrate on driving.

上述之頭部行為影像除了能用以提供處理器14比對資料庫12中的頭部違規樣本影像來判斷駕駛者是否處於正常駕駛行為之情形之外,處理器14更可在步驟S18之前或之後,利用一頭部偏擺演算法判斷頭部行為影像中駕駛者的頭部是否偏擺,當處理器14判斷頭部產生偏移則發出第二級警示訊息,並透過傳輸裝置16將第二級警示訊號傳遞至遠端伺服器24中,以提醒後台監控人員,或者處理器14亦可控制傳輸裝置16直接將第二級警示訊號傳遞至車上的車用主機22中,以直接提醒駕駛者專心開車;但若頭部未產生偏移則表示駕駛行為正常,同時處理器14可產生一駕駛行為正常訊號,並透過傳輸裝置16將駕駛行為正常訊號傳遞至遠端伺服器24中,以告知後台監控人員目前駕駛行為正常。The above-mentioned head behavior image can be used to provide the processor 14 to compare the head violation sample images in the database 12 to determine whether the driver is in a normal driving behavior. The processor 14 can also be used before step S18 or Then, a head deflection algorithm is used to determine whether the driver's head is deflected in the head behavior image. When the processor 14 judges that the head is deviated, a second-level warning message is issued, and the first The second-level warning signal is transmitted to the remote server 24 to remind the background monitoring personnel, or the processor 14 can also control the transmission device 16 to directly transmit the second-level warning signal to the on-vehicle host 22 for direct reminder. The driver concentrates on driving; however, if the head does not have an offset, it indicates that the driving behavior is normal. At the same time, the processor 14 can generate a normal driving behavior signal and transmit the normal driving behavior signal to the remote server 24 through the transmission device 16, To inform the background monitoring staff that the current driving behavior is normal.

然而如何判斷頭部是否偏擺係透過一頭部偏擺演算法進行判斷,在此請配合參照第三圖以及第四圖,以對頭部偏擺演算法進行說明,如第四圖所示,在判斷頭部偏擺時必須先預設區域為合理人臉區域,並視合理人臉區域為正視人臉區域,且正視人臉區域之鼻子座標會座落在畫面中間之位置。接下來請參步驟S22,處理器14對當下使用者影像進行駕駛者之鼻子偵測,以偵測使用者影像中駕駛者的鼻子。接著進入步驟S24,取得鼻子之位置座標,約為X軸50%處,經估算結果,其X軸座標值約為140。接著進入步驟S26,比較鼻子之位置座標與一合理人臉區域後,取得駕駛者之頭擺角度,由於駕駛者頭部些微偏擺-15~-30度時,鼻子的位置會偏移到畫面X軸的35%處,故鼻子將出現在X座標值100~130之間。反之,若鼻子偵測之X軸結果,落在100~130之間,可反推駕駛者頭擺角度係介於-30~-15度之間,因此可藉由鼻子偏移的方式判斷出駕駛者頭擺角度。最後進入步驟S28,當頭擺角度高於一預設閥值,如當預設閥值高於15度表示頭部產生偏擺,除此之外更可增設另一嚴重偏擺預設閥值,當頭擺角度高30度,超過嚴重偏擺預設閥值時係屬嚴重偏擺。However, how to determine whether the head is deflected is determined by a head deflection algorithm. Please refer to Figures 3 and 4 to explain the head deflection algorithm, as shown in Figure 4. When judging the head deflection, you must first preset the area as a reasonable face area, and consider the reasonable face area as the face area, and the nose coordinates of the face area will be located in the middle of the screen. Next, please refer to step S22. The processor 14 detects the driver's nose in the current user image to detect the driver's nose in the user image. Then it proceeds to step S24 to obtain the coordinates of the position of the nose, which is about 50% of the X axis, and the estimated value of the X axis is about 140. Then proceed to step S26, after comparing the position coordinates of the nose with a reasonable face area, obtain the driver's head swing angle. When the driver's head slightly deviates from -15 to -30 degrees, the position of the nose will shift to the screen At 35% of the X axis, the nose will appear between the X-coordinates of 100 and 130. Conversely, if the X-axis result of nose detection falls between 100 and 130, the driver's head swing angle can be reversed between -30 and -15 degrees, so it can be judged by nose offset. Driver swings his head. Finally, the process proceeds to step S28. When the head swing angle is higher than a preset threshold, for example, when the preset threshold value is higher than 15 degrees, the head is deflected. In addition, another severe deflection preset threshold may be added. When the head swing angle is 30 degrees higher than the preset threshold for severe swing, it is a serious swing.

除了上述方法實施例之外,請參照第五圖,本發明在判斷手臂影像不符合至少一手臂樣本影像表示駕駛行為可能異常後,處理器14可不需判斷駕駛行為異常是否持續產生一預設時間。詳細來說,如第五圖所示,其中步驟S30-步驟S34與步驟S10-步驟S14相同故不重複敘述,不同的地方在於,當判斷手臂影像不符合至少一手臂樣本影像之後,係直接進入步驟S36產生第一級警示訊號,不需如上述實施例步驟S16相同,必須再進行駕駛行為異常是否持續產生一預設時間之判斷,本實施例可直接產生第一級警示訊號後透過傳輸裝置16將第一級警示訊號傳遞至遠端伺服器24中,使遠端伺服器24儲存第一級警示訊號並告知後台監控人員,以提供監控人員作為監控之判斷。接下來步驟S38-步驟S40皆與步驟S19-步驟S20相同,故不重複敘述。In addition to the above method embodiment, please refer to the fifth figure. After determining that the arm image does not meet at least one arm sample image indicating that the driving behavior may be abnormal, the processor 14 may not need to determine whether the abnormal driving behavior continues to generate a preset time. . In detail, as shown in the fifth figure, steps S30 to S34 are the same as steps S10 to S14 and therefore will not be repeated. The difference is that when it is determined that the arm image does not match at least one arm sample image, it is directly entered. Step S36 generates a first-level warning signal, which does not need to be the same as that in step S16 of the above-mentioned embodiment. It must be judged whether the abnormal driving behavior continues to generate a preset time. In this embodiment, the first-level warning signal can be generated directly through the transmission device 16 Pass the first-level warning signal to the remote server 24, so that the remote server 24 stores the first-level warning signal and informs the background monitoring staff, so as to provide the monitoring staff as a monitoring judgment. The following steps S38 to S40 are the same as steps S19 to S20, so the description will not be repeated.

綜上所述,由於複數手臂樣本影像係為駕駛者雙手握住方向盤之影像,因此若手臂影像沒有對應手臂樣本影像時,表示駕駛者可能手臂離開方向盤,離開方向盤的原因可能為拿手機、香菸等,因此當駕駛者手部離開方向盤時,多半為不專心駕車的前端動作,因此本發明能有效偵測駕駛者產生異常行為之前端動作,以在駕駛者可能有不專心行為現象發生之前提醒駕駛者注意,能有效提高行車安全,且將駕駛者目前行為傳遞至遠端伺服器,提供後台管理人員進行監控,可作為商用車隊駕駛者績效管理之用,對行車安全有明顯的助益。In summary, since the sample images of the multiple arms are images of the driver holding the steering wheel with both hands, if the arm images do not correspond to the sample images of the arms, it means that the driver may leave the steering wheel with his arm. The reason for leaving the steering wheel may be to take a mobile phone, Cigarettes, etc., therefore, when the driver's hand leaves the steering wheel, most of them are unfocused front-end actions. Therefore, the present invention can effectively detect the front-end actions of the driver to produce abnormal behaviors, so that the driver may have unfocused behaviors before they occur. Remind the driver to note that it can effectively improve driving safety, and transfer the driver's current behavior to a remote server, and provide back-office management personnel to monitor, which can be used for the performance management of commercial fleet drivers, which has obvious benefits for driving safety .

唯以上所述者,僅為本發明之較佳實施例而已,並非用來限定本發明實施之範圍。故即凡依本發明申請範圍所述之特徵及精神所為之均等變化或修飾,均應包括於本發明之申請專利範圍內。The foregoing are merely preferred embodiments of the present invention, and are not intended to limit the scope of implementation of the present invention. Therefore, all equal changes or modifications made according to the features and spirit described in the scope of the application of the present invention shall be included in the scope of patent application of the present invention.

1‧‧‧駕駛行為偵測系統1‧‧‧Driving Behavior Detection System

10‧‧‧攝影裝置10‧‧‧ Camera

12‧‧‧資料庫12‧‧‧Database

14‧‧‧處理器14‧‧‧ processor

16‧‧‧傳輸裝置16‧‧‧Transmission device

20‧‧‧電腦主機20‧‧‧Computer host

22‧‧‧車用主機22‧‧‧Host

24‧‧‧遠端伺服器24‧‧‧ remote server

第一圖係為本發明之偵測系統方塊圖。 第二圖係為本發明之偵測方法步驟流程圖。 第三圖係為本發明使用之頭部偏擺演算法步驟流程圖。 第四圖係為本發明於判斷頭部偏擺的影像示意圖。 第五圖係為本發明另一實施例之偵測方法步驟流程圖。The first figure is a block diagram of the detection system of the present invention. The second figure is a flowchart of the detection method steps of the present invention. The third figure is a flowchart of the steps of the head deflection algorithm used in the present invention. The fourth figure is a schematic diagram of the image used for judging the head swing of the present invention. The fifth figure is a flowchart of the detection method steps according to another embodiment of the present invention.

Claims (19)

一種駕駛行為偵測方法,包括下列步驟: 取得至少一使用者影像,其包括一手臂影像以及一頭部行為影像; 比對該手臂影像與一資料庫中的複數手臂樣本影像,以判斷該手臂影像是否符合至少一該手臂樣本影像: 若是,表示駕駛行為正常;及 若否,表示駕駛行為異常,並進入下一步驟; 產生一第一級警示訊號,並將該第一級警示訊號傳遞出去;以及 比對該頭部行為影像與該資料庫中的複數頭部違規樣本影像,並判斷該頭部行為影像是否符合至少一該頭部違規樣本影像: 若否,表示駕駛行為正常;及 若是,表示駕駛行為異常,並發出一第二級警示訊號,以將該第二級警示訊號傳遞出去。A driving behavior detection method includes the following steps: obtaining at least one user image including an arm image and a head behavior image; comparing the arm image with a plurality of arm sample images in a database to determine the arm Whether the image meets at least one sample image of the arm: if yes, it indicates that the driving behavior is normal; and if not, it indicates that the driving behavior is abnormal and proceed to the next step; generate a first-level warning signal and pass the first-level warning signal ; And compare the head behavior image with the plurality of head violation sample images in the database, and determine whether the head behavior image meets at least one of the head violation sample images: if not, the driving behavior is normal; and if it is , Indicating that the driving behavior is abnormal, and a second-level warning signal is issued to transmit the second-level warning signal. 如請求項1所述之駕駛行為偵測方法,其中在產生該第一級警示訊號之步驟前,係當駕駛行為異常持續產生一預定時間後,產生該第一級警示訊號,該預定時間可為5秒。The driving behavior detection method according to claim 1, wherein before the step of generating the first-level warning signal, the first-level warning signal is generated when the abnormal driving behavior continues to be generated for a predetermined time, and the predetermined time may be For 5 seconds. 如請求項1所述之駕駛行為偵測方法,其中在比對該手臂影像與該等手臂樣本影像之步驟時,係利用一高斯混合模型方程式(Gaussian mixture model,GMM)將該手臂影像轉換為能與該等手臂樣本影像對比的影像,以利進行比對。The driving behavior detection method according to claim 1, wherein when comparing the arm image with the arm sample images, a Gaussian mixture model (GMM) is used to convert the arm image into Images that can be compared with these arm sample images for comparison. 如請求項1所述之駕駛行為偵測方法,其中在比對該頭部行為影像與該等頭部違規樣本影像之步驟,係擷取該頭部行為影像中的影像特徵,來比對該等頭部違規樣本影像中的對比特徵。The driving behavior detection method according to claim 1, wherein in the step of comparing the head behavior image with the head violation sample images, the image features in the head behavior image are captured to compare the Contrast features in images of head violation samples. 如請求項1所述之駕駛行為偵測方法,其中在比對該頭部行為影像與該等頭部違規樣本影像之步驟後更包括,利用一頭部偏擺演算法判斷該頭部行為影像中使用者的頭部是否偏擺: 若是,發出該第二級警示訊號,以提醒駕駛行為異常;及 若否,表示該駕駛行為正常。The driving behavior detection method according to claim 1, further comprising, after the step of comparing the head behavior image and the head violation sample images, using a head deflection algorithm to determine the head behavior image Whether the user ’s head is tilted: If yes, issue the second-level warning signal to remind the driving behavior is abnormal; and if not, it indicates that the driving behavior is normal. 如請求項5所述之駕駛行為偵測方法,其中該頭部偏擺演算法之步驟包括: 對當下之該使用者影像進行該使用者之鼻子偵測; 取得該鼻子之位置座標; 比較該鼻子之位置座標與一合理人臉區域後,取得該駕駛者之頭擺角度;以及 當該頭擺角度高於一預設閥值,表示該頭部產生偏擺,其中該預設閥值可為15度。The driving behavior detection method according to claim 5, wherein the steps of the head deflection algorithm include: detecting the user's nose on the current user image; obtaining the position coordinates of the nose; comparing the After the position coordinates of the nose and a reasonable face area, the driver ’s head swing angle is obtained; and when the head swing angle is higher than a preset threshold value, it indicates that the head is deflected, and the preset threshold value may be 15 degrees. 如請求項6所述之駕駛行為偵測方法,其中該合理人臉區域係為預設區域或正視人臉區域。The driving behavior detection method according to claim 6, wherein the reasonable face area is a preset area or a face area facing the face. 如請求項1所述之駕駛行為偵測方法,其中該資料庫中的該等手臂樣本影像以及該等頭部違規樣本影像,係在擷取該使用者影像之步驟前建立。The driving behavior detection method according to claim 1, wherein the arm sample images and the head violation sample images in the database are established before the step of capturing the user image. 如請求項1所述之駕駛行為偵測方法,其中該第一級警示訊號與該第二級警示訊號係傳遞到至少一電腦主機中,該電腦主機可為車用主機或遠端伺服器。The driving behavior detection method according to claim 1, wherein the first-level warning signal and the second-level warning signal are transmitted to at least one computer host, and the computer host may be a vehicle host or a remote server. 一種駕駛行為偵測系統,包括; 一攝影裝置,擷取至少一使用者影像,其包括一手臂影像以及一頭部行為影像; 一資料庫,儲存複數手臂樣本影像以及複數頭部違規樣本影像;以及 一處理器,電性連接該攝影裝置以及該資料庫,該處理器擷取該手臂影像與該資料庫中的該等手臂樣本影像進行比對,當該手臂影像符合至少一該手臂樣本影像時,表示駕駛行為正常;當該手臂影像不符合至少一該手臂樣本影像時,表示駕駛行為異常,即產生一第一級警示訊號,並將該第一級警示訊號傳遞出去,該處理器再擷取該頭部行為影像與該資料庫中的該等頭部違規樣本影像進行比對,當該頭部行為影像不符合至少一該頭部違規樣本影像表示駕駛行為正常;當該頭部行為影像符合至少一該頭部違規樣本影像表示駕駛行為異常,並發出一第二級警示訊號,以將該第二級警示訊號傳遞出去。A driving behavior detection system includes: a photographing device that captures at least one user image including an arm image and a head behavior image; a database storing a plurality of arm sample images and a plurality of head violation sample images; And a processor, which is electrically connected to the photographing device and the database, the processor captures the arm image and compares them with the arm sample images in the database, and when the arm image matches at least one of the arm sample images Indicates that the driving behavior is normal; when the arm image does not match at least one sample image of the arm, it indicates that the driving behavior is abnormal, that is, a first-level warning signal is generated, and the first-level warning signal is transmitted, and the processor then Capture the head behavior image and compare the head violation sample images in the database. When the head behavior image does not meet at least one of the head violation sample images, it indicates that the driving behavior is normal; when the head behavior The image matches at least one sample of the violation of the head, indicating that the driving behavior is abnormal, and a second-level warning signal is issued to Level warning signal to pass out. 如請求項10所述之駕駛行為偵測系統,其中當該處理器係在駕駛異常行為持續一預定時間後,產生該第一級警示訊號,該預定時間可為5秒。The driving behavior detection system according to claim 10, wherein the processor generates the first-level warning signal after the driving abnormal behavior continues for a predetermined time, and the predetermined time may be 5 seconds. 如請求項10所述之駕駛行為偵測系統,更包括一傳輸裝置電性連接該處理器,接收該處理器的控制將該第一級警示訊號或該第二級警示訊號傳遞出去。The driving behavior detection system according to claim 10, further comprising a transmission device electrically connected to the processor, and receiving control of the processor to transmit the first-level warning signal or the second-level warning signal. 如請求項12所述之駕駛行為偵測系統,更包括至少一電腦主機接收該傳輸裝置傳遞的該第一級警示訊號以及該第二級警示訊號,以根據該第一級警示訊號或該第二級警示訊號發出一聲音警示訊號或影像警示訊號。The driving behavior detection system according to claim 12, further comprising at least one computer host receiving the first-level warning signal and the second-level warning signal transmitted by the transmission device, so as to receive the first-level warning signal or the first-level warning signal. The secondary warning signal sends out an audible warning signal or a visual warning signal. 如請求項13所述之駕駛行為偵測系統,其中該電腦主機係為車用主機或遠端伺服器。The driving behavior detection system according to claim 13, wherein the computer host is a vehicle host or a remote server. 如請求項10所述之駕駛行為偵測系統,其中該處理器係利用一高斯混合模型方程式(Gaussian mixture model,GMM)將該手臂影像轉換為能與該等手臂樣本影像對比的影像,以進行該手臂影像與該等手臂樣本影像的比對。The driving behavior detection system according to claim 10, wherein the processor uses a Gaussian mixture model (GMM) to convert the arm image into an image that can be compared with the arm sample images for processing. Comparison of the arm image with the arm sample images. 如請求項10所述之駕駛行為偵測系統,其中該處理器透過擷取該頭部行為影像中的影像特徵,比對該等頭部違規樣本影像中的對比特徵,以比對該頭部行為影像與該等頭部違規樣本影像。The driving behavior detection system according to claim 10, wherein the processor compares the contrast features in the sample images of the head violations by capturing the image features in the behavior images of the head to compare the features in the sample images of the violations of the head. Behavior images and sample images of these head violations. 如請求項11所述之駕駛行為偵測系統,其中該處理器更可利用一頭部偏擺演算法判斷該頭部行為影像中使用者的頭部是否偏擺: 若是,該處理器則發出該第二級警示訊號,以提醒駕駛行為異常;及 若否,表示該駕駛行為正常。The driving behavior detection system according to claim 11, wherein the processor can further use a head deflection algorithm to determine whether the user's head is deflected in the head behavior image: if yes, the processor issues The second-level warning signal to remind the driving behavior is abnormal; if not, it indicates that the driving behavior is normal. 如請求項17所述之駕駛行為偵測系統,其中該頭部偏擺演算法係對當下該使用者影像進行該使用者之鼻子偵測後,取得該鼻子之位置座標,再比較該鼻子之位置座標與一合理人臉區域後,取得該駕駛者之頭擺角度,當該頭擺角度高於一預設閥值,則表示該頭部偏擺,其中該預設閥值可為15度。The driving behavior detection system according to claim 17, wherein the head deflection algorithm is to detect the nose of the user from the current user image, obtain the position coordinates of the nose, and then compare the nose position After the position coordinates and a reasonable face area, the driver's head swing angle is obtained. When the head swing angle is higher than a preset threshold value, it indicates that the head is deflected, wherein the preset threshold value can be 15 degrees . 如請求項18所述之駕駛行為偵測系統,其中該合理人臉區域係為預設區域或正視人臉區域。The driving behavior detection system according to claim 18, wherein the reasonable face area is a preset area or a face area facing the face.
TW105139062A 2016-11-28 2016-11-28 Driving behavior detection method and system thereof TWI598258B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW105139062A TWI598258B (en) 2016-11-28 2016-11-28 Driving behavior detection method and system thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW105139062A TWI598258B (en) 2016-11-28 2016-11-28 Driving behavior detection method and system thereof

Publications (2)

Publication Number Publication Date
TWI598258B TWI598258B (en) 2017-09-11
TW201819226A true TW201819226A (en) 2018-06-01

Family

ID=60719497

Family Applications (1)

Application Number Title Priority Date Filing Date
TW105139062A TWI598258B (en) 2016-11-28 2016-11-28 Driving behavior detection method and system thereof

Country Status (1)

Country Link
TW (1) TWI598258B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI741892B (en) * 2020-12-01 2021-10-01 咸瑞科技股份有限公司 In-car driving monitoring system

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111079475A (en) * 2018-10-19 2020-04-28 上海商汤智能科技有限公司 Driving state detection method and device, driver monitoring system, vehicle
CN113850101A (en) * 2020-06-28 2021-12-28 财团法人车辆研究测试中心 Driver state monitor test method and test system thereof
CN115376259B (en) * 2022-07-07 2024-04-02 东莞华贝电子科技有限公司 Alarm method and device for door lock, electronic equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI741892B (en) * 2020-12-01 2021-10-01 咸瑞科技股份有限公司 In-car driving monitoring system

Also Published As

Publication number Publication date
TWI598258B (en) 2017-09-11

Similar Documents

Publication Publication Date Title
US10152642B2 (en) Method for detecting driving behavior and system using the same
JP5974915B2 (en) Arousal level detection device and arousal level detection method
WO2020078465A1 (en) Method and device for driving state analysis, driver monitoring system and vehicle
CN110765807B (en) Driving behavior analysis, processing method, device, equipment and storage medium
WO2020078464A1 (en) Driving state detection method and apparatus, driver monitoring system, and vehicle
TW201112180A (en) Driver monitoring system and its method thereof
CN106874831A (en) Driving behavior detection method and system
WO2019232972A1 (en) Driving management method and system, vehicle-mounted intelligent system, electronic device and medium
TW201819226A (en) Method for detecting driving behaviors and system thereof capable of alerting drivers to concentrate on driving before an abnormal driving behavior occurs, thereby effectively improving driving safety
CN111645694B (en) A driver's driving state monitoring system and method based on attitude estimation
CN102310771A (en) Motor vehicle safety control method and system based on driver face identification
WO2017075976A1 (en) Method and device for assessing driving behavior
WO2020192498A1 (en) Method and apparatus for detecting state of holding steering wheel by hands
CN105069976A (en) Integrated fatigue detection and driving record system and fatigue detection method
CN105764735A (en) Two-step sleepy driving prevention apparatus through recognizing operation, front face, eye, and mouth shape
CN202088896U (en) Motor vehicle safety control system based on driver face recognition
CN112949345A (en) Fatigue monitoring method and system, automobile data recorder and intelligent cabin
CN118587689B (en) Driver fatigue status detection method and system
CN111294564A (en) Information display method and wearable device
CN110525444A (en) A kind of processing method and processing device for driver's body abnormality situation
CN111401217B (en) Driver attention detection method, device and equipment
CN114973187A (en) Collision detection processing method of electric bicycle, electric bicycle and storage medium
JP7298351B2 (en) State determination device, in-vehicle device, driving evaluation system, state determination method, and program
JP7068606B2 (en) Driving evaluation device, on-board unit, driving evaluation method, and computer program
CN113221734A (en) Image recognition method and device