CN109800686A - A kind of driver's smoking detection method based on active infrared image - Google Patents

A kind of driver's smoking detection method based on active infrared image Download PDF

Info

Publication number
CN109800686A
CN109800686A CN201811648701.0A CN201811648701A CN109800686A CN 109800686 A CN109800686 A CN 109800686A CN 201811648701 A CN201811648701 A CN 201811648701A CN 109800686 A CN109800686 A CN 109800686A
Authority
CN
China
Prior art keywords
face
image
feature
driver
line segment
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.)
Pending
Application number
CN201811648701.0A
Other languages
Chinese (zh)
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.)
Wuhan Jimu Intelligent Technology Co Ltd
Original Assignee
Wuhan Jimu Intelligent Technology Co Ltd
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 Wuhan Jimu Intelligent Technology Co Ltd filed Critical Wuhan Jimu Intelligent Technology Co Ltd
Priority to CN201811648701.0A priority Critical patent/CN109800686A/en
Publication of CN109800686A publication Critical patent/CN109800686A/en
Pending legal-status Critical Current

Links

Abstract

Driver's smoking detection method based on active infrared image that the present invention provides a kind of, based on vehicle-mounted active infrared image, driver's face, locating human face's key point (eyes, nose, mouth), the outer profile for judging cigarette are detected using image steganalysis method, cigarette is confirmed using deep learning method, final realize judges the function whether driver smokes.Operation in whole day of the present invention 24 hours, Detection accuracy is high, computation complexity is low.

Description

A kind of driver's smoking detection method based on active infrared image
Technical field
The invention belongs to image identification technical fields, and in particular to a kind of driver's smoking inspection based on active infrared image Survey method.
Background technique
With the rapid development of the automotive industry, car owning amount increases rapidly, to safe driving propose new demand and Challenge.One of the main reason for cigarette smoking in driving procedure is initiation traffic accident, existing smoking detection method is main There are sensor-based smog detection method and the smoking detection method based on image.
Common smoke sensor device has: ion type smog sensor, inside are sensed using ion type smog, are widely used in In each fire protection alarm system;Photoelectric smoke sensor inside has optics labyrinth and infrared tube, and infrared receiving tube is received not when smokeless The infrared light issued to infrared transmitting tube, when flue dust enters optics labyrinth, by reflecting and reflecting, reception pipe receives infrared Light, intelligent alarm circuit judges are if it exceeds threshold value issues alarm;Gas-sensitive smog sensor mainly includes Semiconductor gas sensors Sensor, catalytic combustion type gas sensor and Electro-chemical Gas Sensor etc., most commonly used is semiconductor gas sensor. Driver, which opens a window, to divulge information and reduces smokescope, and will lead to smoke sensor device can't detect smog and missing inspection occur.
The existing smoking detection method based on image is based on visible images, and with computer vision technique, judgement is driven Whether the person of sailing smokes, and different computer vision methods often obtain completely different performance and effect, currently used Method includes traditional mode identification method and deep learning method.When night is rather dark, visible light is ineffective, and counts Traditional mode recognition methods in calculation machine visible sensation method leads to missing inspection or erroneous detection often due to detection accuracy is low, and the practicability is poor;And Depth learning technology in computer vision methods causes hardware cost high, is unfavorable for pushing away on a large scale since computation complexity is big Wide application.
Summary of the invention
The technical problem to be solved by the present invention is providing a kind of driver's smoking detection side based on active infrared image Method is based on infrared image, judges whether driver smokes using computer vision technique.
A kind of technical solution taken by the invention to solve the above technical problem are as follows: 1. driving based on active infrared image The person's of sailing smoking detection method, comprising the following steps:
Step S1: the active infrared image of vehicle carried driving position is obtained.
Step S2: with image bilinearity difference, histogram equalization and median filter respectively to obtaining in step S1 Image is zoomed in and out and is filtered, and exports treated image.
Step S3: to the image obtained in step S2 with image characteristics extraction device extract feature, with classifier to feature into Row classification, the position for obtaining meeting classifier is face location;In magnitude order by face, obtaining maximum face is Driver's face.
Step S4: face key point is detected to the image obtained in step S3 detection algorithm, exports the key point of face Position.
Step S5: parallel lines detection is carried out to the image obtained in step S4, obtains the candidate region of cigarette.
Step S6: parallel lines filtering is carried out to the image obtained in step S5, filters out the corresponding parallel lines of non-cigarette.
Step S7: detecting the image obtained in step S6, if still having parallel lines, uses deep neural network Classifier classifies to the image-region of existing parallel lines, judges whether it is cigarette, then counts plus one if it is cigarette, such as Fruit be not count it is constant.
Step S8: judging the obtained counting of step S7, if counting is more than threshold value N within time continuous T second, It then alerts, does not otherwise alert.
According to the above scheme, in the step S3, with the HOG of the image obtained in image characteristics extraction device extraction step S2 Feature classifies to HOG feature with SVM classifier, obtains the position for meeting SVM classifier, as face location;By face In magnitude order, maximum face, as driver's face are obtained.
According to the above scheme, in the step S3, special with the local grain of the image obtained in LBP operator extraction step S2 Sign, classifies to Local textural feature with Adaboost algorithm, obtains the position for meeting Adaboost algorithm requirement, that is, is people Face position;In magnitude order by face, maximum face, as driver's face are obtained.
According to the above scheme, in the step S4, to the image obtained in step S3 SDM algorithm or ASM algorithm or AAM Algorithm or CLM algorithm or SRA algorithm detect face key point, export the key point position of face.
According to the above scheme, in the step S5, specific steps are as follows:
Step S51: mouth region is obtained with the position of mouth in face key point, and region is expanded, after being expanded Region correspondence image, is denoted as G0.
Step S52: line segment is detected in G0 with LSD line segment detecting method, line segment aggregate is obtained, is denoted as G1;It deletes in G1 Length is less than the line segment of threshold value L0, and the line-segment sets after deletion are denoted as G2.
Step S53: all angles are searched in G2 greater than threshold value A 0 and the line segment pair of similar length, are denoted as G3, then in G3 Line segment to the candidate region of as cigarette.
According to the above scheme, in the step S6, specific steps are as follows:
Step S61: distance is searched in G3 and is greater than threshold value D0 and is less than the line segment pair of threshold value D1, is denoted as G4.
Step S62: cannot will meet simultaneously in G4 an endpoint at a distance from mouth by-level line be less than threshold value D3 and For line segment of the image brightness values less than threshold value D4 to filtering out, output meets the line segment pair of condition at another endpoint, is denoted as G5.
The invention has the benefit that
The detection method 1. a kind of driver based on active infrared image of the invention smokes, realizes and is based on infrared image, utilize Computer vision technique judges the function whether driver smokes.
2. the present invention uses active infrared image, have the advantages that run for whole day 24 hours.
3. missing inspection of the present invention and erroneous detection are low, Detection accuracy is high.
4. calculation amount of the present invention is small, low to hardware computing resource demand, promoted convenient for a wide range of.
Detailed description of the invention
Fig. 1 is the flow chart of the embodiment of the present invention.
Specific embodiment
The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
Referring to Fig. 1, detection method includes the following steps for a kind of driver's smoking based on active infrared image of the invention:
Step S1: the active infrared image of vehicle carried driving position is obtained.
Step S2: with image bilinearity difference, histogram equalization and median filter respectively to obtaining in step S1 Image is zoomed in and out and is filtered, and for balancing picture contrast, removal noise, and exports treated image.
Step S3: to the image obtained in step S2 with image characteristics extraction device extract feature, with classifier to feature into Row classification, the position for obtaining meeting classifier is face location;In magnitude order by face, obtaining maximum face is Driver's face;Wherein HOG feature (Histogram of Oriented Gradient) can be selected in image characteristics extraction algorithm Extraction or LBP operator (Local Binary Pattern);SVM classifier (Support Vector can be selected in classifier ) or Adaboost algorithm Machine.
Step S4: face key point is detected to the image obtained in step S3 detection algorithm, exports the key point of face Position;Wherein SDM (Supervised Descent Method) algorithm, ASM (Active Shape can be selected in detection algorithm Model) algorithm, AAM (Active Appearance Model) algorithm, CLM (Constrained Local Model) algorithm, SRA (shape regression approach) algorithm;The key point of face includes the positions such as eyes, nose, mouth.
Step S5: parallel lines detection is carried out to the image obtained in step S4, obtains the candidate region of cigarette, specific steps Are as follows:
Step S51: mouth region is obtained with the position of mouth in face key point, and region is expanded, after being expanded Region correspondence image, is denoted as G0.
Step S52: line segment is detected in G0 with LSD line segment detecting method (Line Segment Detector), obtains line Duan Jihe is denoted as G1, deletes the line segment that length in G1 is less than threshold value L0, the line-segment sets after deletion are denoted as G2.
Step S53: all angles are searched in G2 greater than threshold value A 0 and the line segment pair of similar length, are denoted as G3, then in G3 Line segment to the candidate region of as cigarette.
Step S6: parallel lines filtering is carried out to the image obtained in step S5, filters out the corresponding parallel lines of non-cigarette, is had Body step are as follows:
Step S61: distance is searched in G3 and is greater than threshold value D0 and is less than the line segment pair of threshold value D1, is denoted as G4.
Step S62: cannot will meet simultaneously in G4 an endpoint at a distance from mouth by-level line be less than threshold value D3 and For line segment of the image brightness values less than threshold value D4 to filtering out, output meets the line segment pair of condition at another endpoint, is denoted as G5.
Step S7: detecting the image obtained in step S6, if still having parallel lines, uses deep neural network Classifier classifies to the image-region of existing parallel lines, judges whether it is cigarette, then counts plus one if it is cigarette, such as Fruit be not count it is constant.
Step S8: judging the obtained counting of step S7, if counting is more than threshold value N within time continuous T second, It then alerts, does not otherwise alert.
The detection method in conclusion a kind of driver based on active infrared image of the invention smokes, is based on vehicle-mounted master Dynamic infrared image, using traditional image steganalysis method detection driver's face, locating human face's key point (eyes, nose, Mouth), judge the outer profile of cigarette, cigarette is confirmed using the method for deep learning, final realize judges that driver is The function of no smoking.The present invention uses active infrared image, has the advantages that run for whole day 24 hours;Missing inspection of the present invention and erroneous detection Low, Detection accuracy is high;Calculation amount of the present invention is small, low to hardware computing resource demand, promotes convenient for a wide range of.
Above embodiments are merely to illustrate design philosophy and feature of the invention, and its object is to make technology in the art Personnel can understand the content of the present invention and implement it accordingly, and protection scope of the present invention is not limited to the above embodiments.So it is all according to It is within the scope of the present invention according to equivalent variations made by disclosed principle, mentality of designing or modification.

Claims (6)

  1. The detection method 1. a kind of driver based on active infrared image smokes, it is characterised in that: the following steps are included:
    Step S1: the active infrared image of vehicle carried driving position is obtained;
    Step S2: with image bilinearity difference, histogram equalization and median filter respectively to the image obtained in step S1 It zooms in and out and is filtered, and export treated image;
    Step S3: feature is extracted to the image obtained in step S2 image characteristics extraction device, feature is divided with classifier Class, the position for obtaining meeting classifier is face location;In magnitude order by face, obtaining maximum face is to drive Member's face;
    Step S4: face key point is detected to the image obtained in step S3 detection algorithm, exports the key point position of face;
    Step S5: parallel lines detection is carried out to the image obtained in step S4, obtains the candidate region of cigarette;
    Step S6: parallel lines filtering is carried out to the image obtained in step S5, filters out the corresponding parallel lines of non-cigarette;
    Step S7: detecting the image obtained in step S6, if still having parallel lines, is classified with deep neural network Device classifies to the image-region of existing parallel lines, judges whether it is cigarette, then counts if it is cigarette and adds one, if not Be count it is constant;
    Step S8: judging the obtained counting of step S7, if counting is more than threshold value N within time continuous T second, then accuses It is alert, otherwise do not alert.
  2. The detection method 2. driver according to claim 1 based on a kind of based on active infrared image smokes, feature It is: in the step S3, with the HOG feature of the image obtained in image characteristics extraction device extraction step S2, uses svm classifier Device classifies to HOG feature, obtains the position for meeting SVM classifier, as face location;In magnitude order by face, Obtain maximum face, as driver's face.
  3. The detection method 3. driver according to claim 1 based on a kind of based on active infrared image smokes, feature It is: in the step S3, with the Local textural feature of the image obtained in LBP operator extraction step S2, uses Adaboost Algorithm classifies to Local textural feature, obtains the position for meeting Adaboost algorithm requirement, as face location;By face In magnitude order, maximum face, as driver's face are obtained.
  4. The detection method 4. driver according to claim 1 based on a kind of based on active infrared image smokes, feature It is: in the step S4, to the image obtained in step S3 SDM algorithm or ASM algorithm or AAM algorithm or CLM algorithm Or SRA algorithm detects face key point, exports the key point position of face.
  5. The detection method 5. driver according to claim 1 based on a kind of based on active infrared image smokes, feature It is: in the step S5, specific steps are as follows:
    Step S51: mouth region is obtained with the position of mouth in face key point, and region is expanded, after being expanded Region correspondence image, is denoted as G0;
    Step S52: line segment is detected in G0 with LSD line segment detecting method, line segment aggregate is obtained, is denoted as G1;Delete length in G1 Less than the line segment of threshold value L0, the line-segment sets after deletion are denoted as G2;
    Step S53: all angles are searched in G2 greater than threshold value A 0 and the line segment pair of similar length, are denoted as G3, then the line in G3 Candidate region of the section to as cigarette.
  6. The detection method 6. driver according to claim 1 based on a kind of based on active infrared image smokes, feature It is: in the step S6, specific steps are as follows:
    Step S61: distance is searched in G3 and is greater than threshold value D0 and is less than the line segment pair of threshold value D1, is denoted as G4;
    Step S62: it cannot will meet simultaneously an endpoint in G4 and be less than threshold value D3 and another at a distance from mouth by-level line For line segment of the image brightness values less than threshold value D4 to filtering out, output meets the line segment pair of condition at a endpoint, is denoted as G5.
CN201811648701.0A 2018-12-30 2018-12-30 A kind of driver's smoking detection method based on active infrared image Pending CN109800686A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811648701.0A CN109800686A (en) 2018-12-30 2018-12-30 A kind of driver's smoking detection method based on active infrared image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811648701.0A CN109800686A (en) 2018-12-30 2018-12-30 A kind of driver's smoking detection method based on active infrared image

Publications (1)

Publication Number Publication Date
CN109800686A true CN109800686A (en) 2019-05-24

Family

ID=66558136

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811648701.0A Pending CN109800686A (en) 2018-12-30 2018-12-30 A kind of driver's smoking detection method based on active infrared image

Country Status (1)

Country Link
CN (1) CN109800686A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111062319A (en) * 2019-12-16 2020-04-24 武汉极目智能技术有限公司 Driver call detection method based on active infrared image
CN114943934A (en) * 2022-06-14 2022-08-26 中国石油大学(华东) Chemical industry park smoking detection equipment and detection method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104598934A (en) * 2014-12-17 2015-05-06 安徽清新互联信息科技有限公司 Monitoring method for smoking behavior of driver
CN106709420A (en) * 2016-11-21 2017-05-24 厦门瑞为信息技术有限公司 Method for monitoring driving behaviors of driver of commercial vehicle

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104598934A (en) * 2014-12-17 2015-05-06 安徽清新互联信息科技有限公司 Monitoring method for smoking behavior of driver
CN106709420A (en) * 2016-11-21 2017-05-24 厦门瑞为信息技术有限公司 Method for monitoring driving behaviors of driver of commercial vehicle

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111062319A (en) * 2019-12-16 2020-04-24 武汉极目智能技术有限公司 Driver call detection method based on active infrared image
CN111062319B (en) * 2019-12-16 2023-02-10 武汉极目智能技术有限公司 Driver call detection method based on active infrared image
CN114943934A (en) * 2022-06-14 2022-08-26 中国石油大学(华东) Chemical industry park smoking detection equipment and detection method

Similar Documents

Publication Publication Date Title
CN109657592B (en) Face recognition method of intelligent excavator
CN104598934B (en) A kind of driver's cigarette smoking monitoring method
CN110751051B (en) Abnormal driving behavior detection method based on machine vision
CN109740477B (en) Driver fatigue detection system and fatigue detection method thereof
CN109460699A (en) A kind of pilot harness's wearing recognition methods based on deep learning
CN108372785A (en) A kind of non-security driving detection device of the automobile based on image recognition and detection method
CN106022235B (en) Missing child detection method based on human body detection
CN105894735B (en) A kind of intelligent vehicle-mounted fatigue monitoring system and method
CN103279741A (en) Pedestrian early warning system based on vehicle-mounted infrared image and working method thereof
CN103996045B (en) A kind of smog recognition methods of the various features fusion based on video
CN106570444A (en) On-board smart prompting method and system based on behavior identification
CN111259718A (en) Escalator retention detection method and system based on Gaussian mixture model
CN107563346A (en) One kind realizes that driver fatigue sentences method for distinguishing based on eye image processing
CN109800686A (en) A kind of driver's smoking detection method based on active infrared image
CN109508659A (en) A kind of face identification system and method for crossing
CN111626203A (en) Railway foreign matter identification method and system based on machine learning
CN111062319B (en) Driver call detection method based on active infrared image
Yi et al. Safety belt wearing detection algorithm based on human joint points
Rani et al. Development of an Automated Tool for Driver Drowsiness Detection
CN105426852A (en) Method for identifying pedestrians by vehicle-mounted monocular long-wave infrared camera
CN108256418A (en) A kind of pedestrian's method for early warning and system based on infrared imaging
WO2022267266A1 (en) Vehicle control method based on visual recognition, and device
CN107103267A (en) A kind of fight behavioral value method, device based on video
Cheerla et al. Driver drowsiness detection using machine learning algorithms
Srivastava Driver's drowsiness identification using eye aspect ratio with adaptive thresholding

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination