CN104809445A - Fatigue driving detection method based on eye and mouth states - Google Patents
Fatigue driving detection method based on eye and mouth states Download PDFInfo
- Publication number
- CN104809445A CN104809445A CN201510229231.4A CN201510229231A CN104809445A CN 104809445 A CN104809445 A CN 104809445A CN 201510229231 A CN201510229231 A CN 201510229231A CN 104809445 A CN104809445 A CN 104809445A
- Authority
- CN
- China
- Prior art keywords
- mouth
- area
- image
- eye
- fatigue
- Prior art date
- Legal status (The legal status 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 status listed.)
- Granted
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 35
- 238000000034 method Methods 0.000 claims abstract description 19
- 206010048232 Yawning Diseases 0.000 claims abstract description 15
- 241001282135 Poromitra oscitans Species 0.000 claims abstract description 14
- 208000003464 asthenopia Diseases 0.000 claims abstract description 10
- 238000005286 illumination Methods 0.000 claims abstract description 4
- 238000007781 pre-processing Methods 0.000 claims abstract description 4
- 210000004709 eyebrow Anatomy 0.000 claims description 8
- 238000000605 extraction Methods 0.000 claims description 7
- 230000004397 blinking Effects 0.000 claims description 6
- 239000000284 extract Substances 0.000 claims description 3
- 206010039203 Road traffic accident Diseases 0.000 abstract description 4
- 238000003909 pattern recognition Methods 0.000 abstract description 2
- 230000003449 preventive effect Effects 0.000 abstract description 2
- 238000004364 calculation method Methods 0.000 abstract 1
- 230000006399 behavior Effects 0.000 description 7
- 230000000694 effects Effects 0.000 description 4
- 241000282414 Homo sapiens Species 0.000 description 3
- 230000004399 eye closure Effects 0.000 description 3
- 210000000744 eyelid Anatomy 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 210000003128 head Anatomy 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000005856 abnormality Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000003628 erosive effect Effects 0.000 description 1
- 210000000887 face Anatomy 0.000 description 1
- 239000011521 glass Substances 0.000 description 1
- 230000006461 physiological response Effects 0.000 description 1
- 230000002618 waking effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/10—Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
- G06V40/16—Human faces, e.g. facial parts, sketches or expressions
- G06V40/161—Detection; Localisation; Normalisation
- G06V40/162—Detection; Localisation; Normalisation using pixel segmentation or colour matching
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V20/00—Scenes; Scene-specific elements
- G06V20/50—Context or environment of the image
- G06V20/59—Context or environment of the image inside of a vehicle, e.g. relating to seat occupancy, driver state or inner lighting conditions
- G06V20/597—Recognising the driver's state or behaviour, e.g. attention or drowsiness
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/10—Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
- G06V40/16—Human faces, e.g. facial parts, sketches or expressions
- G06V40/168—Feature extraction; Face representation
- G06V40/171—Local features and components; Facial parts ; Occluding parts, e.g. glasses; Geometrical relationships
Landscapes
- Engineering & Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Oral & Maxillofacial Surgery (AREA)
- Physics & Mathematics (AREA)
- General Health & Medical Sciences (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)
- Image Analysis (AREA)
- Image Processing (AREA)
Abstract
基于眼部和嘴部状态的疲劳驾驶检测方法属图像处理和模式识别技术领域,本发明包括下列步骤:驾驶员视频图像采集,光照补偿预处理,人脸区域检测,综合疲劳判断,发出疲劳警报;其中人脸区域检测包括眼部检测和嘴部检测;眼部检测包括用投影法获取眼部区域,作眼部特征分析,与标准特征比较,进行k值计算和眼部疲劳的判断;嘴部检测包括用mouth-map法获取嘴部区域,作嘴部特征分析,与标准特征比较,进行p值计算和打哈欠的判断;本发明结合眼部和嘴部两个特征参数进行判断,与单一参数相比对疲劳判断的准确率和可靠性更高,本发明的实施可大幅降低由于驾驶员疲劳驾驶而引发的交通事故,为保证驾驶员的生命财产安全,提供了一种新的防范措施。
The fatigue driving detection method based on the state of the eyes and the mouth belongs to the technical field of image processing and pattern recognition. The present invention includes the following steps: driver video image acquisition, illumination compensation preprocessing, face area detection, comprehensive fatigue judgment, and fatigue alarm ; Wherein the face area detection includes eye detection and mouth detection; eye detection includes using the projection method to obtain the eye area, for eye feature analysis, compared with standard features, k value calculation and eye fatigue judgment; The detection of the mouth includes using the mouth-map method to obtain the area of the mouth, analyzing the characteristics of the mouth, comparing with the standard features, calculating the p value and judging yawning; the present invention combines the two characteristic parameters of the eyes and the mouth to judge, and it is compared with the standard features. Compared with single parameter, the accuracy and reliability of fatigue judgment are higher. The implementation of the present invention can greatly reduce traffic accidents caused by driver fatigue driving, and provide a new preventive method to ensure the safety of driver's life and property. measure.
Description
技术领域technical field
本发明属图像处理和模式识别技术领域,具体涉及一种基于驾驶员的眼部和嘴部状态的疲劳检测方法。The invention belongs to the technical field of image processing and pattern recognition, and in particular relates to a fatigue detection method based on the state of the driver's eyes and mouth.
背景技术Background technique
随着经济的迅速发展,汽车的数量在不断增加。汽车在给人类带来交通快捷方便的同时,也为交通安全埋下了隐患,驾驶员的疲劳驾驶是引发交通事故的一个重要因素。据数据统计,有20%的交通事故发生原因是疲劳驾驶,因此对驾驶员做出实时准确的疲劳警告尤为重要。With the rapid development of the economy, the number of cars is increasing. While automobiles bring fast and convenient transportation to human beings, they also bury hidden dangers for traffic safety. Driver's fatigue driving is an important factor that causes traffic accidents. According to statistics, 20% of traffic accidents are caused by fatigue driving, so it is particularly important to provide real-time and accurate fatigue warnings to drivers.
经过专家学者近几十年的研究,目前对驾驶员疲劳的检测方法主要有接触式和非接触式两类:After decades of research by experts and scholars, there are currently two types of detection methods for driver fatigue: contact and non-contact:
一.接触式,基于驾驶员生理特征的检测,这种方法需要在驾驶员的身体上加一些测量设备,来检测驾驶员的生理参数,比如心电图、脑电图、脉搏等。当驾驶员疲劳时,这些生理信号会发生变化,利用设备的测量值变化来判断是否疲劳。1. Contact type, based on the detection of the driver's physiological characteristics, this method needs to add some measuring equipment to the driver's body to detect the driver's physiological parameters, such as electrocardiogram, electroencephalogram, pulse, etc. When the driver is tired, these physiological signals will change, and the change of the measured value of the device is used to judge whether he is tired or not.
二.非接触式,分为基于车辆行为特征的检测和基于驾驶员行为特征的检测两种方法。其中,①基于车辆行为特征的检测:驾驶员疲劳时,对车辆的驾驶控制能力就会降低。比如,当检测到方向盘长时间不动或变换频繁、车辆速度和转弯角度等异常时,驾驶员就很有可能处于疲劳状态。虽然这种方法不会干扰驾驶,但由于道路状况、驾驶员的驾驶习惯等不同,很难保证检测结果的准确性。②基于驾驶员行为特征的检测:通过检测驾驶员的眼睛闭合度、眨眼频率、头部位置等来判断驾驶员是否疲劳。当驾驶员处于疲劳状态时,最常见的生理行为反应就是眼睛长时间闭合、眨眼频率降低、眨眼周期变长、打哈欠,以及头部位置异常等,利用机器视觉检测上述生理反应,经处理识别就可判断驾驶员是否疲劳。2. Non-contact, which is divided into two methods: detection based on vehicle behavior characteristics and detection based on driver behavior characteristics. Among them, ① detection based on vehicle behavior characteristics: when the driver is tired, the driving control ability of the vehicle will be reduced. For example, when it detects that the steering wheel does not move for a long time or changes frequently, abnormalities such as vehicle speed and turning angle are detected, the driver is likely to be in a state of fatigue. Although this method does not interfere with driving, it is difficult to guarantee the accuracy of the detection results due to differences in road conditions and drivers' driving habits. ② Detection based on the driver's behavior characteristics: By detecting the driver's eye closure, blink frequency, head position, etc., it can be judged whether the driver is fatigued. When the driver is in a state of fatigue, the most common physiological behavioral responses are closed eyes for a long time, reduced blinking frequency, longer blinking cycle, yawning, and abnormal head position, etc., using machine vision to detect the above physiological responses, and identify them after processing It can be judged whether the driver is tired or not.
上述两类方法中,接触式的基于驾驶员生理特征的检测方法对检测设备的精度要求高、成本高,而且直接与驾驶员接触,会给驾驶带来干扰。非接触式类的基于车辆行为特征的检测方法虽然不会干扰驾驶,但由于道路状况、驾驶员的驾驶习惯等不同,很难保证检测结果的准确性。基于驾驶员行为特征的检测方法具有对驾驶员无干扰,准确性高而且成本低的优势,是应用最广泛的。这种方法通常是借助图像处理技术检测出人脸,然后提取眼睛,基于PERCLOS原理计算出单位时间内眼睛闭合时间所占的比例,通过与阈值比较来判断驾驶员是否疲劳。这种方法对眼睛的检测要求高,鉴于在人脸上眼睛所占的比例相对比较小,人眼的大小也有区别,而且判断元素单一,会造成疲劳判断结果不理想的情况。Among the above two types of methods, the contact detection method based on the driver's physiological characteristics requires high precision and high cost of the detection equipment, and directly contacts with the driver, which will cause interference to driving. Although non-contact detection methods based on vehicle behavior characteristics will not interfere with driving, it is difficult to guarantee the accuracy of detection results due to differences in road conditions and drivers' driving habits. The detection method based on the driver's behavior characteristics has the advantages of no interference to the driver, high accuracy and low cost, and is the most widely used. This method usually detects the face with the help of image processing technology, then extracts the eyes, calculates the proportion of eye closure time per unit time based on the PERCLOS principle, and judges whether the driver is tired by comparing with the threshold. This method has high requirements for eye detection. Since the proportion of eyes on a human face is relatively small, the size of human eyes is also different, and the judgment element is single, which will cause unsatisfactory fatigue judgment results.
发明内容Contents of the invention
本发明的目的在于提供一种基于眼部和嘴部状态的疲劳驾驶检测方法,在以往疲劳检测方法的基础上加以改进和创新,使疲劳检测结果更为理想。The purpose of the present invention is to provide a fatigue driving detection method based on the state of the eyes and mouth, which is improved and innovated on the basis of the previous fatigue detection method, so that the fatigue detection result is more ideal.
本发明的基于眼部和嘴部状态的疲劳驾驶检测方法,包括下列步骤:The fatigue driving detection method based on eye and mouth state of the present invention comprises the following steps:
1.采集驾驶员视频流,将视频流转换为帧图像;1. Collect the driver's video stream and convert the video stream into a frame image;
2.进行图像的光照补偿预处理:用“参考白”算法首先检测图像中像素点的亮度,得到亮度值在前5%的像素,设置亮度值在前5%的像素点的灰度值均为255,然后依比例对图像的RGB三个分量进行线性调整,得到光照补偿后的图像;2. Carry out the light compensation preprocessing of the image: use the "reference white" algorithm to first detect the brightness of the pixels in the image, get the pixels whose brightness values are in the top 5%, and set the gray value of the pixels whose brightness values are in the top 5%. is 255, and then linearly adjust the RGB three components of the image in proportion to obtain the image after illumination compensation;
3.检测人脸区域:对步骤2得到的光照补偿后的图像,基于肤色特征区分肤色点和非肤色点,得到肤色区域的二值图像,并对二值图像进行连通性分析的数学形态学处理;用投影法提取人脸区域;3. Detecting the face area: For the light-compensated image obtained in step 2, distinguish skin-colored points and non-skinned-colored points based on the skin-color feature, obtain the binary image of the skin-colored area, and perform the mathematical morphology of the connectivity analysis on the binary image Processing; using the projection method to extract the face area;
4.设定眼部和嘴部特征初始标准值:假设驾驶员在进入驾驶室时处于清醒状态,对此刻获得的图像进行处理,将所得到的眼部状态和嘴部状态的初始值作为标准值并保存;4. Set the initial standard values of eye and mouth features: Assume that the driver is awake when entering the cab, process the image obtained at this moment, and use the obtained initial values of the eye state and mouth state as the standard value and save;
5.进行眼部区域的提取及特征分析:对步骤3得到的人脸区域二值图像进行水平和垂直投影,分割出包括眉毛在内的眼部区域,然后用此眼部区域特征进行状态分析,具体包括下列步骤:5. Extraction and feature analysis of the eye area: Horizontally and vertically project the binary image of the face area obtained in step 3, segment the eye area including the eyebrows, and then use the eye area features for state analysis , including the following steps:
5.1对步骤5得到的包括眉毛在内的眼部区域进行灰度处理,得到眼部区域的灰度图像,对此灰度图像像素点的x坐标求均值,得到图像像素点的水平平均强度,在均值图像上会出现两个明显的波谷,根据两个波谷之间距离差d的不同,来判断眼睛是睁开还是闭合,将初始图像处理得到的两个波谷之间的距离差d0作为参考标准,若d-d0大于所设定的阈值,则将眼睛判为闭合状态,否则为正常状态;5.1 Perform grayscale processing on the eye region including the eyebrows obtained in step 5 to obtain a grayscale image of the eye region, and calculate the mean value of the x coordinates of the grayscale image pixels to obtain the horizontal average intensity of the image pixels, There will be two obvious troughs on the average image. According to the difference in the distance d between the two troughs, it is judged whether the eyes are open or closed. The distance difference d 0 between the two troughs obtained by the initial image processing is taken as Reference standard, if dd 0 is greater than the set threshold, the eyes are judged as closed, otherwise they are normal;
5.2眼睛疲劳判断:用k记录眼睛连续闭合的图像帧数,每检测到眼睛闭合时k加1,在k小于阈值的情况下,若检测到眼睛睁开,则将k初始化为0;在k大于阈值的情况下,说明此时不是眨眼,是眼睛疲劳,其中:k是整数型变量,用k来计数,k的初始值为0;5.2 Judgment of eye fatigue: Use k to record the number of image frames with eyes closed continuously, and add 1 to k every time the eyes are closed. If k is less than the threshold, if the eyes are detected to be open, then initialize k to 0; If it is greater than the threshold, it means that it is not blinking, but eye fatigue, where: k is an integer variable, counted by k, and the initial value of k is 0;
6.进行嘴部区域的提取及特征分析:对步骤3得到的人脸区域取下半部分,用下列数学表达式提取嘴部区域,然后用此嘴部区域特征进行状态分析,具体包括下列步骤:6. Extraction and feature analysis of the mouth area: take the lower half of the face area obtained in step 3, use the following mathematical expression to extract the mouth area, and then use the mouth area features to perform state analysis, specifically including the following steps :
其中:Cr是红色色度分量,Cb是蓝色色度分量,n是人脸区域图像像素点个数,η是Cr(x,y)2的平均值与的平均值的估测比值;in: C r is the red chrominance component, C b is the blue chrominance component, n is the number of pixels in the face area image, and η is the average value of C r (x, y) 2 The estimated ratio of the mean of ;
6.1用嘴部区域的二值图像,计算嘴部区域的面积s;以初始图像得到的嘴部区域面积s0作为参考标准值,计算嘴部区域面积s与初始图像得到的嘴部区域面积s0的比值若比值大于所设定的阈值,则判断为嘴巴张开,否则判为正常;其中:嘴部区域面积s与初始图像得到的嘴部区域面积s0的比值可以用像素点数目的比值来代替,n0为初始嘴部区域像素点个数,n为当前帧图像的嘴部区域像素点个数;6.1 Use the binary image of the mouth area to calculate the area s of the mouth area; take the area of the mouth area s 0 obtained from the initial image as a reference standard value, calculate the area s of the mouth area and the area of the mouth area s obtained from the initial image Ratio of 0 If the ratio is greater than the set threshold, it is judged that the mouth is open, otherwise it is judged as normal; where: the ratio of the area of the mouth area s to the area of the mouth area s 0 obtained from the initial image The ratio of the number of pixels can be used Instead, n 0 is the number of pixels in the initial mouth area, and n is the number of pixels in the mouth area of the current frame image;
6.2打哈欠判断:用p值记录嘴巴连续张开的图像帧数,每检测到嘴巴张开时p加1;在p小于阈值的情况下,若检测到嘴巴正常,则将p初始化为0;在p大于阈值的情况下,说明此时是在打哈欠,驾驶员处于疲劳状态,其中:p是整数型变量,用p来计数,p的初始值为0;6.2 Judgment of yawning: Use the p value to record the number of image frames with the mouth open continuously, and add 1 to p every time the mouth is opened; if p is less than the threshold, if the mouth is detected to be normal, initialize p to 0; If it is greater than the threshold, it means that the driver is yawning and the driver is in a state of fatigue, where: p is an integer variable, counted by p, and the initial value of p is 0;
7.综合疲劳判断:根据步骤5.2和步骤6.2,当检测到眼睛疲劳,或打哈欠,或两者同时发生时,给出疲劳警报,使驾驶员停车休息或更换驾驶员。7. Comprehensive fatigue judgment: According to step 5.2 and step 6.2, when eye fatigue, yawning, or both are detected, a fatigue alarm is given to make the driver stop for a rest or replace the driver.
上述的步骤5和步骤6是同步进行。The above step 5 and step 6 are performed synchronously.
本发明结合眼部状态和嘴部状态这两个参数来对驾驶员的疲劳状态进行检测。其中,在对眼部状态进行检测时,利用了眉毛和眼睛之间的特征变化关系,而不需要精确检测到眼睛,减小了搜索范围,是一种新的判断眼睛状态的方法。另外,即使在驾驶员佩戴墨镜或眼镜的情况下,结合对嘴部特征的检测,也不会对驾驶员的疲劳状态造成漏检,使疲劳检测效果更为理想。The present invention detects the fatigue state of the driver in combination with the two parameters of eye state and mouth state. Among them, when detecting the state of the eyes, the feature change relationship between the eyebrows and the eyes is used, and the eyes do not need to be detected accurately, which reduces the search range and is a new method for judging the state of the eyes. In addition, even if the driver wears sunglasses or glasses, combined with the detection of mouth features, the fatigue state of the driver will not be missed, making the fatigue detection effect more ideal.
本发明结合眼部和嘴部两个特征参数进行判断,与单一参数相比对疲劳判断的准确率和可靠性更高,本发明的实施,可大幅降低由于驾驶员疲劳驾驶而引发的交通事故,为保证驾驶员的生命财产安全,提供了一种新的防范措施。The present invention combines the two characteristic parameters of eyes and mouth to judge, and compared with a single parameter, the accuracy and reliability of fatigue judgment are higher. The implementation of the present invention can greatly reduce traffic accidents caused by driver fatigue driving , in order to ensure the safety of the driver's life and property, a new preventive measure is provided.
附图说明Description of drawings
图1为基于眼部和嘴部状态的疲劳驾驶检测方法的流程图Fig. 1 is a flow chart of the fatigue driving detection method based on the state of eyes and mouth
图2为睁眼状态的眼睛灰度图Figure 2 is the grayscale image of the eyes in the open state
图3为正常睁眼时的检测效果图Figure 3 is the detection effect diagram when the eyes are normally open
图4为闭眼状态的眼睛灰度图Figure 4 is the eye grayscale image in the closed eye state
图5为眼睛闭合时的检测效果图Figure 5 is the detection effect diagram when the eyes are closed
具体实施方式Detailed ways
下面结合附图对本发明的目的、具体技术方法和效果进行描述,以便本领域的技术人员更好地理解本发明。本发明采用了眼部和嘴部特征来检测驾驶员是否疲劳,如图1所示,该方法包括下列步骤:The purpose, specific technical methods and effects of the present invention will be described below in conjunction with the accompanying drawings, so that those skilled in the art can better understand the present invention. The present invention has adopted eye and mouth features to detect whether the driver is tired, as shown in Figure 1, the method comprises the following steps:
1.采集驾驶员视频流,将视频流转换为帧图像。1. Collect the driver's video stream and convert the video stream into a frame image.
2.进行图像的光照补偿预处理:光照会随着驾驶环境和时间发生变化,对肤色特征的提取影响很大,因此先进行光照补偿,可以更好地提取到人脸区域。用到的是一种“参考白”算法,首先检测图像中像素点的亮度,得到亮度值在前5%的像素,设置亮度值在前5%的像素点的平均灰度值为255,即将这些像素作为“参考白”,然后依比例对图像的RGB三个分量进行线性调整,得到光照补偿后的图像。2. Pre-processing the image with light compensation: The light will change with the driving environment and time, which has a great impact on the extraction of skin color features. Therefore, light compensation is performed first to better extract the face area. What is used is a "reference white" algorithm. First, the brightness of the pixels in the image is detected to obtain the pixels whose brightness values are in the top 5%, and the average gray value of the pixels whose brightness values are in the top 5% is set to 255, that is, These pixels are used as "reference white", and then linearly adjust the RGB three components of the image in proportion to obtain the image after illumination compensation.
3.检测人脸区域:利用肤色特征检测人脸是一种比较简单有效的方法。将图像从RGB转换到HSV和YCbCr色彩空间进行处理,在YCbCr色彩空间,亮度分量Y和色度信息CbCr是独立的,利用肤色的聚类特性可以很好地将肤色区域提取出来。在HSV色彩空间,色调Hue在肤色区域和非肤色区域有着明显的不同值。采用下列公式(1)提取肤色区域:3. Detecting face area: using skin color features to detect faces is a relatively simple and effective method. Convert the image from RGB to HSV and YCbCr color space for processing. In YCbCr color space, the brightness component Y and chrominance information CbCr are independent, and the skin color area can be extracted well by using the clustering characteristics of skin color. In the HSV color space, Hue has significantly different values in the skin-colored area and the non-skinned area. Use the following formula (1) to extract the skin color area:
Cr≥140 and Cr≤165 and Cb≥140and Cb≤195andC r ≥140 and C r ≤165 and C b ≥140and C b ≤195and
Hue≥0.01 and Hue≤0.1 (1)Hue≥0.01 and Hue≤0.1 (1)
对步骤2得到的光照补偿后的图像,利用上述公式(1)区分肤色点和非肤色点,肤色点置为1,非肤色点置为0,得到肤色区域的二值图像,并对二值图像进行连通性分析等数学形态学处理;用投影法找出人脸边界,然后精确提取人脸区域。For the light-compensated image obtained in step 2, use the above formula (1) to distinguish skin-colored points and non-skinned-colored points, set the skin-colored point to 1, and set the non-skinned point to 0 to obtain the binary image of the skin-colored area. The image is processed by mathematical morphology such as connectivity analysis; the projection method is used to find the boundary of the face, and then the face area is accurately extracted.
4.设定眼部和嘴部特征初始标准值:以驾驶员最初进入驾驶室时的清醒状态的特征作为参考标准,保存此时的特征值,用驾驶过程中检测到的特征值与之比较,并作出是否疲劳的判断。假设驾驶员在进入驾驶室时处于清醒状态,对此刻获得的图像进行处理,将所得到的眼部状态和嘴部状态的初始值作为标准值并保存。4. Set the initial standard value of eye and mouth features: take the feature of the driver’s waking state when he first enters the cab as a reference standard, save the feature value at this time, and compare it with the feature value detected during driving , and make a judgment on fatigue. Assuming that the driver is awake when he enters the cab, the image obtained at this moment is processed, and the obtained initial values of the eye state and mouth state are taken as standard values and saved.
5.进行眼部区域的提取及特征分析:根据眼睑到眉毛的高度h来判断眼睛的睁闭,当眼睛闭合时,眼睑运动到眼睛最下部,此时高度h是最大的;当正常睁眼时,眼睑运动到眼睛上部,此时高度h是最小的。对步骤3得到的人脸区域二值图像进行水平和垂直投影,分割出包括眉毛在内的眼部区域,然后用上述原理对此眼部区域特征进行状态分析,具体包括下列步骤:5. Extraction and feature analysis of the eye area: judge the opening and closing of the eyes according to the height h from the eyelids to the eyebrows. When the eyes are closed, the eyelids move to the lowest part of the eyes, and the height h is the largest at this time; when the eyes are opened normally When the eyelid moves to the upper part of the eye, the height h is the smallest. Horizontally and vertically project the binary image of the face area obtained in step 3, segment the eye area including the eyebrows, and then use the above principle to analyze the state of the eye area features, specifically including the following steps:
5.1对步骤5得到的包括眉毛在内的眼部区域进行灰度处理,得到眼部区域的灰度图像,如图2和图4所示,对此灰度图像的x坐标求均值,在均值图像上会出现两个明显的波谷,根据两个波谷之间距离差d的不同,可以判断眼睛是睁开还是闭合。结合图3和图5分析,将初始图像处理得到的两个波谷之间的距离差d0作为参考标准,若d-d0大于所设定的阈值,则将眼睛判为闭合状态,否则为正常状态。5.1 Perform grayscale processing on the eye region including the eyebrows obtained in step 5 to obtain the grayscale image of the eye region, as shown in Figure 2 and Figure 4, calculate the mean value of the x coordinates of this grayscale image, in the mean value There will be two obvious troughs on the image, and according to the difference in distance d between the two troughs, it can be judged whether the eyes are open or closed. Combined with the analysis of Figure 3 and Figure 5, the distance d 0 between the two troughs obtained by the initial image processing is used as a reference standard. If dd 0 is greater than the set threshold, the eyes are judged as closed, otherwise they are normal .
5.2眼睛疲劳判断:一般的眨眼持续时间是0.3秒左右,超过这个时间则说明驾驶员可能处于闭眼睡眠状态。用k值记录眼睛连续闭合的图像帧数,通过k值与设定阈值k0的比较,对眨眼与否作出判断。将k初始值设置为0,每当检测到眼睛闭合时k加1。在k小于阈值k0的情况下,若检测到眼睛睁开,则将k初始化为0;在k0大于阈值k0的情况下,说明此时不是眨眼,是眼睛疲劳;其中:k是整数型变量,用k来计数,k0是最长眨眼持续时间对应的图像帧数。5.2 Judgment of eye fatigue: The general duration of blinking is about 0.3 seconds. If the time exceeds this time, it means that the driver may be in a sleep state with eyes closed. Use the k value to record the number of image frames in which the eyes are closed continuously, and judge whether to blink or not by comparing the k value with the set threshold k 0 . Set the initial value of k to 0 and increment k by 1 whenever eye closure is detected. When k is less than the threshold k 0 , if it is detected that the eyes are open, then initialize k to 0; if k 0 is greater than the threshold k 0 , it means that it is not blinking but eye fatigue; where: k is an integer Type variable, counted by k, k 0 is the number of image frames corresponding to the longest blink duration.
6.进行嘴部区域的提取及特征分析:嘴在人脸的下半部分,只取人脸下半部做检测可以提高检测效率和准确度。在嘴部区域,红色是最强的,蓝色是最弱的,唇色和肤色存在一定的差别,对步骤3得到的人脸区域取下半部分,用下列数学表达式(2)提取嘴部区域。人处在疲劳状态时,除了眼睛长时间闭合,还伴随着打哈欠的现象。当打哈欠时,嘴巴张开的幅度很大,此时嘴巴区域的面积就会比正常时的面积大,对应的像素点的个数也会比正常时的多。用上述原理对嘴部区域特征进行状态分析,具体包括下列步骤:6. Extraction and feature analysis of the mouth area: the mouth is in the lower half of the face, and only the lower half of the face is used for detection to improve detection efficiency and accuracy. In the mouth area, red is the strongest, blue is the weakest, and there is a certain difference between lip color and skin color. For the face area obtained in step 3, take the lower half, and use the following mathematical expression (2) to extract the mouth Ministry area. When a person is in a state of fatigue, in addition to closing the eyes for a long time, it is also accompanied by the phenomenon of yawning. When yawning, the mouth opens greatly, and the area of the mouth area will be larger than normal, and the number of corresponding pixels will also be more than normal. Using the above principles to analyze the state of the characteristics of the mouth region, it specifically includes the following steps:
其中:Cr是红色色度分量,Cb是蓝色色度分量,n是人脸区域图像像素点个数,η是Cr(x,y)2的平均值与的平均值的估测比值;in: C r is the red chrominance component, C b is the blue chrominance component, n is the number of pixels in the face area image, and η is the average value of C r (x, y) 2 The estimated ratio of the mean of ;
6.1将提取到的唇色区域转换为二值图像,经过腐蚀、扩张,找出最大连通域,并对有孔洞的嘴巴区域作填充处理,然后计算嘴部区域的面积s;以初始图像得到的嘴部区域面积s0作为参考标准值,计算嘴部区域的面积s与初始图像得到的嘴部区域面积s0的比值若比值大于所设定的阈值,则判断为嘴巴张开,否则判为正常;其中:嘴部区域的面积s与初始图像得到的嘴部区域面积s0的比值可以用像素点数目的比值来代替,n0为初始嘴部区域像素点个数,n为当前帧图像的嘴部区域像素点个数。6.1 Convert the extracted lip color area into a binary image, find out the maximum connected domain after erosion and expansion, and fill the mouth area with holes, and then calculate the area s of the mouth area; The area of the mouth area s 0 is used as a reference standard value, and the ratio of the area s of the mouth area to the area of the mouth area s 0 obtained from the initial image is calculated If the ratio is greater than the set threshold, it is judged that the mouth is open, otherwise it is judged as normal; where: the ratio of the area s of the mouth area to the area of the mouth area s 0 obtained from the initial image The ratio of the number of pixels can be used Instead, n 0 is the number of pixels in the initial mouth area, and n is the number of pixels in the mouth area of the current frame image.
6.2打哈欠判断:驾驶员在说话时需要张大嘴巴的情况不多,即使有张大嘴巴的需要也不会持续很长时间,会远远小于打哈欠的时间。一般情况下人一次打哈欠的时间大约是5秒钟以上,用p值记录嘴巴连续张开的图像帧数,p初始值为0,每检测到嘴巴张开p加1;在p小于阈值p0的情况下,若检测到嘴巴正常,则将p初始化为0;在p大于阈值p0的情况下,说明此时是在打哈欠,驾驶员处于疲劳状态。其中:p是整数型变量,用p来计数,p0为5秒钟的时间内对应的图像帧数。6.2 Judgment of yawning: It is rare for a driver to open his mouth wide when speaking, and even if there is a need to open his mouth wide, it will not last for a long time, and it will be far shorter than the time of yawning. Under normal circumstances, the time for a person to yawn is about 5 seconds or more. Use the p value to record the number of image frames with the mouth open continuously. The initial value of p is 0. Every time p is detected to open the mouth, add 1; In the case of 0 , if the mouth is detected to be normal, p is initialized to 0; in the case of p greater than the threshold p 0 , it means that the driver is yawning and the driver is in a state of fatigue. Among them: p is an integer variable, counted by p, and p 0 is the corresponding number of image frames within 5 seconds.
7.综合疲劳判断:根据步骤5.2和步骤6.2,当检测到眼睛疲劳,或打哈欠,或两者同时发生时,给出疲劳警报,使驾驶员停车休息或更换驾驶员。7. Comprehensive fatigue judgment: According to step 5.2 and step 6.2, when eye fatigue, yawning, or both are detected, a fatigue alarm is given to make the driver stop for a rest or replace the driver.
上述的步骤5.2和步骤6.2是同步进行。The above step 5.2 and step 6.2 are performed synchronously.
Claims (2)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510229231.4A CN104809445B (en) | 2015-05-07 | 2015-05-07 | method for detecting fatigue driving based on eye and mouth state |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510229231.4A CN104809445B (en) | 2015-05-07 | 2015-05-07 | method for detecting fatigue driving based on eye and mouth state |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104809445A true CN104809445A (en) | 2015-07-29 |
CN104809445B CN104809445B (en) | 2017-12-19 |
Family
ID=53694256
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510229231.4A Active CN104809445B (en) | 2015-05-07 | 2015-05-07 | method for detecting fatigue driving based on eye and mouth state |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104809445B (en) |
Cited By (32)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105488957A (en) * | 2015-12-15 | 2016-04-13 | 小米科技有限责任公司 | Fatigue driving detection method and apparatus |
CN105631423A (en) * | 2015-12-29 | 2016-06-01 | 厦门瑞为信息技术有限公司 | Method for identifying human eye state by use of image information |
CN105844252A (en) * | 2016-04-01 | 2016-08-10 | 南昌大学 | Face key part fatigue detection method |
CN106203293A (en) * | 2016-06-29 | 2016-12-07 | 广州鹰瞰信息科技有限公司 | A kind of method and apparatus detecting fatigue driving |
CN106485214A (en) * | 2016-09-28 | 2017-03-08 | 天津工业大学 | A kind of eyes based on convolutional neural networks and mouth state identification method |
CN107292251A (en) * | 2017-06-09 | 2017-10-24 | 湖北天业云商网络科技有限公司 | A kind of Driver Fatigue Detection and system based on human eye state |
CN107358151A (en) * | 2017-06-02 | 2017-11-17 | 广州视源电子科技股份有限公司 | Eye movement detection method and device and living body identification method and system |
CN107578008A (en) * | 2017-09-02 | 2018-01-12 | 吉林大学 | Fatigue state detection method based on block feature matrix algorithm and SVM |
CN107595307A (en) * | 2017-10-23 | 2018-01-19 | 湖南科技大学 | Fatigue driving detection device and detection method based on machine vision eye recognition |
CN108647616A (en) * | 2018-05-01 | 2018-10-12 | 南京理工大学 | Real-time drowsiness detection method based on facial characteristics |
CN108701214A (en) * | 2017-12-25 | 2018-10-23 | 深圳市大疆创新科技有限公司 | Image processing method, device and equipment |
CN108932461A (en) * | 2017-05-27 | 2018-12-04 | 杭州海康威视数字技术股份有限公司 | A kind of fatigue detection method and device |
CN108985245A (en) * | 2018-07-25 | 2018-12-11 | 深圳市飞瑞斯科技有限公司 | Determination method, apparatus, computer equipment and the storage medium of eye locations |
CN109409259A (en) * | 2018-10-11 | 2019-03-01 | 百度在线网络技术(北京)有限公司 | Drive monitoring method, device, equipment and computer-readable medium |
CN109409347A (en) * | 2018-12-27 | 2019-03-01 | 哈尔滨理工大学 | A method of based on facial features localization fatigue driving |
CN109657550A (en) * | 2018-11-15 | 2019-04-19 | 中科院微电子研究所昆山分所 | A kind of fatigue strength detection method and device |
CN109977820A (en) * | 2019-03-14 | 2019-07-05 | 重庆邮电大学 | A kind of fatigue driving determination method |
CN110025324A (en) * | 2017-12-13 | 2019-07-19 | 欧姆龙株式会社 | Device for estimating state, estimating state method and recording medium |
CN110059599A (en) * | 2019-04-08 | 2019-07-26 | 盐城工学院 | Driving fatigue method for early warning |
CN110077415A (en) * | 2019-04-23 | 2019-08-02 | 朱进军 | New-energy automobile safety monitoring system |
CN110119676A (en) * | 2019-03-28 | 2019-08-13 | 广东工业大学 | A kind of Driver Fatigue Detection neural network based |
CN110188655A (en) * | 2019-05-27 | 2019-08-30 | 上海蔚来汽车有限公司 | Driving condition evaluation method, system and computer storage medium |
CN110309760A (en) * | 2019-06-26 | 2019-10-08 | 深圳市微纳集成电路与系统应用研究院 | The method that the driving behavior of driver is detected |
WO2020034541A1 (en) * | 2018-08-14 | 2020-02-20 | 深圳壹账通智能科技有限公司 | Driver drowsiness detection method, computer readable storage medium, terminal device, and apparatus |
CN111688709A (en) * | 2019-03-14 | 2020-09-22 | 本田技研工业株式会社 | Passenger observation device |
CN111753674A (en) * | 2020-06-05 | 2020-10-09 | 广东海洋大学 | A detection and recognition method of fatigue driving based on deep learning |
CN111950522A (en) * | 2020-08-27 | 2020-11-17 | 长沙理工大学 | A Fatigue Driving Detection Method Based on Face Features |
CN112016429A (en) * | 2020-08-21 | 2020-12-01 | 高新兴科技集团股份有限公司 | Fatigue driving detection method based on train cab scene |
CN114627450A (en) * | 2020-12-10 | 2022-06-14 | 北京巴塔科技有限公司 | Fatigue state detection device and fatigue detection method |
CN115366909A (en) * | 2022-10-21 | 2022-11-22 | 四川省公路规划勘察设计研究院有限公司 | Method, device and electronic equipment for dynamic early warning of driver accidents on road sections with long longitudinal slopes |
CN116844219A (en) * | 2023-06-29 | 2023-10-03 | 深圳卓创智能科技有限公司 | Display methods, devices, equipment and storage media for preventing eye fatigue |
CN118967694A (en) * | 2024-10-18 | 2024-11-15 | 大连科讯精密模具有限公司 | Defect detection method and equipment for steering wheel prototype of new energy vehicles |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101281646A (en) * | 2008-05-09 | 2008-10-08 | 山东大学 | Real-time detection method of driver fatigue based on vision |
CN101732055A (en) * | 2009-02-11 | 2010-06-16 | 北京智安邦科技有限公司 | Method and system for testing fatigue of driver |
CN102254151A (en) * | 2011-06-16 | 2011-11-23 | 清华大学 | Driver fatigue detection method based on face video analysis |
-
2015
- 2015-05-07 CN CN201510229231.4A patent/CN104809445B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101281646A (en) * | 2008-05-09 | 2008-10-08 | 山东大学 | Real-time detection method of driver fatigue based on vision |
CN101732055A (en) * | 2009-02-11 | 2010-06-16 | 北京智安邦科技有限公司 | Method and system for testing fatigue of driver |
CN102254151A (en) * | 2011-06-16 | 2011-11-23 | 清华大学 | Driver fatigue detection method based on face video analysis |
Non-Patent Citations (2)
Title |
---|
HSURL: "Face detection in color images", 《IEEE TRANSACTION ON PATTERN ANALYSIS AND MACHINE INTELLIGENCE》 * |
OMIDYEGANEH M: "Intelligent Driver drowsiness detedtion through fusion of yawning and eye closure", 《INTERNATIONAL CONFERENCE ONVIRTUAL ENVIRONMENTS HUMAN-COMPUTER INTERFACES AND MEASUREMENT SYSTEMS》 * |
Cited By (37)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105488957B (en) * | 2015-12-15 | 2018-06-12 | 小米科技有限责任公司 | Method for detecting fatigue driving and device |
CN105488957A (en) * | 2015-12-15 | 2016-04-13 | 小米科技有限责任公司 | Fatigue driving detection method and apparatus |
CN105631423A (en) * | 2015-12-29 | 2016-06-01 | 厦门瑞为信息技术有限公司 | Method for identifying human eye state by use of image information |
CN105844252A (en) * | 2016-04-01 | 2016-08-10 | 南昌大学 | Face key part fatigue detection method |
CN105844252B (en) * | 2016-04-01 | 2019-07-26 | 南昌大学 | A fatigue detection method for key parts of the face |
CN106203293A (en) * | 2016-06-29 | 2016-12-07 | 广州鹰瞰信息科技有限公司 | A kind of method and apparatus detecting fatigue driving |
CN106485214A (en) * | 2016-09-28 | 2017-03-08 | 天津工业大学 | A kind of eyes based on convolutional neural networks and mouth state identification method |
CN108932461A (en) * | 2017-05-27 | 2018-12-04 | 杭州海康威视数字技术股份有限公司 | A kind of fatigue detection method and device |
CN107358151A (en) * | 2017-06-02 | 2017-11-17 | 广州视源电子科技股份有限公司 | Eye movement detection method and device and living body identification method and system |
CN107292251B (en) * | 2017-06-09 | 2020-08-28 | 湖北天业云商网络科技有限公司 | Driver fatigue detection method and system based on human eye state |
CN107292251A (en) * | 2017-06-09 | 2017-10-24 | 湖北天业云商网络科技有限公司 | A kind of Driver Fatigue Detection and system based on human eye state |
CN107578008A (en) * | 2017-09-02 | 2018-01-12 | 吉林大学 | Fatigue state detection method based on block feature matrix algorithm and SVM |
CN107578008B (en) * | 2017-09-02 | 2020-07-17 | 吉林大学 | Fatigue state detection method based on block feature matrix algorithm and SVM |
CN107595307A (en) * | 2017-10-23 | 2018-01-19 | 湖南科技大学 | Fatigue driving detection device and detection method based on machine vision eye recognition |
CN110025324A (en) * | 2017-12-13 | 2019-07-19 | 欧姆龙株式会社 | Device for estimating state, estimating state method and recording medium |
CN108701214A (en) * | 2017-12-25 | 2018-10-23 | 深圳市大疆创新科技有限公司 | Image processing method, device and equipment |
CN108647616A (en) * | 2018-05-01 | 2018-10-12 | 南京理工大学 | Real-time drowsiness detection method based on facial characteristics |
CN108985245A (en) * | 2018-07-25 | 2018-12-11 | 深圳市飞瑞斯科技有限公司 | Determination method, apparatus, computer equipment and the storage medium of eye locations |
WO2020034541A1 (en) * | 2018-08-14 | 2020-02-20 | 深圳壹账通智能科技有限公司 | Driver drowsiness detection method, computer readable storage medium, terminal device, and apparatus |
CN109409259A (en) * | 2018-10-11 | 2019-03-01 | 百度在线网络技术(北京)有限公司 | Drive monitoring method, device, equipment and computer-readable medium |
CN109657550A (en) * | 2018-11-15 | 2019-04-19 | 中科院微电子研究所昆山分所 | A kind of fatigue strength detection method and device |
CN109409347A (en) * | 2018-12-27 | 2019-03-01 | 哈尔滨理工大学 | A method of based on facial features localization fatigue driving |
CN111688709A (en) * | 2019-03-14 | 2020-09-22 | 本田技研工业株式会社 | Passenger observation device |
CN109977820A (en) * | 2019-03-14 | 2019-07-05 | 重庆邮电大学 | A kind of fatigue driving determination method |
CN110119676B (en) * | 2019-03-28 | 2023-02-03 | 广东工业大学 | Driver fatigue detection method based on neural network |
CN110119676A (en) * | 2019-03-28 | 2019-08-13 | 广东工业大学 | A kind of Driver Fatigue Detection neural network based |
CN110059599A (en) * | 2019-04-08 | 2019-07-26 | 盐城工学院 | Driving fatigue method for early warning |
CN110077415A (en) * | 2019-04-23 | 2019-08-02 | 朱进军 | New-energy automobile safety monitoring system |
CN110188655A (en) * | 2019-05-27 | 2019-08-30 | 上海蔚来汽车有限公司 | Driving condition evaluation method, system and computer storage medium |
CN110309760A (en) * | 2019-06-26 | 2019-10-08 | 深圳市微纳集成电路与系统应用研究院 | The method that the driving behavior of driver is detected |
CN111753674A (en) * | 2020-06-05 | 2020-10-09 | 广东海洋大学 | A detection and recognition method of fatigue driving based on deep learning |
CN112016429A (en) * | 2020-08-21 | 2020-12-01 | 高新兴科技集团股份有限公司 | Fatigue driving detection method based on train cab scene |
CN111950522A (en) * | 2020-08-27 | 2020-11-17 | 长沙理工大学 | A Fatigue Driving Detection Method Based on Face Features |
CN114627450A (en) * | 2020-12-10 | 2022-06-14 | 北京巴塔科技有限公司 | Fatigue state detection device and fatigue detection method |
CN115366909A (en) * | 2022-10-21 | 2022-11-22 | 四川省公路规划勘察设计研究院有限公司 | Method, device and electronic equipment for dynamic early warning of driver accidents on road sections with long longitudinal slopes |
CN116844219A (en) * | 2023-06-29 | 2023-10-03 | 深圳卓创智能科技有限公司 | Display methods, devices, equipment and storage media for preventing eye fatigue |
CN118967694A (en) * | 2024-10-18 | 2024-11-15 | 大连科讯精密模具有限公司 | Defect detection method and equipment for steering wheel prototype of new energy vehicles |
Also Published As
Publication number | Publication date |
---|---|
CN104809445B (en) | 2017-12-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104809445B (en) | method for detecting fatigue driving based on eye and mouth state | |
CN112241658B (en) | A fatigue driving warning method based on depth camera | |
CN107578008B (en) | Fatigue state detection method based on block feature matrix algorithm and SVM | |
CN106530623B (en) | A kind of fatigue driving detection device and detection method | |
CN107292251B (en) | Driver fatigue detection method and system based on human eye state | |
CN103714660B (en) | System for achieving fatigue driving judgment on basis of image processing and fusion between heart rate characteristic and expression characteristic | |
CN106846734B (en) | A kind of fatigue driving detection device and method | |
CN102054163B (en) | Method for testing driver fatigue based on monocular vision | |
CN105788176B (en) | Fatigue driving monitoring and reminding method and system | |
CN101593425B (en) | Machine vision based fatigue driving monitoring method and system | |
CN104123549B (en) | Eye positioning method for real-time monitoring of fatigue driving | |
CN105354985B (en) | Fatigue driving monitoring apparatus and method | |
CN108875642A (en) | A kind of method of the driver fatigue detection of multi-index amalgamation | |
Nguyen et al. | Eye tracking system to detect driver drowsiness | |
CN105117681B (en) | Multiple features fatigue real-time detection method based on Android | |
CN108309311A (en) | A kind of real-time doze of train driver sleeps detection device and detection algorithm | |
CN106529496B (en) | A kind of method of engine drivers in locomotive depot real-time video fatigue detecting | |
CN104318237A (en) | Fatigue driving warning method based on face identification | |
CN106250801A (en) | Based on Face datection and the fatigue detection method of human eye state identification | |
CN105404862A (en) | Hand tracking based safe driving detection method | |
Wang et al. | A method of detecting driver drowsiness state based on multi-features of face | |
Chen | Research on driver fatigue detection strategy based on human eye state | |
Liu et al. | Driver fatigue detection through pupil detection and yawing analysis | |
CN103729646A (en) | Eye image validity detection method | |
Li et al. | Fatigue driving detection system based on face feature |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |