CN108760590B - Kitchen oil smoke concentration detection and interference elimination method based on image processing - Google Patents

Kitchen oil smoke concentration detection and interference elimination method based on image processing Download PDF

Info

Publication number
CN108760590B
CN108760590B CN201810191908.3A CN201810191908A CN108760590B CN 108760590 B CN108760590 B CN 108760590B CN 201810191908 A CN201810191908 A CN 201810191908A CN 108760590 B CN108760590 B CN 108760590B
Authority
CN
China
Prior art keywords
area
oil smoke
image
image processing
gray
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.)
Active
Application number
CN201810191908.3A
Other languages
Chinese (zh)
Other versions
CN108760590A (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.)
Foshan Viomi Electrical Technology Co Ltd
Original Assignee
Foshan Viomi Electrical 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 Foshan Viomi Electrical Technology Co Ltd filed Critical Foshan Viomi Electrical Technology Co Ltd
Priority to CN201810191908.3A priority Critical patent/CN108760590B/en
Publication of CN108760590A publication Critical patent/CN108760590A/en
Application granted granted Critical
Publication of CN108760590B publication Critical patent/CN108760590B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N15/00Investigating characteristics of particles; Investigating permeability, pore-volume or surface-area of porous materials
    • G01N15/06Investigating concentration of particle suspensions
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N15/00Investigating characteristics of particles; Investigating permeability, pore-volume or surface-area of porous materials
    • G01N15/06Investigating concentration of particle suspensions
    • G01N15/075Investigating concentration of particle suspensions by optical means

Landscapes

  • Chemical & Material Sciences (AREA)
  • Dispersion Chemistry (AREA)
  • Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Biochemistry (AREA)
  • General Health & Medical Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Immunology (AREA)
  • Pathology (AREA)
  • Investigating Or Analysing Materials By Optical Means (AREA)
  • Fire-Detection Mechanisms (AREA)
  • Image Analysis (AREA)

Abstract

A kitchen oil smoke concentration detection and interference elimination method based on image processing comprises the following steps: collecting oil smoke images above a cooking bench in real time; the image processing unit carries out frame difference operation on the collected front and rear frame images to obtain dynamic region images after frame difference; the image processing unit carries out opening operation on the image after frame difference to remove image noise; detecting the edge of a highlight area of the frame difference image and marking by using wavelet transform; eliminating interference by using a method for comprehensively judging image smoothness and gray value threshold values, and identifying an oil smoke movement area; and carrying out gray level histogram statistics on the identified oil smoke region, and judging the oil smoke concentration level. The invention aims to provide a kitchen oil smoke concentration detection and interference elimination method based on image processing.

Description

Kitchen oil smoke concentration detection and interference elimination method based on image processing
Technical Field
The invention relates to the technical field of oil smoke detection, in particular to a kitchen oil smoke concentration detection and interference elimination method based on image processing.
Background
At present, aiming at the detection of the concentration of the kitchen oil fume, an infrared projection method and a physical detection method are mainly adopted. One end of the infrared detection method transmits infrared light, the other end of the infrared detection method receives the infrared light, the concentration of the oil smoke is judged according to the intensity of the received infrared light, however, the oil smoke is uncertain when floating, and interference caused by blocking of hands is avoided, so that the oil smoke detection can be relatively accurate only by installing a plurality of infrared transmitters at different positions, the cost is high, and the requirement on installation positions is high. The physical detection method is similar to the principle of a smoke alarm, and the oil smoke concentration is judged by detecting the number of floating particles in the air, but the method has two defects that firstly, the detection can be carried out only when the oil smoke contacts the alarm, and the remote detection cannot be realized; secondly, when floating in the air, not oil smoke but water mist can not be detected.
Disclosure of Invention
The invention aims to solve the problems and provides a kitchen oil smoke concentration detection and interference elimination method based on image processing.
In order to achieve the purpose, the invention adopts the following technical scheme:
a kitchen oil smoke concentration detection and interference elimination method based on image processing comprises the following steps:
step A1, collecting oil smoke images above a cooking bench in real time;
step A2, the image processing unit performs frame difference operation on the collected front and back frame images to obtain dynamic region images after frame difference;
step A3, the image processing unit carries out opening operation on the frame difference image to remove image noise;
step A4, detecting the edge of the highlight area of the frame difference image by utilizing wavelet transformation, marking the highlight area, and setting the marked area as an interested area;
a5, eliminating interference by using a method of comprehensively judging image smoothness and gray value threshold values, and identifying an oil smoke movement area;
and step A6, carrying out gray histogram statistics on the identified oil smoke region, and judging the oil smoke concentration level.
Preferably, the step a1 includes collecting the oil smoke image by a camera, and the camera is mounted on the range hood body.
Preferably, in step a2, the image processing unit performs a difference between the next frame image and the previous frame image according to the sequence of the received grayscale images.
Preferably, the step a3 further includes the following steps:
b1, carrying out corrosion operation on the image, eliminating noise points and fine spines in the image, and disconnecting narrow connection;
and step B2, performing expansion operation on the corroded image, and recovering the obvious characteristics on the original frame difference image.
Preferably, the step a4 further includes the following steps:
step C1, setting a filter with the size of 3 x 3 according to the characteristics of the edge, and traversing the frame difference image by using the filter;
step C2, calculating the gray value of each position center pixel point and eight pixel points in the field to be multiplied by the corresponding value in the filter, and solving the sum to be used as the edge detection value of the center pixel point;
step C3, if the difference between the edge detection value and more than half of the gray value of the pixel point in the field is larger, the pixel point is determined as an edge point and marked;
and step C4, after the filter traverses the image, the edge of the highlight area is detected and marked as the interested object for the next processing.
Preferably, the step a5 of excluding the interference region includes the following steps:
step D1, finding out the segmentation threshold values of the oil smoke area and the interference area, and judging the area of interest as a possible interference area when the gray average value of the area of interest is greater than the set gray threshold value; when the gray average value of the region of interest is smaller than a set gray threshold value, judging the region of interest as a possible oil smoke region;
step D2, calculating the smoothness of each interested area on the basis of the area gray mean value, and if the variance of a certain interested area is larger than a set value, judging the interested area as a possible interference area; if the variance of a certain interested area is smaller than a set value, judging the interested area as a possible oil smoke area;
and D3, when the step D1 and the step D2 are both possible oil smoke areas, judging that the area of interest is an oil smoke area, and judging that other areas are interference areas.
The invention aims to provide a kitchen oil smoke concentration detection and interference elimination method based on image processing.
Drawings
FIG. 1 is a flow chart of one embodiment of the present invention;
fig. 2 is a schematic diagram of soot area identification according to an embodiment of the present invention.
Detailed Description
The technical solution of the present invention is further explained by the specific embodiment mode with reference to the attached drawings.
As shown in fig. 1, a method for detecting kitchen oil smoke concentration and eliminating interference based on image processing includes the following steps:
step A1, collecting oil smoke images above a cooking bench in real time;
step A2, the image processing unit performs frame difference operation on the collected front and back frame images to obtain dynamic region images after frame difference;
step A3, the image processing unit carries out opening operation on the frame difference image to remove image noise;
step A4, detecting the edge of the highlight area of the frame difference image by utilizing wavelet transformation, marking the highlight area, and setting the marked area as an interested area;
a5, eliminating interference by using a method of comprehensively judging image smoothness and gray value threshold values, and identifying an oil smoke movement area;
and step A6, carrying out gray histogram statistics on the identified oil smoke region, and judging the oil smoke concentration level.
Further, the step a1 is to collect the oil smoke image by a camera, and the camera is installed on the range hood body. The camera view can cover the whole cooking bench, and real-time gray images of cooking fume of the cooking bench are collected through the lens protective glass and transmitted to the image processing unit.
To be more specific, in step a2, the image processing unit uses the sequence of the received grayscale images to make a difference between the next frame image and the previous frame image. Because the static area in the two frames of images is not changed and the dynamic area (such as oil smoke drift, human hand waving, etc.) is changed, the static area appears black after the frame difference, and the dynamic area appears as a highlight area with fuzzy edges after the frame difference, so that the frame difference image with highlight in the dynamic area can be obtained through the frame difference.
To be further described, the step a3 further includes the following steps:
b1, carrying out corrosion operation on the image, eliminating noise points and fine spines in the image, and disconnecting narrow connection;
and step B2, performing expansion operation on the corroded image, and recovering the obvious characteristics on the original frame difference image.
The method for removing the noise of the frame difference image by utilizing the open operation method comprises the specific operation of firstly corroding and then expanding. The image is corroded first, so that noise and fine spikes in the image can be eliminated, and narrow connection is broken. And expansion is dual operation of corrosion, and expansion operation is carried out on the corroded image to recover obvious characteristics on the original frame difference image. The open operation can eliminate image noise points, separate objects at fine points, smoothen larger object boundaries, simultaneously ensure that the area of a highlight area in the original image is basically unchanged, and ensure that the accuracy of subsequent detection is not influenced.
To be further described, the step a4 further includes the following steps:
step C1, setting a filter with the size of 3 x 3 according to the characteristics of the edge, and traversing the frame difference image by using the filter;
step C2, calculating the gray value of each position center pixel point and eight pixel points in the field to be multiplied by the corresponding value in the filter, and solving the sum to be used as the edge detection value of the center pixel point;
step C3, if the difference between the edge detection value and more than half of the gray value of the pixel point in the field is larger, the pixel point is determined as an edge point and marked;
and step C4, after the filter traverses the image, the edge of the highlight area is detected and marked as the interested object for the next processing.
To be further described, the step a5 of excluding the interference region includes the following steps:
step D1, finding out the segmentation threshold values of the oil smoke area and the interference area, and judging the area of interest as a possible interference area when the gray average value of the area of interest is greater than the set gray threshold value; when the gray average value of the region of interest is smaller than a set gray threshold value, judging the region of interest as a possible oil smoke region;
step D2, calculating the smoothness of each interested area on the basis of the area gray mean value, and if the variance of a certain interested area is larger than a set value, judging the interested area as a possible interference area; if the variance of a certain interested area is smaller than a set value, judging the interested area as a possible oil smoke area;
and D3, when the step D1 and the step D2 are both possible oil smoke areas, judging that the area of interest is an oil smoke area, and judging that other areas are interference areas.
Because a person always waves his hand during a cooking operation, an image after frame difference contains interference areas of moving objects such as oil smoke, hand operation and the like, and the influence of the interference areas needs to be eliminated before oil smoke concentration identification, but the movement direction of the oil smoke is random, and the movement directions of the hand and the slice are relatively clear, so that as shown in fig. 2: A. the brightness of the oil smoke moving area on the image after the frame difference is lower than that of the moving areas of the human hand and the slice, so the mean value of the gray values of the corresponding oil smoke areas is also lower than that of the moving areas of the human hand and the slice; B. the gray values of the oil smoke movement area on the image after the frame difference are distributed more intensively, and the gray values of the boundaries of the movement areas of hands and a slice are larger than the jump of the central area of the area, so the image of the area is not smooth enough, and the variance of the corresponding gray values is larger. According to the characteristics A, a large number of experiments are carried out to find out the segmentation threshold values of the oil smoke area and the interference area, and when the gray average value of the area of interest is larger than the set gray threshold value, the area is judged to be the possible interference area; and when the gray average value of the region of interest is smaller than the set gray threshold value, judging the region as a possible oil smoke region. According to the characteristic B, on the basis of the area gray mean value, the smoothness of each interested area is calculated, the smoothness is expressed by gray value variance, and if the variance of a certain interested area is larger than a set value, the area is judged to be a possible interference area; and if the variance of a certain interested area is smaller than a set value, judging the area as a possible oil smoke area. And only when the two judgments (the mean value and the variance of the gray scale) are both possible oil smoke areas, the area is judged to be the oil smoke area, and other interested areas are all judged to be interference areas. And finishing the identification of the oil smoke area and the elimination of the interference area.
The invention utilizes a gray level histogram statistical method to demarcate the oil smoke concentration level. The gray histogram is a function of gray level distribution, and is a statistic of gray level distribution in an image. The gray histogram is to count the occurrence frequency of all pixels in the digital image according to the size of the gray value. According to the concentration grade quantity needing to be divided, 10 is taken as the interval length, the number of pixel points in each gray level interval is counted, and the oil smoke is divided into corresponding concentration grades when a set grade division scheme is achieved.
The technical principle of the present invention is described above in connection with specific embodiments. The description is made for the purpose of illustrating the principles of the invention and should not be construed in any way as limiting the scope of the invention. Based on the explanations herein, those skilled in the art will be able to conceive of other embodiments of the present invention without inventive effort, which would fall within the scope of the present invention.

Claims (4)

1. A kitchen oil smoke concentration detection and interference elimination method based on image processing is characterized by comprising the following steps:
step A1, collecting oil smoke images above a cooking bench in real time;
step A2, the image processing unit performs frame difference operation on the collected front and back frame images to obtain dynamic region images after frame difference;
step A3, the image processing unit carries out opening operation on the frame difference image to remove image noise;
step A4, detecting the edge of the highlight area of the frame difference image by using wavelet transform, marking the highlight area, and setting the marked area as an area of interest, wherein the step A4 specifically comprises the following steps:
step C1, setting a filter with the size of 3 x 3 according to the characteristics of the edge, and traversing the frame difference image by using the filter;
step C2, calculating the gray value of each position center pixel point and eight pixel points in the field to be multiplied by the corresponding value in the filter, and solving the sum to be used as the edge detection value of the center pixel point;
step C3, if the difference between the edge detection value and more than half of the gray value of the pixel point in the field is larger, the pixel point is determined as an edge point and marked;
step C4, after the filter traverses the image, the edge of the highlight area is detected and marked as the interested object for the next processing;
a5, eliminating interference by using a method of comprehensively judging image smoothness and gray value threshold values, and identifying an oil smoke movement area; wherein, the step A5 specifically comprises the following steps:
step D1, finding out the segmentation threshold values of the oil smoke area and the interference area, and judging the area of interest as a possible interference area when the gray average value of the area of interest is greater than the set gray threshold value; when the gray average value of the region of interest is smaller than a set gray threshold value, judging the region of interest as a possible oil smoke region;
step D2, calculating the smoothness of each interested area on the basis of the area gray mean value, and if the variance of a certain interested area is larger than a set value, judging the interested area as a possible interference area; if the variance of a certain interested area is smaller than a set value, judging the interested area as a possible oil smoke area;
step D3, when the step D1 and the step D2 are both possible oil smoke areas, the area of interest is judged to be an oil smoke area, and other areas are judged to be interference areas;
and step A6, carrying out gray histogram statistics on the identified oil smoke region, and judging the oil smoke concentration level.
2. The method for detecting kitchen oil smoke concentration and eliminating interference based on image processing according to claim 1, characterized in that: and in the step A1, a camera is used for collecting the oil smoke image, and the camera is installed on the range hood body.
3. The method for detecting kitchen oil smoke concentration and eliminating interference based on image processing according to claim 1, characterized in that: in step a2, the image processing unit makes a difference between the next frame image and the previous frame image according to the sequence of the received grayscale images.
4. The method for detecting kitchen oil smoke concentration and eliminating interference based on image processing according to claim 1, characterized in that: the step a3 further includes the following steps:
b1, carrying out corrosion operation on the image, eliminating noise points and fine spines in the image, and disconnecting narrow connection;
and step B2, performing expansion operation on the corroded image, and recovering the obvious characteristics on the original frame difference image.
CN201810191908.3A 2018-03-08 2018-03-08 Kitchen oil smoke concentration detection and interference elimination method based on image processing Active CN108760590B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810191908.3A CN108760590B (en) 2018-03-08 2018-03-08 Kitchen oil smoke concentration detection and interference elimination method based on image processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810191908.3A CN108760590B (en) 2018-03-08 2018-03-08 Kitchen oil smoke concentration detection and interference elimination method based on image processing

Publications (2)

Publication Number Publication Date
CN108760590A CN108760590A (en) 2018-11-06
CN108760590B true CN108760590B (en) 2021-05-18

Family

ID=63980142

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810191908.3A Active CN108760590B (en) 2018-03-08 2018-03-08 Kitchen oil smoke concentration detection and interference elimination method based on image processing

Country Status (1)

Country Link
CN (1) CN108760590B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109210600B (en) * 2018-11-30 2020-01-21 中山市浩帆电子电器有限公司 Electric power on-off system of range hood
CN109669007B (en) * 2018-12-29 2023-09-22 佛山市云米电器科技有限公司 Household non-invasive on-line food detection equipment
CN109798565B (en) * 2018-12-29 2023-06-13 佛山市云米电器科技有限公司 Oil absorption system with function of identifying harmful substances in oil smoke
CN109827612B (en) * 2018-12-29 2024-02-23 佛山市云米电器科技有限公司 Replaceable polycyclic aromatic hydrocarbon detection device for smoke machine
CN109655585B (en) * 2018-12-29 2021-08-31 佛山市云米电器科技有限公司 Range hood capable of identifying kitchen air quality
CN109657640B (en) * 2018-12-29 2024-07-23 佛山市云米电器科技有限公司 Range hood capable of conducting health grade division according to food materials
CN116758489B (en) * 2023-08-17 2023-10-27 山东传奇新力科技有限公司 Intelligent kitchen lampblack detection and identification method based on image processing

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101738394B (en) * 2009-02-11 2011-10-05 北京智安邦科技有限公司 Method and system for detecting indoor smog
EP2476098A1 (en) * 2009-09-13 2012-07-18 Delacom Detection Systems, LLC Method and system for wildfire detection using a visible range camera
DE102011017649B3 (en) * 2011-04-28 2012-10-11 Robert Bosch Gmbh Method and device for detecting an intensity of an aerosol in a field of view of a camera of a vehicle
CN102592128B (en) * 2011-12-20 2014-03-12 Tcl集团股份有限公司 Method and device for detecting and processing dynamic image and display terminal
CN104410830A (en) * 2014-12-01 2015-03-11 天津艾思科尔科技有限公司 Device based on video smoke detection, and method based on video smoke detection
CN105469105A (en) * 2015-11-13 2016-04-06 燕山大学 Cigarette smoke detection method based on video monitoring
WO2017201540A1 (en) * 2016-05-20 2017-11-23 Techcyte, Inc. Machine learning classification of particles or substances in digital microscopy images
CN107085714B (en) * 2017-05-09 2019-12-24 北京理工大学 Forest fire detection method based on video

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Comparative Analysis of Wavelet Trasformation for Fire and Smoke detection in Color Image;Abhishek Tamarakar et.al;《JETIR》;20151231;第2卷(第2期);第193-197页 *
Vision based smoke detection system using image energy and color information;Simone Calderara et.al;《Machine Vision and Applications》;20110521(第22期);第705-719页 *

Also Published As

Publication number Publication date
CN108760590A (en) 2018-11-06

Similar Documents

Publication Publication Date Title
CN108760590B (en) Kitchen oil smoke concentration detection and interference elimination method based on image processing
CN109190624B (en) Kitchen oil smoke concentration detection method based on image processing
CN101739551B (en) Method and system for identifying moving objects
CN109345472B (en) Infrared moving small target detection method for complex scene
CN101739686B (en) Moving object tracking method and system thereof
CN109084350B (en) Range hood with optical filtering function visual detection module and range hood concentration detection method
CN108563991A (en) Kitchen fume concentration division methods and oil smoke concentration detection and interference elimination method
CN105915840B (en) A method of the factory smoke discharge based on vision signal monitors automatically
CN108564091A (en) Target area weak boundary extracting method and oil smoke concentration detection and interference elimination method
CN106845346A (en) A kind of image detecting method for airfield runway foreign bodies detection
CN107742307A (en) Based on the transmission line galloping feature extraction and parameters analysis method for improving frame difference method
CN111611907B (en) Image-enhanced infrared target detection method
CN104853151A (en) Large-space fire monitoring system based on video image
CN104851086A (en) Image detection method for cable rope surface defect
CN109359593B (en) Rain and snow environment picture fuzzy monitoring and early warning method based on image local grid
CN109447063A (en) A kind of kitchen fume concentration detection method based on image procossing
CN102609704A (en) Detecting device and method of video monitoring image movement targets under foggy weather conditions
CN112233111A (en) Tunnel gap detection method based on digital image processing
CN103473533B (en) Moving Objects in Video Sequences abnormal behaviour automatic testing method
CN109028223B (en) Range hood with gesture control visual detection function and range hood concentration detection method
CN104717400A (en) Real-time defogging method of monitoring video
CN111353968B (en) Infrared image quality evaluation method based on blind pixel detection and analysis
CN109544535B (en) Peeping camera detection method and system based on optical filtering characteristics of infrared cut-off filter
CN109460705A (en) Oil pipeline monitoring method based on machine vision
CN109727202B (en) Gas infrared video enhancement method and device and storage medium

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
GR01 Patent grant
GR01 Patent grant