CN107358164A - Detection method, device and the computer-readable recording medium of smoking - Google Patents
Detection method, device and the computer-readable recording medium of smoking Download PDFInfo
- Publication number
- CN107358164A CN107358164A CN201710449685.1A CN201710449685A CN107358164A CN 107358164 A CN107358164 A CN 107358164A CN 201710449685 A CN201710449685 A CN 201710449685A CN 107358164 A CN107358164 A CN 107358164A
- Authority
- CN
- China
- Prior art keywords
- monitoring image
- smoking
- pretreated
- cigarette combustion
- bright source
- 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
Links
Classifications
-
- 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/52—Surveillance or monitoring of activities, e.g. for recognising suspicious objects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/40—Extraction of image or video features
- G06V10/44—Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/40—Extraction of image or video features
- G06V10/60—Extraction of image or video features relating to illumination properties, e.g. using a reflectance or lighting model
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Image Analysis (AREA)
Abstract
The present invention provides a kind of detection method of smoking, device and computer-readable recording medium, and the detection method of the smoking obtains the monitoring image of monitor area by camera, and the monitoring image is pre-processed;Pretreated monitoring image is detected, judged in the pretreated monitoring image with the presence or absence of default cigarette combustion feature;If default cigarette combustion feature in the pretreated monitoring image be present, it is determined that cigarette smoking be present in the monitor area.By the way that with upper type, the present invention is according to default cigarette combustion characteristic, to being detected in pretreated monitoring image with the presence or absence of cigarette smoking.Whether the present invention can occur cigarette smoking with effective detection to monitor area, be sorry probability so as to reduce indoor smoke behavior hair volume, and then preferably safeguard public indoor environment, solve the technical problem that tobacco smoking status occurs for the place that can not find that no smoking in time.
Description
Technical field
The present invention relates to bill management technical field, more particularly to a kind of detection method of smoking, device and computer can
Read storage medium.
Background technology
It is news from nowhere that Smoking is harmful to your health, especially is easier to induce after suction second-hand-cigarette for a long time a series of
Disease.With the improvement of living standards, people also increasingly pay attention to health, ban on opium-smoking and the opium trade dynamics of the public to indoor environment is not yet
It is disconnected to strengthen.
At present, most domestic city has expressly provided that No Smoking in All Public Places, especially forbids indoor smoke,
And some respective rules punished to indoor smoke behavior are formulated.
However, because the behavior general persistence of indoor smoke is short, corresponding personnel can not have found indoor smoke in time
Behavior, so as to carry out effectively supervising and control to indoor smoke behavior, so that there are many smokers still to ignore regulation,
The place smoking that no smoking.
The content of the invention
It is a primary object of the present invention to propose a kind of detection method of smoking, device and computer-readable recording medium,
Aim to solve the problem that the technical problem of tobacco smoking status occurs for the place that can not find that no smoking in time.
To achieve the above object, the present invention provides a kind of detection method of smoking, the detection method of the smoking include with
Lower step:
The monitoring image of monitor area is obtained by camera, and the monitoring image is pre-processed;
Pretreated monitoring image is detected, judged in the pretreated monitoring image with the presence or absence of default
Cigarette combustion feature;
If default cigarette combustion feature in the pretreated monitoring image be present, it is determined that deposited in the monitor area
In cigarette smoking.
Alternatively, it is described that pretreated monitoring image is detected, judge in the pretreated monitoring image
Include with the presence or absence of the step of default cigarette combustion feature:
Pretreated monitoring image is detected, judges that the pretreated monitoring image whether there is and reaches pre-
If the bright source of luminance threshold;
If there is the bright source for reaching predetermined luminance threshold value in the pretreated monitoring image, after judging the pretreatment
Monitoring image in the presence or absence of default cigarette combustion feature.
Alternatively, it is described that pretreated monitoring image is detected, judge that the pretreated monitoring image is
After the step of no presence reaches the bright source of predetermined luminance threshold value, in addition to:
If the bright source for reaching predetermined luminance threshold value is not present in the pretreated monitoring image, pass through the camera
Reacquire the monitoring image of the monitor area.
Alternatively, if the pretreated monitoring image has the bright source for reaching predetermined luminance threshold value, judge
Include in the pretreated monitoring image with the presence or absence of the step of default cigarette combustion feature:
If the pretreated monitoring image has the bright source for reaching predetermined luminance threshold value, the face in the bright source is judged
Whether product meets the circular point-like character of cigarette combustion;
If the circular point-like character of the area coinciding cigarette combustion in the bright source, judge the pretreated monitoring figure
With the presence or absence of default cigarette combustion feature as in.
Alternatively, if the pretreated monitoring image has the bright source for reaching predetermined luminance threshold value, judge
Include in the pretreated monitoring image with the presence or absence of the step of default cigarette combustion feature:
If the pretreated monitoring image has the bright source for reaching predetermined luminance threshold value, whether the bright source is judged
It is moved;
If the bright source is moved, judge in the pretreated monitoring image with the presence or absence of default cigarette combustion
Feature.
Alternatively, it is described that pretreated monitoring image is detected, judge in the pretreated monitoring image
Include with the presence or absence of the step of default cigarette combustion feature:
If default cigarette combustion feature is not present in the pretreated monitoring image, by the camera again
Obtain the monitoring image of the monitor area.
In addition, to achieve the above object, the present invention also provides a kind of detection means of smoking, the detection means of the smoking
Including processor, memory and the detection program for being stored in the smoking that can be run on the memory and on the processor,
Following steps are realized when the detection program of wherein described smoking is by the computing device:
The monitoring image of monitor area is obtained by camera, and the monitoring image is pre-processed;
Pretreated monitoring image is detected, judged in the pretreated monitoring image with the presence or absence of default
Cigarette combustion feature;
If default cigarette combustion feature in the pretreated monitoring image be present, it is determined that deposited in the monitor area
In cigarette smoking.
Alternatively, when the detection program of the smoking is by the computing device, following steps are also realized:
Pretreated monitoring image is detected, judges that the pretreated monitoring image whether there is and reaches pre-
If the bright source of luminance threshold;
If there is the bright source for reaching predetermined luminance threshold value in the pretreated monitoring image, after judging the pretreatment
Monitoring image in the presence or absence of default cigarette combustion feature;
If the bright source for reaching predetermined luminance threshold value is not present in the pretreated monitoring image, pass through the camera
Reacquire the monitoring image of the monitor area.
Alternatively, when the detection program of the smoking is by the computing device, following steps are also realized:
If the pretreated monitoring image has the bright source for reaching predetermined luminance threshold value, the face in the bright source is judged
Whether product meets the circular point-like character of cigarette combustion;
If the circular point-like character of the area coinciding cigarette combustion in the bright source, judge the pretreated monitoring figure
With the presence or absence of default cigarette combustion feature as in.
In addition, to achieve the above object, the present invention also provides a kind of computer-readable recording medium, described computer-readable
The detection program of smoking is stored with storage medium, is realized when the detection program of the smoking is executed by processor any as described above
The step of detection method of smoking described in one.
The present invention provides a kind of detection method of smoking, device and computer-readable recording medium, the detection of the smoking
Method obtains the monitoring image of monitor area by camera, and the monitoring image is pre-processed;To pretreated
Monitoring image is detected, and is judged in the pretreated monitoring image with the presence or absence of default cigarette combustion feature;It is if described
Default cigarette combustion feature in pretreated monitoring image be present, it is determined that cigarette smoking be present in the monitor area.It is logical
Cross with upper type, after the detection method of smoking of the present invention to the monitoring image of monitor area by pre-processing, and according to pre-
If cigarette combustion characteristic, to being detected in pretreated monitoring image with the presence or absence of cigarette smoking.The present invention can be with
Whether effective detection occurs cigarette smoking to monitor area, is sorry probability so as to reduce indoor smoke behavior hair volume, Jin Ergeng
Public indoor environment is safeguarded well, solves the technical problem that tobacco smoking status occurs for the place that can not find that no smoking in time.
Brief description of the drawings
Fig. 1 is that the detection method for the smoking that scheme of the embodiment of the present invention is related to performs the terminal structure schematic diagram of terminal;
Fig. 2 is the schematic flow sheet of the detection method first embodiment of smoking of the present invention;
Fig. 3 is the schematic flow sheet of the detection method second embodiment of smoking of the present invention;
Fig. 4 is the schematic flow sheet of the detection method 3rd embodiment of smoking of the present invention.
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The main thought of scheme of the embodiment of the present invention is:The detection means of smoking obtains the prison of monitor area by camera
Image is controlled, and the monitoring image is pre-processed;Pretreated monitoring image is detected, judges the pretreatment
With the presence or absence of default cigarette combustion feature in monitoring image afterwards;If default cigarette in the pretreated monitoring image be present
Combustion characteristic, it is determined that cigarette smoking be present in the monitor area, solving can not find that no smoking in time place occurs
The technical problem of tobacco smoking status.
Reference picture 1, Fig. 1 are that the terminal structure of the detection method execution terminal for the smoking that scheme of the embodiment of the present invention is related to shows
It is intended to.
The operation terminal of the embodiment of the present invention can be PC or smart mobile phone, tablet personal computer, e-book reading
Device, pocket computer etc. have the packaged type terminal device of display function.
As shown in figure 1, the terminal can include:Processor 1001, such as CPU, communication bus 1002, user interface
1003, network interface 1004, memory 1005.Wherein, communication bus 1002 is used to realize the connection communication between these components.
User interface 1003 can include display screen (Display), input block such as keyboard (Keyboard), optional user interface
1003 can also include wireline interface, the wave point of standard.Network interface 1004 can optionally connect including the wired of standard
Mouth, wave point (such as WI-FI interfaces).Memory 1005 can be high-speed RAM memory or stable memory
(non-volatile memory), such as magnetic disk storage.Memory 1005 optionally can also be independently of aforementioned processor
1001 storage device.
It will be understood by those skilled in the art that the terminal structure shown in Fig. 1 does not form the restriction to running terminal, can
With including than illustrating more or less parts, either combining some parts or different parts arrangement.
With continued reference to Fig. 1, in Fig. 1 as a kind of computer-readable storage medium memory 1005 can include operating system,
Network communication module, Subscriber Interface Module SIM and program.Wherein, operating system be management and control smoking detection means with it is soft
The program of part resource, support network communication module, Subscriber Interface Module SIM, the detection program of smoking and other programs or software
Operation;Network communication module is used to managing and controlling network interface 1002;Subscriber Interface Module SIM is used to manage and control user to connect
Mouth 1003.
In the terminal shown in Fig. 1, network interface 1004 is mainly used in connecting Cloud Server, and data are carried out with Cloud Server
Communication.User interface 1003 can also connect client (user terminal), enter row data communication with client;In terminal of the present invention
Processor 1001, memory 1005 can be arranged in the detection means of smoking, and the detection means of the smoking passes through processor
The detection program of the smoking stored in 1001 calling memories 1005, and perform following operate:
The monitoring image of monitor area is obtained by camera, and the monitoring image is pre-processed;
In the present embodiment, the technology that tobacco smoking status occurs to solve the place that can not find that no smoking in time is asked
Topic.Cigarette combustion feature whether there is by the monitoring image for detecting monitor area, so that whether smoking occurs to monitor area
Behavior carries out effective monitoring.Specifically, the smoking detector obtains monitored space by the camera installed in monitor area
The monitoring image in domain.Wherein, the camera can be the first-class monitoring camera of infrared photography.And the monitoring image is carried out pre-
Processing operation.The monitoring image is handled by wave filter., can also be by software to described in specific embodiment
Monitoring image carries out processing operation.
Pretreated monitoring image is detected, judged in the pretreated monitoring image with the presence or absence of default
Cigarette combustion feature;
Specifically, when getting pretreated monitoring image, the pretreated monitoring image is subjected to piecemeal inspection
Survey.And judge in every piece of monitoring image with the presence or absence of default cigarette combustion feature.The default cigarette combustion feature is cigarette
One bright one dark blinking characteristics during burning, or circular point-like character during cigarette combustion, or smoker move up and down cigarette and led
Cause feature that bright source moves back and forth etc..The monitoring image is detected according to default cigarette combustion feature.
If default cigarette combustion feature in the pretreated monitoring image be present, it is determined that deposited in the monitor area
In cigarette smoking.
Specifically, one bright one dark blinking characteristics, the bright source of circular point-like be present in the monitoring image or have to move back
During dynamic bright source, then when judging to exist in the pretreated monitoring image default cigarette combustion feature, that is, determine described
Cigarette smoking occurs for monitor area corresponding to monitoring image.The warning information of prompting can be sent by voice device, or is opened
Flashing lamp is to remind the smoker, and No smoking in this area, and no smoking.
The present embodiment provides a kind of detection method of smoking, device and computer-readable recording medium, the inspection of the smoking
Survey method obtains the monitoring image of monitor area by camera, and the monitoring image is pre-processed;After pretreatment
Monitoring image detected, judge in the pretreated monitoring image with the presence or absence of default cigarette combustion feature;If institute
State in pretreated monitoring image and default cigarette combustion feature be present, it is determined that cigarette smoking be present in the monitor area.
By with upper type, after the detection method of smoking of the present invention to the monitoring image of monitor area by pre-processing, and according to
Default cigarette combustion characteristic, to being detected in pretreated monitoring image with the presence or absence of cigarette smoking.The present invention can
Whether cigarette smoking is occurred with effective detection to monitor area, is sorry probability so as to reduce indoor smoke behavior hair volume, and then
Public indoor environment is preferably safeguarded, solves the technical problem that tobacco smoking status occurs for the place that can not find that no smoking in time.
Further, the processor 1001 in terminal of the present invention, memory 1005 can be arranged on the detection means of smoking
In, the detection means of the smoking calls the detection program of the smoking stored in memory 1005 by processor 1001, performs
Operate below:
Pretreated monitoring image is detected, judges that the pretreated monitoring image whether there is and reaches pre-
If the bright source of luminance threshold;
Specifically, feature detection is being carried out to pretreated monitoring image, is judging the pretreated monitoring image
With the presence or absence of bright source, after bright source is detected, determine whether that the brightness value by the bright source compared with predetermined threshold value, is sentenced
Whether the brightness value in the disconnected bright source reaches predetermined threshold value.
If there is the bright source for reaching predetermined luminance threshold value in the pretreated monitoring image, after judging the pretreatment
Monitoring image in the presence or absence of default cigarette combustion feature.
Specifically, when the brightness value in the bright source reaches predetermined threshold value, that is, the pretreated monitoring image is judged
In the presence of the bright source for reaching predetermined luminance threshold value.Determine whether to have the monitoring image for reaching the bright source of predetermined threshold value with the presence or absence of pre-
If cigarette combustion feature, the default cigarette combustion is characterized as one bright one dark blinking characteristics during cigarette combustion, or cigarette combustion
When circular point-like character, or smoker moves up and down cigarette and causes feature that bright source moves back and forth etc..
Further, the processor 1001 in terminal of the present invention, memory 1005 can be arranged on the detection means of smoking
In, the detection means of the smoking calls the detection program of the smoking stored in memory 1005 by processor 1001, performs
Operate below:
If the bright source for reaching predetermined luminance threshold value is not present in the pretreated monitoring image, pass through the camera
Reacquire the monitoring image of the monitor area.
Specifically, bright source is not detected by the pretreated monitoring image, or the bright source detected is not up to default
During threshold value, that is, judge the feature of cigarette combustion is not present in the monitoring image, that is, judge to monitor corresponding to the monitoring image
Cigarette smoking is not present in region.The camera that can be continued through installed in the monitor area reacquires the monitor area
Monitoring image, re-start and monitor whether cigarette smoking.
The detection method of the smoking provided in the present embodiment can not only effectively find the behavior of indoor smoke, and can be to room
Interior cigarette smoking is carried out depositing card, and when preventing that dispute behavior subsequently occurs, effective evidence is provided for punishment.It can thus be seen that
The present invention not only reduces indoor smoke behavior probability of happening, is advantageous to the maintenance to indoor environment, moreover it is possible to effectively ensure people
The public interior space health.
Further, the processor 1001 in terminal of the present invention, memory 1005 can be arranged on the detection means of smoking
In, the detection means of the smoking calls the detection program of the smoking stored in memory 1005 by processor 1001, performs
Operate below:
If the pretreated monitoring image has the bright source for reaching predetermined luminance threshold value, the face in the bright source is judged
Whether product meets the circular point-like character of cigarette combustion;
Specifically, when the brightness value in the bright source reaches predetermined threshold value, that is, the pretreated monitoring image is judged
In the presence of the bright source for reaching predetermined luminance threshold value.The shape area in the bright source in monitoring image is further obtained, and by the bright source
Shape face machine compared with the prototype point-like character of the cigarette combustion to prestore.Judge the bright source shape area whether with
The circular point-like character is identical.
If the circular point-like character of the area coinciding cigarette combustion in the bright source, judge the pretreated monitoring figure
With the presence or absence of default cigarette combustion feature as in.
Specifically, when the shape area in the bright source is identical with the circular point-like character, that is, the face in the bright source is judged
Product meets the circular point-like character of cigarette combustion.Further according to default cigarette combustion feature, the pretreated prison is judged
Control in image with the presence or absence of default cigarette combustion feature.Wherein, the default cigarette combustion is characterized as one bright one during cigarette combustion
Dark blinking characteristics, or smoker move up and down cigarette and cause feature that bright source moves back and forth etc..
The detection method of the smoking provided in the present embodiment can not only effectively find the behavior of indoor smoke, and can be to room
Interior cigarette smoking is carried out depositing card, and when preventing that dispute behavior subsequently occurs, effective evidence is provided for punishment.It can thus be seen that
The present invention not only reduces indoor smoke behavior probability of happening, is advantageous to the maintenance to indoor environment, moreover it is possible to effectively ensure people
The public interior space health.
Further, the processor 1001 in terminal of the present invention, memory 1005 can be arranged on the detection means of smoking
In, the detection means of the smoking calls the detection program of the smoking stored in memory 1005 by processor 1001, performs
Operate below:
If the pretreated monitoring image has the bright source for reaching predetermined luminance threshold value, whether the bright source is judged
It is moved;
Specifically, when the brightness value in the bright source reaches predetermined threshold value, that is, the pretreated monitoring image is judged
In the presence of the bright source for reaching predetermined luminance threshold value.Determine whether the bright source in the monitoring image is moved.Wherein, institute
When to state movement be smoker's smoking, the motion track of cigarette is moved up and down back and forth.
If the bright source is moved, judge in the pretreated monitoring image with the presence or absence of default cigarette combustion
Feature.
Specifically, when qualified motion track be present in judging the monitoring image, further according to default perfume
Cigarette combustion characteristic, judge in the pretreated monitoring image with the presence or absence of default cigarette combustion feature.Wherein, it is described default
Cigarette combustion is characterized as one bright one dark blinking characteristics during cigarette combustion, or circular point-like character during cigarette combustion etc..
The detection method of the smoking provided in the present embodiment can not only effectively find the behavior of indoor smoke, and can be to room
Interior cigarette smoking is carried out depositing card, and when preventing that dispute behavior subsequently occurs, effective evidence is provided for punishment.It can thus be seen that
The present invention not only reduces indoor smoke behavior probability of happening, is advantageous to the maintenance to indoor environment, moreover it is possible to effectively ensure people
The public interior space health.
Further, the processor 1001 in terminal of the present invention, memory 1005 can be arranged on the detection means of smoking
In, the detection means of the smoking calls the detection program of the smoking stored in memory 1005 by processor 1001, performs
Operate below:
If default cigarette combustion feature is not present in the pretreated monitoring image, by the camera again
Obtain the monitoring image of the monitor area.
Specifically, one bright one dark blinking characteristics, the bright source of circular point-like is not present or with back and forth in the monitoring image
During all cigarette combustion features such as mobile bright source, then judge that default cigarette is not present in the pretreated monitoring image fires
Burn feature.Judge to judge to monitor corresponding to the monitoring image in the absence of the feature of cigarette combustion in the monitoring image
Cigarette smoking is not present in region.The camera that can be continued through installed in the monitor area reacquires the monitor area
Monitoring image, re-start and monitor whether cigarette smoking.
Based on above-mentioned hardware configuration, the detection method embodiment of smoking of the present invention is proposed.
Reference picture 2, Fig. 2 are the schematic flow sheet of the detection method first embodiment of smoking of the present invention.
In the present embodiment, the detection method of the smoking comprises the following steps:
Step S10, the monitoring image of monitor area is obtained by camera, and the monitoring image is pre-processed;
In the present embodiment, the technology that tobacco smoking status occurs to solve the place that can not find that no smoking in time is asked
Topic.Cigarette combustion feature whether there is by the monitoring image for detecting monitor area, so that whether smoking occurs to monitor area
Behavior carries out effective monitoring.Specifically, the smoking detector obtains monitored space by the camera installed in monitor area
The monitoring image in domain.Wherein, the camera can be infrared camera and the first-class monitoring camera of visible image capturing.And can be right
The different types of monitoring image that the infrared camera or visible image capturing head obtain carries out pretreatment operation.Pass through filtering
Device is handled the monitoring image.In specific embodiment, processing behaviour can also be carried out to the monitoring image by software
Make.
Step S20, pretreated monitoring image is detected, judge in the pretreated monitoring image whether
In the presence of default cigarette combustion feature;
Specifically, when getting pretreated monitoring image, the pretreated monitoring image is subjected to piecemeal inspection
Survey.And judge in every piece of monitoring image with the presence or absence of default cigarette combustion feature.The default cigarette combustion feature is cigarette
One bright one dark blinking characteristics during burning, or circular point-like character during cigarette combustion, or smoker move up and down cigarette and led
Cause feature that bright source moves back and forth etc..The monitoring image is detected according to default cigarette combustion feature.
Step S30, if default cigarette combustion feature in the pretreated monitoring image be present, it is determined that the monitoring
Cigarette smoking in region be present.
Specifically, one bright one dark blinking characteristics, the bright source of circular point-like be present in the monitoring image or have to move back
During dynamic bright source, then when judging to exist in the pretreated monitoring image default cigarette combustion feature, that is, determine described
Cigarette smoking occurs for monitor area corresponding to monitoring image.The warning information of prompting can be sent by voice device, or is opened
Flashing lamp is to remind the smoker, and No smoking in this area, and no smoking.
Further, in the present embodiment, the detection method of the smoking also includes:
Step S40, if default cigarette combustion feature is not present in the pretreated monitoring image, taken the photograph by described
As head reacquires the monitoring image of the monitor area.
Specifically, one bright one dark blinking characteristics, the bright source of circular point-like is not present or with back and forth in the monitoring image
During all cigarette combustion features such as mobile bright source, then judge that default cigarette is not present in the pretreated monitoring image fires
Burn feature.Judge to judge to monitor corresponding to the monitoring image in the absence of the feature of cigarette combustion in the monitoring image
Cigarette smoking is not present in region.The camera that can be continued through installed in the monitor area reacquires the monitor area
Monitoring image, re-start and monitor whether cigarette smoking.
The present embodiment provides a kind of detection method of smoking, device and computer-readable recording medium, the inspection of the smoking
Survey method obtains the monitoring image of monitor area by camera, and the monitoring image is pre-processed;After pretreatment
Monitoring image detected, judge in the pretreated monitoring image with the presence or absence of default cigarette combustion feature;If institute
State in pretreated monitoring image and default cigarette combustion feature be present, it is determined that cigarette smoking be present in the monitor area.
By with upper type, after the detection method of smoking of the present invention to the monitoring image of monitor area by pre-processing, and according to
Default cigarette combustion characteristic, to being detected in pretreated monitoring image with the presence or absence of cigarette smoking.The present invention can
Whether cigarette smoking is occurred with effective detection to monitor area, so as to reduce indoor smoke behavior probability of happening, and then preferably
Public indoor environment is safeguarded, solves the technical problem that tobacco smoking status occurs for the place that can not find that no smoking in time.
Reference picture 3, Fig. 3 are the schematic flow sheet of the detection method second embodiment of smoking of the present invention.
In the present embodiment, based on above-mentioned embodiment illustrated in fig. 2, the step S20 of the detection method of the smoking also includes:
Step S21, pretreated monitoring image is detected, judge whether the pretreated monitoring image is deposited
In the bright source for reaching predetermined luminance threshold value;
Specifically, feature detection is being carried out to pretreated monitoring image, is judging the pretreated monitoring image
With the presence or absence of bright source, after bright source is detected, determine whether that the brightness value by the bright source compared with predetermined threshold value, is sentenced
Whether the brightness value in the disconnected bright source reaches predetermined threshold value.
Step S22, if the bright source for reaching predetermined luminance threshold value be present in the pretreated monitoring image, judge described in
With the presence or absence of default cigarette combustion feature in pretreated monitoring image.
Specifically, when the brightness value in the bright source reaches predetermined threshold value, that is, the pretreated monitoring image is judged
In the presence of the bright source for reaching predetermined luminance threshold value.Determine whether to have the monitoring image for reaching the bright source of predetermined threshold value with the presence or absence of pre-
If cigarette combustion feature, the default cigarette combustion is characterized as one bright one dark blinking characteristics during cigarette combustion, or cigarette combustion
When circular point-like character, or smoker moves up and down cigarette and causes feature that bright source moves back and forth etc..
Step S23, if the bright source for reaching predetermined luminance threshold value is not present in the pretreated monitoring image, pass through institute
State the monitoring image that camera reacquires the monitor area.
Specifically, bright source is not detected by the pretreated monitoring image, or the bright source detected is not up to default
During threshold value, that is, judge the feature of cigarette combustion is not present in the monitoring image, that is, judge to monitor corresponding to the monitoring image
Cigarette smoking is not present in region.The camera that can be continued through installed in the monitor area reacquires the monitor area
Monitoring image, re-start and monitor whether cigarette smoking.
The detection method of the smoking provided in the present embodiment can not only effectively find the behavior of indoor smoke, and can be to room
Interior cigarette smoking is carried out depositing card, and when preventing that dispute behavior subsequently occurs, effective evidence is provided for punishment.It can thus be seen that
The present invention not only reduces indoor smoke behavior probability of happening, is advantageous to the maintenance to indoor environment, moreover it is possible to effectively ensure people
The public interior space health.
Reference picture 4, Fig. 4 are the schematic flow sheet of the detection method 3rd embodiment of smoking of the present invention.
In the present embodiment, based on above-mentioned embodiment illustrated in fig. 2, the step S22 of the detection method of the smoking also includes:
Step S221, if the pretreated monitoring image has the bright source for reaching predetermined luminance threshold value, judge institute
Whether the area for stating bright source meets the circular point-like character of cigarette combustion;
Specifically, when the brightness value in the bright source reaches predetermined threshold value, that is, the pretreated monitoring image is judged
In the presence of the bright source for reaching predetermined luminance threshold value.The shape area in the bright source in monitoring image is further obtained, and by the bright source
Shape face machine compared with the prototype point-like character of the cigarette combustion to prestore.Judge the bright source shape area whether with
The circular point-like character is identical.
Step S222, if the circular point-like character of the area coinciding cigarette combustion in the bright source, judges the pretreatment
With the presence or absence of default cigarette combustion feature in monitoring image afterwards.
Specifically, when the shape area in the bright source is identical with the circular point-like character, that is, the face in the bright source is judged
Product meets the circular point-like character of cigarette combustion.Further according to default cigarette combustion feature, the pretreated prison is judged
Control in image with the presence or absence of default cigarette combustion feature.Wherein, the default cigarette combustion is characterized as one bright one during cigarette combustion
Dark blinking characteristics, or smoker move up and down cigarette and cause feature that bright source moves back and forth etc..
The detection method of the smoking provided in the present embodiment can not only effectively find the behavior of indoor smoke, and can be to room
Interior cigarette smoking is carried out depositing card, and when preventing that dispute behavior subsequently occurs, effective evidence is provided for punishment.It can thus be seen that
The present invention not only reduces indoor smoke behavior probability of happening, is advantageous to the maintenance to indoor environment, moreover it is possible to effectively ensure people
The public interior space health.
Further, the step S22 of the detection method of the smoking also includes:
Step S223, if the pretreated monitoring image has the bright source for reaching predetermined luminance threshold value, judge institute
State whether bright source is moved;
Specifically, when the brightness value in the bright source reaches predetermined threshold value, that is, the pretreated monitoring image is judged
In the presence of the bright source for reaching predetermined luminance threshold value.Determine whether the bright source in the monitoring image is moved.Wherein, institute
When to state movement be smoker's smoking, the motion track of cigarette is moved up and down back and forth.
Step S224, if the bright source is moved, judge in the pretreated monitoring image with the presence or absence of pre-
If cigarette combustion feature.
Specifically, when qualified motion track be present in judging the monitoring image, further according to default perfume
Cigarette combustion characteristic, judge in the pretreated monitoring image with the presence or absence of default cigarette combustion feature.Wherein, it is described default
Cigarette combustion is characterized as one bright one dark blinking characteristics during cigarette combustion, or circular point-like character during cigarette combustion etc..
The detection method of the smoking provided in the present embodiment can not only effectively find the behavior of indoor smoke, and can be to room
Interior cigarette smoking is carried out depositing card, and when preventing that dispute behavior subsequently occurs, effective evidence is provided for punishment.It can thus be seen that
The present invention not only reduces indoor smoke behavior probability of happening, is advantageous to the maintenance to indoor environment, moreover it is possible to effectively ensure people
The public interior space health.
The present invention also provides a kind of computer-readable recording medium.
The detection program of smoking is stored with computer-readable recording medium of the present invention, the detection program of the smoking is located
Manage the step of realizing the detection method such as above-mentioned smoking when device performs.
Wherein, the method realized when the detection program of smoking is performed can refer to each of the detection method of smoking of the present invention
Individual embodiment, here is omitted.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property includes, so that process, method, article or system including a series of elements not only include those key elements, and
And also include the other element being not expressly set out, or also include for this process, method, article or system institute inherently
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Other identical element also be present in the process of key element, method, article or system.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words
Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in one as described above
In storage medium (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal equipment (can be mobile phone,
Computer, server, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair
The equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of detection method of smoking, it is characterised in that the detection method of the smoking comprises the following steps:
The monitoring image of monitor area is obtained by camera, and the monitoring image is pre-processed;
Pretreated monitoring image is detected, judged in the pretreated monitoring image with the presence or absence of default cigarette
Combustion characteristic;
If default cigarette combustion feature in the pretreated monitoring image be present, it is determined that exist in the monitor area and inhale
Cigarette behavior.
2. the detection method of smoking as claimed in claim 1, it is characterised in that described to be carried out to pretreated monitoring image
Detection, judge with the presence or absence of the step of default cigarette combustion feature to include in the pretreated monitoring image:
Pretreated monitoring image is detected, judges that the pretreated monitoring image whether there is and reaches default bright
Spend the bright source of threshold value;
If the pretreated monitoring image has the bright source for reaching predetermined luminance threshold value, the pretreated prison is judged
Control in image with the presence or absence of default cigarette combustion feature.
3. the detection method of smoking as claimed in claim 2, it is characterised in that described to be carried out to pretreated monitoring image
Detection, after judging the step of pretreated monitoring image whether there is the bright source for reaching predetermined luminance threshold value, also wrap
Include:
If the bright source for reaching predetermined luminance threshold value is not present in the pretreated monitoring image, by the camera again
Obtain the monitoring image of the monitor area.
4. the detection method of smoking as claimed in claim 2, it is characterised in that if the pretreated monitoring image
In the presence of the bright source for reaching predetermined luminance threshold value, then judge in the pretreated monitoring image with the presence or absence of default cigarette combustion
The step of feature, includes:
If the pretreated monitoring image has the bright source for reaching predetermined luminance threshold value, judging the area in the bright source is
The no circular point-like character for meeting cigarette combustion;
If the circular point-like character of the area coinciding cigarette combustion in the bright source, judge in the pretreated monitoring image
With the presence or absence of default cigarette combustion feature.
5. the detection method of smoking as claimed in claim 2, it is characterised in that if the pretreated monitoring image
In the presence of the bright source for reaching predetermined luminance threshold value, then judge in the pretreated monitoring image with the presence or absence of default cigarette combustion
The step of feature, includes:
If the pretreated monitoring image has the bright source for reaching predetermined luminance threshold value, judge whether the bright source occurs
It is mobile;
If the bright source is moved, judge special with the presence or absence of default cigarette combustion in the pretreated monitoring image
Sign.
6. the detection method of smoking as claimed in claim 1, it is characterised in that described to be carried out to pretreated monitoring image
Detection, judge with the presence or absence of the step of default cigarette combustion feature to include in the pretreated monitoring image:
If default cigarette combustion feature is not present in the pretreated monitoring image, reacquired by the camera
The monitoring image of the monitor area.
7. a kind of detection means of smoking, it is characterised in that the detection means of the smoking includes processor, memory and storage
On the memory and the detection program of smoking that can run on the processor, wherein the detection program quilt of the smoking
Following steps are realized during the computing device:
The monitoring image of monitor area is obtained by camera, and the monitoring image is pre-processed;
Pretreated monitoring image is detected, judged in the pretreated monitoring image with the presence or absence of default cigarette
Combustion characteristic;
If default cigarette combustion feature in the pretreated monitoring image be present, it is determined that exist in the monitor area and inhale
Cigarette behavior.
8. the detection means of smoking as claimed in claim 7, it is characterised in that the detection program of the smoking is by the processing
When device performs, following steps are also realized:
Pretreated monitoring image is detected, judges that the pretreated monitoring image whether there is and reaches default bright
Spend the bright source of threshold value;
If the pretreated monitoring image has the bright source for reaching predetermined luminance threshold value, the pretreated prison is judged
Control in image with the presence or absence of default cigarette combustion feature;
If the bright source for reaching predetermined luminance threshold value is not present in the pretreated monitoring image, by the camera again
Obtain the monitoring image of the monitor area.
9. the detection means of smoking as claimed in claim 7, it is characterised in that the detection program of the smoking is by the processing
When device performs, following steps are also realized:
If the pretreated monitoring image has the bright source for reaching predetermined luminance threshold value, judging the area in the bright source is
The no circular point-like character for meeting cigarette combustion;
If the circular point-like character of the area coinciding cigarette combustion in the bright source, judge in the pretreated monitoring image
With the presence or absence of default cigarette combustion feature.
10. a kind of computer-readable recording medium, it is characterised in that be stored with smoking on the computer-readable recording medium
Program is detected, the suction as described in any one in claim 1-6 is realized when the detection program of the smoking is executed by processor
The step of detection method of cigarette.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710449685.1A CN107358164A (en) | 2017-06-13 | 2017-06-13 | Detection method, device and the computer-readable recording medium of smoking |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710449685.1A CN107358164A (en) | 2017-06-13 | 2017-06-13 | Detection method, device and the computer-readable recording medium of smoking |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107358164A true CN107358164A (en) | 2017-11-17 |
Family
ID=60273523
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710449685.1A Pending CN107358164A (en) | 2017-06-13 | 2017-06-13 | Detection method, device and the computer-readable recording medium of smoking |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107358164A (en) |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107772545A (en) * | 2017-12-07 | 2018-03-09 | 蔡璟 | A kind of Intelligent electronic cigarette system for detecting environment personnel |
CN108709642A (en) * | 2018-05-28 | 2018-10-26 | 苏州若依玫信息技术有限公司 | A kind of construction area fire-fighting monitoring processing system based on burning point detection |
CN108734125A (en) * | 2018-05-21 | 2018-11-02 | 杭州杰视科技有限公司 | A kind of cigarette smoking recognition methods of open space |
CN109872510A (en) * | 2017-12-04 | 2019-06-11 | 通用汽车环球科技运作有限责任公司 | Interior Smoke Detection and reporting system and method for Car sharing and the shared vehicle of seating |
CN109920214A (en) * | 2017-12-12 | 2019-06-21 | 杭州海康威视系统技术有限公司 | A kind of picture pick-up device and information cuing method |
WO2019126989A1 (en) * | 2017-12-26 | 2019-07-04 | 李庆远 | Device and method for disturbing smoker |
CN110390673A (en) * | 2019-07-22 | 2019-10-29 | 福州大学 | Cigarette automatic testing method based on deep learning under a kind of monitoring scene |
CN110490090A (en) * | 2019-07-29 | 2019-11-22 | 恒大智慧科技有限公司 | Smoking detection method, system and its storage medium based on intelligence community |
CN110503006A (en) * | 2019-07-29 | 2019-11-26 | 恒大智慧科技有限公司 | A kind of community smoking management-control method, system and its storage medium |
CN110503005A (en) * | 2019-07-29 | 2019-11-26 | 恒大智慧科技有限公司 | Smoking detection method, system and its storage medium based on intelligence community |
CN112052719A (en) * | 2020-07-16 | 2020-12-08 | 国网浙江省电力有限公司 | Personnel behavior analysis method and system based on image feature recognition |
CN114783047A (en) * | 2022-03-10 | 2022-07-22 | 慧之安信息技术股份有限公司 | Indoor smoking detection method and device based on edge calculation |
CN115440015A (en) * | 2022-08-25 | 2022-12-06 | 深圳泰豪信息技术有限公司 | Video analysis method and system capable of being intelligently and safely controlled |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100302367A1 (en) * | 2009-05-26 | 2010-12-02 | Che-Hao Hsu | Intelligent surveillance system and method for the same |
CN104978829A (en) * | 2015-06-24 | 2015-10-14 | 国家电网公司 | Indoor smoking monitoring control method and system |
CN105976570A (en) * | 2016-05-20 | 2016-09-28 | 山东师范大学 | Driver smoking behavior real-time monitoring method based on vehicle video monitoring |
-
2017
- 2017-06-13 CN CN201710449685.1A patent/CN107358164A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100302367A1 (en) * | 2009-05-26 | 2010-12-02 | Che-Hao Hsu | Intelligent surveillance system and method for the same |
CN104978829A (en) * | 2015-06-24 | 2015-10-14 | 国家电网公司 | Indoor smoking monitoring control method and system |
CN105976570A (en) * | 2016-05-20 | 2016-09-28 | 山东师范大学 | Driver smoking behavior real-time monitoring method based on vehicle video monitoring |
Cited By (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109872510A (en) * | 2017-12-04 | 2019-06-11 | 通用汽车环球科技运作有限责任公司 | Interior Smoke Detection and reporting system and method for Car sharing and the shared vehicle of seating |
CN107772545A (en) * | 2017-12-07 | 2018-03-09 | 蔡璟 | A kind of Intelligent electronic cigarette system for detecting environment personnel |
CN109920214A (en) * | 2017-12-12 | 2019-06-21 | 杭州海康威视系统技术有限公司 | A kind of picture pick-up device and information cuing method |
WO2019126989A1 (en) * | 2017-12-26 | 2019-07-04 | 李庆远 | Device and method for disturbing smoker |
CN108734125B (en) * | 2018-05-21 | 2021-05-04 | 杭州杰视科技有限公司 | Smoking behavior identification method for open space |
CN108734125A (en) * | 2018-05-21 | 2018-11-02 | 杭州杰视科技有限公司 | A kind of cigarette smoking recognition methods of open space |
CN108709642A (en) * | 2018-05-28 | 2018-10-26 | 苏州若依玫信息技术有限公司 | A kind of construction area fire-fighting monitoring processing system based on burning point detection |
CN110390673A (en) * | 2019-07-22 | 2019-10-29 | 福州大学 | Cigarette automatic testing method based on deep learning under a kind of monitoring scene |
CN110390673B (en) * | 2019-07-22 | 2021-04-27 | 福州大学 | Cigarette automatic detection method based on deep learning in monitoring scene |
CN110490090A (en) * | 2019-07-29 | 2019-11-22 | 恒大智慧科技有限公司 | Smoking detection method, system and its storage medium based on intelligence community |
CN110503006A (en) * | 2019-07-29 | 2019-11-26 | 恒大智慧科技有限公司 | A kind of community smoking management-control method, system and its storage medium |
CN110503005A (en) * | 2019-07-29 | 2019-11-26 | 恒大智慧科技有限公司 | Smoking detection method, system and its storage medium based on intelligence community |
CN112052719A (en) * | 2020-07-16 | 2020-12-08 | 国网浙江省电力有限公司 | Personnel behavior analysis method and system based on image feature recognition |
CN114783047A (en) * | 2022-03-10 | 2022-07-22 | 慧之安信息技术股份有限公司 | Indoor smoking detection method and device based on edge calculation |
CN114783047B (en) * | 2022-03-10 | 2024-04-19 | 慧之安信息技术股份有限公司 | Indoor smoking detection method and device based on edge calculation |
CN115440015A (en) * | 2022-08-25 | 2022-12-06 | 深圳泰豪信息技术有限公司 | Video analysis method and system capable of being intelligently and safely controlled |
CN115440015B (en) * | 2022-08-25 | 2023-08-11 | 深圳泰豪信息技术有限公司 | Video analysis method and system capable of being intelligently and safely controlled |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107358164A (en) | Detection method, device and the computer-readable recording medium of smoking | |
US10970908B2 (en) | Display control method and apparatus for game screen, electronic device, and storage medium | |
US11809479B2 (en) | Content push method and apparatus, and device | |
US10819668B2 (en) | Replacing graphical user interface based on configuration for displaying media on mobile device | |
CN107784114A (en) | Recommendation method, apparatus, terminal and the storage medium of facial expression image | |
CN104572942A (en) | Push message display method and push message display device | |
CN105357392A (en) | Mobile phone, and mobile phone calls reminding method and apparatus | |
CN108063979A (en) | Video playing control method, device and computer readable storage medium | |
CN106843706B (en) | Shutdown control method and device and terminal equipment | |
CN108924452A (en) | Part record screen method, apparatus and computer readable storage medium | |
CN109660728A (en) | A kind of photographic method and device | |
CN108848268A (en) | Intelligent adjusting method, mobile terminal and the readable storage medium storing program for executing of screen intensity | |
CN108170787A (en) | A kind of image file delet method, mobile terminal and computer readable storage medium | |
CN109120770A (en) | Terminal method for secret protection, terminal and computer readable storage medium | |
CN111797304A (en) | Content pushing method, device and equipment | |
CN108529361A (en) | Boarding manages system, implementation method and electric life controller, storage medium | |
CN108897621A (en) | Study management-control method, terminal and storage medium based on application program | |
CN109547633A (en) | A kind of based reminding method, terminal and computer readable storage medium | |
CN110290255A (en) | Pass through the method for breath light prompt notice, system, device and can storage medium | |
CN115903529A (en) | Equipment control method, related device and communication system | |
CN109166164A (en) | A kind of generation method and terminal of expression picture | |
CN112216054A (en) | Fire event linkage method, computer equipment and readable storage medium | |
CN113839852B (en) | Mail account abnormity detection method, device and storage medium | |
CN109510941A (en) | A kind of shooting processing method, equipment and computer readable storage medium | |
CN108616699A (en) | It takes pictures light compensation method, equipment and computer storage media |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171117 |