CN105760847A - Visual detection method for detecting whether motor cyclist wears helmet or not - Google Patents

Visual detection method for detecting whether motor cyclist wears helmet or not Download PDF

Info

Publication number
CN105760847A
CN105760847A CN201610116365.XA CN201610116365A CN105760847A CN 105760847 A CN105760847 A CN 105760847A CN 201610116365 A CN201610116365 A CN 201610116365A CN 105760847 A CN105760847 A CN 105760847A
Authority
CN
China
Prior art keywords
image
motorcycle
helmet
classification
detection
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
Application number
CN201610116365.XA
Other languages
Chinese (zh)
Other versions
CN105760847B (en
Inventor
王海
李�诚
蔡英凤
陈龙
江浩斌
袁朝春
徐兴
何友国
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiangsu University
Original Assignee
Jiangsu University
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 Jiangsu University filed Critical Jiangsu University
Priority to CN201610116365.XA priority Critical patent/CN105760847B/en
Publication of CN105760847A publication Critical patent/CN105760847A/en
Application granted granted Critical
Publication of CN105760847B publication Critical patent/CN105760847B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/50Context or environment of the image
    • G06V20/59Context or environment of the image inside of a vehicle, e.g. relating to seat occupancy, driver state or inner lighting conditions
    • G06V20/597Recognising the driver's state or behaviour, e.g. attention or drowsiness
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Image Analysis (AREA)
  • Traffic Control Systems (AREA)

Abstract

本发明涉及一种对摩托车驾驶员头盔佩戴情况的视觉检测方法,所提方法分为两个阶段:摩托车辆分割和分类(用来判断所关注目标是否是摩托车)以及头盔佩戴与否的检测。对于摩托车辆分类,采用常用的Haar特征作为描述符和SVM分类器;对于头盔检测,我们用圆Hough变换(circular hough transform即CHT)提取头部区域,进而利用方向梯度直方图(HOG)描述符提取图像特征,并且用多层神经网络(MLP)分类器将目标进行分类;该方法检测的准度高,实时性好,具有工程实用价值。

The present invention relates to a visual detection method for motorcycle drivers wearing helmets. The proposed method is divided into two stages: motorcycle vehicle segmentation and classification (used to judge whether the target concerned is a motorcycle) and whether the helmet is worn or not. detection. For motorcycle classification, the commonly used Haar features are used as descriptors and SVM classifiers; for helmet detection, we use circular hough transform (CHT) to extract the head region, and then use the histogram of orientation gradient (HOG) descriptor Extract image features, and classify objects with a multi-layer neural network (MLP) classifier; this method has high detection accuracy, good real-time performance, and has engineering practical value.

Description

一种对摩托车驾驶员头盔佩戴情况的视觉检测方法A visual inspection method for motorcycle driver's helmet wearing

技术领域technical field

本发明属于图像处理技术领域,涉及图像分割和图像信息获取,具体涉及一种对摩托车驾驶员头盔佩戴情况的视觉检测方法,主要应用于道路交通安全监控与管理。The invention belongs to the technical field of image processing, and relates to image segmentation and image information acquisition, in particular to a visual detection method for helmet wearing of motorcycle drivers, which is mainly used in road traffic safety monitoring and management.

背景技术Background technique

交通安全问题已成为世界性的重大问题,摩托车的安全性对人类生命财产的影响不言而喻。在许多国家,随着摩托车使用数量的增加,其行驶速度也相应加快,加之交通运输日益繁忙,由于未佩戴头盔而造成的摩托车事故增多,并带来大量的人员伤亡和财产损失,该现象已成为一个不容忽视的社会问题。目前,仅依赖交警人工判断的摩托车驾驶员未佩戴头盔的监督已经越来越难以满足日渐增长的摩托车保有量和未佩戴头盔这样一种违法行为。因此,如何利用广泛的道路监控,利用视觉传感由于具有信息量大、成本低廉的特点,解决未佩戴头盔检测这一问题,具有显示意义。Traffic safety has become a major worldwide issue, and the impact of motorcycle safety on human life and property is self-evident. In many countries, with the increase in the number of motorcycles used, their driving speed has also increased accordingly. In addition to the increasingly busy traffic, motorcycle accidents caused by not wearing helmets have increased, causing a large number of casualties and property losses. The phenomenon has become a social problem that cannot be ignored. At present, the supervision of motorcycle drivers not wearing helmets, which only relies on the manual judgment of the traffic police, has become increasingly difficult to meet the growing number of motorcycles and the illegal behavior of not wearing helmets. Therefore, how to use extensive road monitoring and visual sensing to solve the problem of not wearing a helmet detection due to its large amount of information and low cost is of great significance.

头盔检测技术是指利用图像传感手段对图像中的驾驶者搜寻和判定,以决策出其是否佩戴头盔的过程。目前该方面的技术和方法还比较缺乏。针对此,本发明提出了一个在公共道路上行驶的摩托车驾驶员的头盔检测计算机视觉系统。Helmet detection technology refers to the process of using image sensing means to search and judge the driver in the image to decide whether to wear a helmet. At present, the technology and methods in this area are relatively lacking. Aiming at this, the present invention proposes a helmet detection computer vision system for motorcyclists traveling on public roads.

为了方便的对本发明的内容进行描述,首先需要对一些概念进行说明。In order to describe the content of the present invention conveniently, some concepts need to be explained first.

感兴趣区域:在图像处理领域,感兴趣区域是指从图像中选择的一个局部图像区域,这个区域是图像分析所关注的重点。确定该区域以便进行进一步处理。使用感兴趣区域往往可以减少处理时间,增加精度。Region of Interest: In the field of image processing, a region of interest refers to a local image region selected from an image, which is the focus of image analysis. Identify this area for further processing. Using regions of interest can often reduce processing time and increase accuracy.

发明内容Contents of the invention

本发明提出了一种对摩托车驾驶员头盔佩戴情况的视觉检测方法,所提方法分为两个阶段:摩托车辆分割和分类(用来判断所关注目标是否是摩托车)以及头盔佩戴与否的检测。对于摩托车辆分类,采用常用的Haar特征作为描述符和SVM分类器;对于头盔检测,我们用圆Hough变换(circularhoughtransform即CHT)提取头部区域,进而利用方向梯度直方图(HOG)描述符提取图像特征,并且用多层神经网络(MLP)分类器将目标进行分类。该方法检测的准度高,实时性好,具有工程实用价值。The present invention proposes a visual detection method for motorcycle drivers wearing helmets. The proposed method is divided into two stages: motorcycle vehicle segmentation and classification (used to determine whether the target of interest is a motorcycle) and whether the helmet is worn or not. detection. For motorcycle classification, the commonly used Haar features are used as descriptors and SVM classifiers; for helmet detection, we use circular hough transform (CHT) to extract the head region, and then use the histogram of orientation gradient (HOG) descriptor to extract the image features, and use a multi-layer neural network (MLP) classifier to classify the target. The method has high detection accuracy, good real-time performance, and has engineering practical value.

一种对摩托车驾驶员头盔佩戴情况的视觉检测方法,包括如下步骤:A method for visually detecting the wearing condition of a motorcyclist's helmet, comprising the steps of:

步骤1)背景图像的获取:将图像采集装置安装于路边处对道路运行状况进行采集,从视频流中提取出来的道路实际图像设为A,用自适应高斯混合模型算法在视频流中提取不含运动物体的背景图像设为B;Step 1) Acquisition of the background image: install the image acquisition device on the roadside to collect the road running conditions, set the actual road image extracted from the video stream as A, and use the adaptive Gaussian mixture model algorithm to extract it from the video stream The background image without moving objects is set to B;

步骤2)运动目标的分割:将运动目标从拍摄的图像中分割出来:首先,将步骤1)中所得的图像A和图像B相减,得到图像C;然后,对图像C二值化:用otsu阀值分割法将图像C进行二值化处理,得到图像D;最后,对运动物体分割:对图像D进行边缘检测,并用形态学闭合算子对图像除燥,去除图像噪声,得到分割出的代表运动物体的子图E;Step 2) Segmentation of the moving target: segment the moving target from the captured image: first, subtract the image A and image B obtained in step 1) to obtain an image C; then, binarize the image C: use The otsu threshold segmentation method binarizes the image C to obtain the image D; finally, segment the moving object: perform edge detection on the image D, and use the morphological closure operator to de-dry the image, remove the image noise, and obtain the segmented The subgraph E representing the moving object;

步骤3)目标分类:将步骤2)中得到的子图像E划分成两种:摩托车和非摩托车;首先用Haar特征将被检测对象映射为一个高维特征向量,接着用SVM分类器判断图像目标属于哪一类;若判断为是摩托车,则进入下一个步骤;Step 3) Target classification: divide the sub-image E obtained in step 2) into two types: motorcycle and non-motorcycle; first use Haar feature to map the detected object into a high-dimensional feature vector, and then use SVM classifier to judge Which category the image target belongs to; if it is judged to be a motorcycle, then enter the next step;

步骤4)确定感兴趣区域以及头部子窗口:首先,将判断为是摩托车的E图像的上1/6~1/4部分被定义为感兴趣区域,记为图像G;然后,头部子窗口的确定:用圆Hough变换来计算图像G中的圆,将图像G中具有最佳圆形度的子图像所对应的外切正方形记为图像I;Step 4) Determine the region of interest and the head sub-window: first, the upper 1/6 to 1/4 part of the E image that is judged to be a motorcycle is defined as the region of interest, which is recorded as image G; then, the head Determination of the sub-window: use the circle Hough transform to calculate the circle in the image G, and record the circumscribed square corresponding to the sub-image with the best circularity in the image G as image I;

步骤5)特征提取:用HOG描述符对步骤4)中的图像I进行特征提取:其中HOG描述被分隔成九块,每块被分隔成九个小单元格,于是产生了由81个子特征组成的一个特征向量H;Step 5) feature extraction: use the HOG descriptor to perform feature extraction on the image I in step 4): wherein the HOG description is divided into nine pieces, and each piece is divided into nine small cells, so the resulting image consists of 81 sub-features A eigenvector H of

步骤6)子窗口的分类:经步骤5)将步骤4)中的图像I进行特征提取后,都会得到一个步骤5)中的特征向量H,将这一系列的特征向量H输入到多层神经网络MLP分类器中对子窗口进行分类,从而驾驶员的头部区域图像分类为有头盔和无头盔两大类,从而最终实现了摩托车驾驶员头盔佩戴与否的检测。Step 6) Classification of sub-windows: After step 5) the image I in step 4) is subjected to feature extraction, a feature vector H in step 5) will be obtained, and this series of feature vectors H will be input to the multi-layer neural network The sub-windows are classified in the network MLP classifier, so that the images of the driver's head area are classified into two categories: those with a helmet and those without a helmet, and finally realize the detection of whether a motorcycle driver wears a helmet or not.

进一步的,所述步骤1)中图像采集装置为CCD摄像机。Further, the image acquisition device in step 1) is a CCD camera.

进一步的,所述步骤4)中摩托车的E图像的上1/5为感兴趣区域。Further, the upper 1/5 of the E image of the motorcycle in the step 4) is the region of interest.

附图说明Description of drawings

附图1为本发明实施方案流程图;Accompanying drawing 1 is the flow chart of embodiment of the present invention;

有益效果:Beneficial effect:

1.该方法分两个阶段:摩托车辆分割和分类以及头盔使用的检测。对于摩托车辆分类,我们采用Haar特征作为描述符和SVM模型作为分类器;对于头盔检测,我们用圆Hough变换(CHT)进行头部区域提取,利用梯度方向直方图(HOG)描述符提取图像特征,并且用多层神经网络(MLP)分类器将目标进行分类,通过该分类方法从而实现了从而最终实现了摩托车驾驶员头盔佩戴与否的检测。1. The method is divided into two stages: motor vehicle segmentation and classification and detection of helmet use. For motorcycle classification, we use Haar feature as descriptor and SVM model as classifier; for helmet detection, we use circular Hough transform (CHT) for head region extraction, and use histogram of gradient orientation (HOG) descriptor to extract image features , and use a multi-layer neural network (MLP) classifier to classify the target. Through this classification method, the detection of whether the motorcycle driver wears the helmet is finally realized.

2.通过车辆分割和分类以及头盔使用与否的双级检测策略,实现头盔检测的全部过程。2. Through the two-level detection strategy of vehicle segmentation and classification and whether the helmet is used or not, the whole process of helmet detection is realized.

3.该方法利用广泛的道路监控,利用视觉传感由于具有信息量大、成本低廉的特点,解决未佩戴头盔检测这一问题。3. This method uses extensive road monitoring and visual sensing to solve the problem of not wearing a helmet detection due to its large amount of information and low cost.

具体实施方式detailed description

一种对摩托车驾驶员头盔佩戴情况的视觉检测方法,包括如下步骤:A method for visually detecting the wearing condition of a motorcyclist's helmet, comprising the steps of:

步骤1)背景图像的获取:将图像采集装置安装于路边处对道路运行状况进行采集,从视频流中提取出来的道路实际图像设为A,用自适应高斯混合模型算法在视频流中提取不含运动物体的背景图像设为B;Step 1) Acquisition of the background image: install the image acquisition device on the roadside to collect the road running conditions, set the actual road image extracted from the video stream as A, and use the adaptive Gaussian mixture model algorithm to extract it from the video stream The background image without moving objects is set to B;

步骤2)运动目标的分割:将运动目标从拍摄的图像中分割出来:首先,将步骤1)中所得的图像A和图像B相减,得到图像C;然后,对图像C二值化:用otsu阀值分割法将图像C进行二值化处理,得到图像D;最后,对运动物体分割:对图像D进行边缘检测,并用形态学闭合算子对图像除燥,去除图像噪声,得到分割出的代表运动物体的子图E;Step 2) Segmentation of the moving target: segment the moving target from the captured image: first, subtract the image A and image B obtained in step 1) to obtain an image C; then, binarize the image C: use The otsu threshold segmentation method binarizes the image C to obtain the image D; finally, segment the moving object: perform edge detection on the image D, and use the morphological closure operator to de-dry the image, remove the image noise, and obtain the segmented The subgraph E representing the moving object;

步骤3)目标分类:将步骤2)中得到的子图像E划分成两种:摩托车和非摩托车;首先用Haar特征将被检测对象映射为一个高维特征向量,接着用SVM分类器判断图像目标属于哪一类;若判断为是摩托车,则进入下一个步骤;Step 3) Target classification: divide the sub-image E obtained in step 2) into two types: motorcycle and non-motorcycle; first use Haar feature to map the detected object into a high-dimensional feature vector, and then use SVM classifier to judge Which category the image target belongs to; if it is judged to be a motorcycle, then enter the next step;

步骤4)确定感兴趣区域以及头部子窗口:首先,将判断为是摩托车的E图像的上1/6~1/4部分被定义为感兴趣区域,记为图像G;然后,头部子窗口的确定:用圆Hough变换来计算图像G中的圆,将图像G中具有最佳圆形度的子图像所对应的外切正方形记为图像I;Step 4) Determine the region of interest and the head sub-window: first, the upper 1/6 to 1/4 part of the E image that is judged to be a motorcycle is defined as the region of interest, which is recorded as image G; then, the head Determination of the sub-window: use the circle Hough transform to calculate the circle in the image G, and record the circumscribed square corresponding to the sub-image with the best circularity in the image G as image I;

步骤5)特征提取:用HOG描述符对步骤4)中的图像I进行特征提取:其中HOG描述被分隔成九块,每块被分隔成九个小单元格,于是产生了由81个子特征组成的一个特征向量H;Step 5) feature extraction: use the HOG descriptor to perform feature extraction on the image I in step 4): wherein the HOG description is divided into nine pieces, and each piece is divided into nine small cells, so the resulting image consists of 81 sub-features A eigenvector H of

步骤6)子窗口的分类:经步骤5)将步骤4)中的图像I进行特征提取后,都会得到一个步骤5)中的特征向量H,将这一系列的特征向量H输入到多层神经网络MLP分类器中对子窗口进行分类,从而驾驶员的头部区域图像分类为有头盔和无头盔两大类,从而最终实现了摩托车驾驶员头盔佩戴与否的检测。Step 6) Classification of sub-windows: After step 5) the image I in step 4) is subjected to feature extraction, a feature vector H in step 5) will be obtained, and this series of feature vectors H will be input to the multi-layer neural network The sub-windows are classified in the network MLP classifier, so that the images of the driver's head area are classified into two categories: those with a helmet and those without a helmet, and finally realize the detection of whether a motorcycle driver wears a helmet or not.

其中,所述步骤1)中图像采集装置为CCD摄像机。Wherein, the image acquisition device in the step 1) is a CCD camera.

所述步骤4)中摩托车的E图像的上1/5为感兴趣区域。The upper 1/5 of the E image of the motorcycle in the step 4) is the region of interest.

具体实施例specific embodiment

步骤1:背景图像获取:将图像采集装置CCD摄像机安装于路边处,调整图像采集装置的位置和姿态,以获得高质量的图像(视频);设从视频帧中被提取出来的道路实际图像为A;用自适应高斯混合模型算法(该算法为常用算法,不加赘述)在视频流中提取出不含运动物体的背景图像为B;Step 1: Acquisition of background image: install the image acquisition device CCD camera on the side of the road, adjust the position and attitude of the image acquisition device to obtain high-quality images (video); set the actual road image extracted from the video frame Be A; Use the self-adaptive Gaussian mixture model algorithm (this algorithm is commonly used algorithm, do not add details) to extract the background image that does not contain moving object in the video stream and be B;

步骤2:运动目标的分割:将运动目标从拍摄的图像中分割出来,可通过以下步骤实现;Step 2: Segmentation of the moving target: Segmenting the moving target from the captured image can be achieved through the following steps;

步骤2.1:背景差法:将步骤1中所得图像A和B相减,得到图像C:Step 2.1: Background difference method: Subtract images A and B obtained in step 1 to obtain image C:

步骤2.2:图像二值化。用Otsu阈值分割法(该算法为常用算法,不加赘述)将步骤2.1中的图像C进行二值化处理,得到图像D:所选取的阈值由Otsu自动计算得到;采用该阈值对图像C进行二值化;高于该阈值的像素置“1”;将其余像素置“0”;Step 2.2: Image binarization. Use the Otsu threshold segmentation method (this algorithm is a commonly used algorithm, do not add details) to carry out binarization processing on the image C in step 2.1 to obtain image D: the selected threshold is automatically calculated by Otsu; use this threshold to image C. Binarization; pixels above the threshold are set to "1"; the rest of the pixels are set to "0";

步骤2.3:运动物体分割:对步骤2.2中的图像D进行边缘检测,并用形态学闭合算子对图像除噪,得到分割出的代表运动物体的子图像E;Step 2.3: moving object segmentation: perform edge detection on the image D in step 2.2, and use the morphological closure operator to denoise the image to obtain the segmented sub-image E representing the moving object;

步骤3:目标分类:在交通场景下中,步骤2所分割出的物体(即子图像E)可划分成两种:摩托车和非摩托车;这里采用经典的Haar特征结合SVM分类器的方法:首先用Haar特征将被检测对象映射为一个高维特征向量;接着用SVM分类器判断图像目标属于哪一类:若判断为是摩托车,则进入步骤4;Step 3: Target classification: In the traffic scene, the objects segmented in step 2 (that is, the sub-image E) can be divided into two types: motorcycles and non-motorcycles; here, the classic Haar feature combined with the SVM classifier method is used : First use Haar feature to map the detected object to a high-dimensional feature vector; then use SVM classifier to judge which category the image object belongs to: if it is judged to be a motorcycle, then enter step 4;

步骤4:确定RoI及其子窗口;Step 4: Determine the RoI and its sub-windows;

步骤4.1:感兴趣区域(RoI)提取:将判断为是摩托车的E图像的上1/5部分被定义为感兴趣区域,记为图像G:这个感兴趣区域是通过对车辆分割阶段得到的图像进行统计得到的经验值,头部区域通常位于上1/5图像区域;Step 4.1: Region of interest (RoI) extraction: the upper 1/5 part of the E image that is judged to be a motorcycle is defined as the region of interest, which is recorded as image G: this region of interest is obtained through the vehicle segmentation stage The experience value obtained by image statistics, the head area is usually located in the upper 1/5 image area;

步骤4.2:头部子窗口的确定。用圆Hough变换CHT来计算图像G中可能的圆;将图像G中具有最佳圆形度的子图像所对应的外切正方形记为图像I,该子窗口视为摩托车驾驶员的头部区域;Step 4.2: Determination of the header sub-window. Use the circle Hough transform CHT to calculate the possible circles in the image G; record the circumscribed square corresponding to the sub-image with the best circularity in the image G as image I, and this sub-window is regarded as the motorcycle driver's head area;

步骤5:特征提取:用HOG描述符对步骤4.2中的图像I进行特征提取。其中HOG描述符被分隔成九块,每块被分隔成九个小单元格,于是产生了由81个子特征组成的一个特征向量H;Step 5: Feature extraction: Feature extraction is performed on the image I in step 4.2 with the HOG descriptor. Among them, the HOG descriptor is divided into nine blocks, and each block is divided into nine small cells, thus generating a feature vector H composed of 81 sub-features;

步骤6:子窗口的分类:经步骤5中特征提取后,每个生成的子窗口都会得到一个特征向量,将这一系列的特征向量H输入到多层神经网络MLP分类器中对子窗口进行分类,将驾驶员的头部区域图像分类为有头盔和无头盔两大类,从而最终实现了摩托车驾驶员头盔佩戴与否的检测;Step 6: Classification of sub-windows: After feature extraction in step 5, each generated sub-window will get a feature vector, and this series of feature vectors H will be input into the multi-layer neural network MLP classifier to perform sub-window classification. Classification, the driver's head area image is classified into two categories with helmet and without helmet, so as to finally realize the detection of whether the motorcycle driver wears a helmet or not;

步骤1至步骤6即通过车辆分割和分类以及头盔使用与否的双级检测策略,实现头盔检测的全部过程。From step 1 to step 6, the whole process of helmet detection is realized through the two-level detection strategy of vehicle segmentation and classification and whether the helmet is used or not.

采用本发明的方法,首先使用C++语言编写摩托车驾驶员头盔检测软件;然后将摄像机安装在道路边合适位置,并在车辆行驶过程中对车辆图像进行采集;随后,把拍摄到的原始图像输入到头盔检测软件中进行处理;该视频的分辨率为1280*720像素并且30帧/秒,视频的总时间是150分钟,车辆分类结果的准确率达到了97.78%。头盔检测算法则达到了91.37%的准确率。运行环境为WinXP,CPU为2.4GHz。Adopt the method of the present invention, at first use C++ language to write motorbike driver's helmet detection software; Then video camera is installed on road side suitable position, and vehicle image is collected during vehicle running; Subsequently, the original image that takes is input It is processed in the helmet detection software; the resolution of the video is 1280*720 pixels and 30 frames per second, the total time of the video is 150 minutes, and the accuracy rate of the vehicle classification results reaches 97.78%. The helmet detection algorithm achieved an accuracy rate of 91.37%. The operating environment is WinXP, and the CPU is 2.4GHz.

综上所述,本发明以车辆分割和分类以及头盔使用的检测为一个完整体系,充分利用了Haar特征描述符和SVM模型作为分类器在车辆分类阶段获得的高精度以及用圆Hough变换(CHT)对头部区域的准确提取,进而采用梯度方向直方图(HOG)描述符提取图像特征,用多层神经网络(MLP)分类器将目标进行分类在头盔检测阶段获得的高评价指标的特点,从而实现了准确的从所提供的输入源图像中检测出驾驶员是否佩戴头盔的方法。In summary, the present invention takes vehicle segmentation and classification and the detection of helmet use as a complete system, fully utilizes the Haar feature descriptor and the SVM model as the high precision obtained by the classifier in the vehicle classification stage and uses the circular Hough transform (CHT ) to accurately extract the head region, and then use the histogram of gradient orientation (HOG) descriptor to extract image features, and use the multi-layer neural network (MLP) classifier to classify the target. The characteristics of the high evaluation index obtained in the helmet detection stage, Therefore, a method for accurately detecting whether the driver is wearing a helmet from the provided input source image is realized.

所述实施例为本发明的优选的实施方式,但本发明并不限于上述实施方式,在不背离本发明的实质内容的情况下,本领域技术人员能够做出的任何显而易见的改进、替换或变型均属于本发明的保护范围。The described embodiment is a preferred implementation of the present invention, but the present invention is not limited to the above-mentioned implementation, without departing from the essence of the present invention, any obvious improvement, replacement or modification that those skilled in the art can make Modifications all belong to the protection scope of the present invention.

Claims (3)

1. the visible detection method to helmet of motorcycle driver wear condition, it is characterised in that comprise the steps:
Step 1) acquisition of background image: image collecting device is installed on roadside place road operation conditions is acquired, the road real image extracted from video flowing is set to A, and the background image extracted in video streaming without moving object with adaptive GMM algorithm is set to B;
Step 2) segmentation of moving target: moving target is split from the image of shooting: first, by step 1) in the image A and image B of gained subtract each other, obtain image C;Then, to image C binaryzation: by otsu threshold segmentation method, image C is carried out binary conversion treatment, obtain image D;Finally, to moving meshes: image D is carried out rim detection, and closes operator to image except dry with morphology, remove picture noise, obtain the subgraph E of the representative moving object being partitioned into;
Step 3) target classification: by step 2) in the subimage E that obtains be divided into two kinds: motorcycle and non-motorcycle;First by Haar feature, detected object is mapped as a high dimensional feature vector, judges which kind of image object belongs to followed by SVM classifier;If being judged as YES motorcycle, then enter next step;
Step 4) determine area-of-interest and head subwindow: first, will be deemed as being that upper 1/6~1/4 part of the E image of motorcycle is defined as area-of-interest, be designated as image G;Then, the determination of head subwindow: calculate the circle in image G with Circle Hough Transform, the circumscribed square having in image G corresponding to the subimage of best circularity is designated as image I;
Step 5) feature extraction: with HOG descriptor to step 4) in image I carry out feature extraction: wherein HOG describe be divided into nine pieces, every piece is divided into nine junior unit lattice, then creates the characteristic vector H being made up of 81 subcharacters;
Step 6) classification of subwindow: through step 5) by step 4) in image I carry out feature extraction after, capital obtains a step 5) in characteristic vector H, being input in multilayer neural network MLP grader by this series of characteristic vector H child windows classifies, thus the head zone image of driver has been categorized as the helmet and without the big class of the helmet two, thus finally achieving the detection whether helmet of motorcycle driver is worn.
2. a kind of visible detection method to helmet of motorcycle driver wear condition according to claim 1, it is characterised in that described step 1) in image collector be set to ccd video camera.
3. a kind of visible detection method to helmet of motorcycle driver wear condition according to claim 1, it is characterised in that described step 4) in motorcycle E image upper 1/5 be area-of-interest.
CN201610116365.XA 2016-03-01 2016-03-01 A kind of visible detection method of pair of helmet of motorcycle driver wear condition Active CN105760847B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610116365.XA CN105760847B (en) 2016-03-01 2016-03-01 A kind of visible detection method of pair of helmet of motorcycle driver wear condition

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610116365.XA CN105760847B (en) 2016-03-01 2016-03-01 A kind of visible detection method of pair of helmet of motorcycle driver wear condition

Publications (2)

Publication Number Publication Date
CN105760847A true CN105760847A (en) 2016-07-13
CN105760847B CN105760847B (en) 2019-04-02

Family

ID=56332294

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610116365.XA Active CN105760847B (en) 2016-03-01 2016-03-01 A kind of visible detection method of pair of helmet of motorcycle driver wear condition

Country Status (1)

Country Link
CN (1) CN105760847B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106372662A (en) * 2016-08-30 2017-02-01 腾讯科技(深圳)有限公司 Helmet wearing detection method and device, camera, and server
CN109697430A (en) * 2018-12-28 2019-04-30 成都思晗科技股份有限公司 The detection method that working region safety cap based on image recognition is worn
CN109919182A (en) * 2019-01-24 2019-06-21 国网浙江省电力有限公司电力科学研究院 A terminal-side power safety operation image recognition method
CN110516518A (en) * 2018-05-22 2019-11-29 杭州海康威视数字技术股份有限公司 A kind of illegal manned detection method of non-motor vehicle, device and electronic equipment
CN110866479A (en) * 2019-11-07 2020-03-06 北京文安智能技术股份有限公司 Method, device and system for detecting that motorcycle driver does not wear helmet
CN111251994A (en) * 2018-11-30 2020-06-09 华创车电技术中心股份有限公司 Method and system for detecting objects around vehicle
CN111708098A (en) * 2020-06-18 2020-09-25 山西省交通科技研发有限公司 Traffic safety device and safety detection method
CN112036360A (en) * 2020-09-10 2020-12-04 杭州云栖智慧视通科技有限公司 Method for identifying attributes of helmet of rider
CN113537183A (en) * 2021-09-17 2021-10-22 江苏巨亨智能科技有限公司 Electric vehicle helmet identification method based on artificial intelligence
CN114630786A (en) * 2019-03-18 2022-06-14 威尔斯实验室公司 Deployable security device arrangement

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101017573A (en) * 2007-02-09 2007-08-15 南京大学 Method for detecting and identifying moving target based on video monitoring
CN102044151A (en) * 2010-10-14 2011-05-04 吉林大学 Night vehicle video detection method based on illumination visibility identification
CN104200668A (en) * 2014-07-28 2014-12-10 四川大学 Image-analysis-based detection method for helmet-free motorcycle driving violation event
CN104700068A (en) * 2014-12-17 2015-06-10 安徽清新互联信息科技有限公司 SVM based detection method of safety belt of driver

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101017573A (en) * 2007-02-09 2007-08-15 南京大学 Method for detecting and identifying moving target based on video monitoring
CN102044151A (en) * 2010-10-14 2011-05-04 吉林大学 Night vehicle video detection method based on illumination visibility identification
CN104200668A (en) * 2014-07-28 2014-12-10 四川大学 Image-analysis-based detection method for helmet-free motorcycle driving violation event
CN104700068A (en) * 2014-12-17 2015-06-10 安徽清新互联信息科技有限公司 SVM based detection method of safety belt of driver

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王海,蔡英凤,林国余,张为公: "基于方向可变Haar特征和双曲线模型的车道线检测方法", 《交通运输工程学报》 *

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106372662A (en) * 2016-08-30 2017-02-01 腾讯科技(深圳)有限公司 Helmet wearing detection method and device, camera, and server
CN110516518A (en) * 2018-05-22 2019-11-29 杭州海康威视数字技术股份有限公司 A kind of illegal manned detection method of non-motor vehicle, device and electronic equipment
CN111251994A (en) * 2018-11-30 2020-06-09 华创车电技术中心股份有限公司 Method and system for detecting objects around vehicle
CN111251994B (en) * 2018-11-30 2021-08-24 华创车电技术中心股份有限公司 Vehicle surrounding object detection method and vehicle surrounding object detection system
CN109697430A (en) * 2018-12-28 2019-04-30 成都思晗科技股份有限公司 The detection method that working region safety cap based on image recognition is worn
CN109919182B (en) * 2019-01-24 2021-10-22 国网浙江省电力有限公司电力科学研究院 A terminal-side power safety operation image recognition method
CN109919182A (en) * 2019-01-24 2019-06-21 国网浙江省电力有限公司电力科学研究院 A terminal-side power safety operation image recognition method
CN114630786A (en) * 2019-03-18 2022-06-14 威尔斯实验室公司 Deployable security device arrangement
CN110866479A (en) * 2019-11-07 2020-03-06 北京文安智能技术股份有限公司 Method, device and system for detecting that motorcycle driver does not wear helmet
CN111708098A (en) * 2020-06-18 2020-09-25 山西省交通科技研发有限公司 Traffic safety device and safety detection method
CN112036360A (en) * 2020-09-10 2020-12-04 杭州云栖智慧视通科技有限公司 Method for identifying attributes of helmet of rider
CN112036360B (en) * 2020-09-10 2023-11-28 杭州云栖智慧视通科技有限公司 Riding helmet attribute identification method
CN113537183A (en) * 2021-09-17 2021-10-22 江苏巨亨智能科技有限公司 Electric vehicle helmet identification method based on artificial intelligence

Also Published As

Publication number Publication date
CN105760847B (en) 2019-04-02

Similar Documents

Publication Publication Date Title
CN105760847A (en) Visual detection method for detecting whether motor cyclist wears helmet or not
CN106682601B (en) A driver's illegal call detection method based on multi-dimensional information feature fusion
WO2019196131A1 (en) Method and apparatus for filtering regions of interest for vehicle-mounted thermal imaging pedestrian detection
CN102768726B (en) Pedestrian detection method for preventing pedestrian collision
CN103971524B (en) A kind of traffic flow detection method based on machine vision
CN111553214B (en) Method and system for detecting smoking behavior of driver
CN103927548B (en) Novel vehicle collision avoiding brake behavior detection method
CN105893963B (en) A Method for Screening the Best Recognizable Frames for Single Pedestrian Objects in Videos
CN112153334B (en) Intelligent video box device for security management and corresponding intelligent video analysis method
CN107578048B (en) A vehicle detection method in hyperopia scene based on rough classification of vehicle types
CN108446668A (en) Traffic signal light detection and recognition method and system based on unmanned driving platform
AG et al. Helmet detection using single shot detector (ssd)
CN103400113A (en) Method for detecting pedestrian on expressway or in tunnel based on image processing
CN105893970A (en) Nighttime road vehicle detection method based on luminance variance characteristics
Su et al. A new local-main-gradient-orientation HOG and contour differences based algorithm for object classification
CN110321828B (en) A front vehicle detection method based on binocular camera and vehicle bottom shadow
Arshad et al. Detection of two-wheeler traffic rule violation using deep learning
Li et al. Computer vision techniques to collect helmet-wearing data on cyclists
CN116524474B (en) A vehicle target detection method and system based on artificial intelligence
CN109344800B (en) A Fast Classification and Recognition Method Based on Small Moving Objects
CN107066929A (en) The manifold freeway tunnel Parking hierarchical identification method of one kind fusion
Swapna et al. A Hybrid Approach for Helmet Detection for Riders Safety using Image Processing, Machine Learning, Artificial Intelligence
CN110782485A (en) Vehicle lane change detection method and device
Srivastava et al. Automatic traffic surveillance system Utilizing object detection and image processing
CN112651344A (en) Motorcycle helmet wearing detection method based on YOLOv4

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant