CN111428714B - Method and device for regulating rotating speed of range hood - Google Patents
Method and device for regulating rotating speed of range hood Download PDFInfo
- Publication number
- CN111428714B CN111428714B CN202010215482.8A CN202010215482A CN111428714B CN 111428714 B CN111428714 B CN 111428714B CN 202010215482 A CN202010215482 A CN 202010215482A CN 111428714 B CN111428714 B CN 111428714B
- Authority
- CN
- China
- Prior art keywords
- smoke
- area
- video frame
- afinal
- final
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 56
- 230000001105 regulatory effect Effects 0.000 title abstract description 5
- 239000000779 smoke Substances 0.000 claims abstract description 195
- 238000010411 cooking Methods 0.000 claims abstract description 93
- 230000008569 process Effects 0.000 claims abstract description 13
- 238000001514 detection method Methods 0.000 claims description 22
- 238000001914 filtration Methods 0.000 claims description 15
- 238000012545 processing Methods 0.000 claims description 12
- 238000004364 calculation method Methods 0.000 claims description 9
- 238000000605 extraction Methods 0.000 claims description 8
- 230000009466 transformation Effects 0.000 claims description 8
- 238000009499 grossing Methods 0.000 claims description 7
- 238000009825 accumulation Methods 0.000 claims description 6
- 238000005286 illumination Methods 0.000 claims description 6
- 238000003708 edge detection Methods 0.000 claims description 3
- 230000008859 change Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 230000000007 visual effect Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 239000003517 fume Substances 0.000 description 3
- 238000009434 installation Methods 0.000 description 3
- 238000006243 chemical reaction Methods 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 239000002699 waste material Substances 0.000 description 2
- ZLSWBLPERHFHIS-UHFFFAOYSA-N Fenoprop Chemical compound OC(=O)C(C)OC1=CC(Cl)=C(Cl)C=C1Cl ZLSWBLPERHFHIS-UHFFFAOYSA-N 0.000 description 1
- 238000005260 corrosion Methods 0.000 description 1
- 230000007797 corrosion Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000004134 energy conservation Methods 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000000877 morphologic effect Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000013618 particulate matter Substances 0.000 description 1
- 230000008447 perception Effects 0.000 description 1
- 238000013139 quantization Methods 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 230000035945 sensitivity Effects 0.000 description 1
- 230000007723 transport mechanism Effects 0.000 description 1
- 230000003313 weakening effect Effects 0.000 description 1
Classifications
-
- 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/20—Image preprocessing
- G06V10/25—Determination of region of interest [ROI] or a volume of interest [VOI]
-
- F—MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
- F24—HEATING; RANGES; VENTILATING
- F24C—DOMESTIC STOVES OR RANGES ; DETAILS OF DOMESTIC STOVES OR RANGES, OF GENERAL APPLICATION
- F24C15/00—Details
- F24C15/20—Removing cooking fumes
- F24C15/2021—Arrangement or mounting of control or safety systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/20—Image enhancement or restoration using local operators
- G06T5/30—Erosion or dilatation, e.g. thinning
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/13—Edge detection
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/60—Analysis of geometric attributes
- G06T7/62—Analysis of geometric attributes of area, perimeter, diameter or volume
-
- 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/56—Extraction of image or video features relating to colour
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V20/00—Scenes; Scene-specific elements
- G06V20/40—Scenes; Scene-specific elements in video content
- G06V20/46—Extracting features or characteristics from the video content, e.g. video fingerprints, representative shots or key frames
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Multimedia (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Combustion & Propulsion (AREA)
- Mechanical Engineering (AREA)
- General Engineering & Computer Science (AREA)
- Chemical & Material Sciences (AREA)
- Geometry (AREA)
- Image Analysis (AREA)
- Investigating Or Analysing Materials By Optical Means (AREA)
Abstract
The embodiment of the application discloses a method and a device for regulating the rotating speed of a range hood, wherein the method comprises the following steps: acquiring an image of an area where cooking equipment is located in a cooking process through an image acquisition device; acquiring a final area Afinal of the cooking equipment in the image according to the image of the area where the cooking equipment is located; acquiring smoke quantity information according to a final area Afinal of the cooking equipment; and adjusting the rotating speed of the range hood according to the smoke amount information. By the embodiment, the interference of light and shadow is accurately eliminated, the accuracy of smoke identification based on vision is ensured, and the user experience is improved.
Description
Technical Field
The present disclosure relates to a control technology of a range hood, and more particularly, to a method and an apparatus for adjusting a rotation speed of a range hood.
Background
Various cooking modes of frying in the kitchen can generate a great amount of oil smoke. The range hood is a kitchen electrical device for purifying kitchen environment aiming at a main kitchen fume generation source, and discharges wastes burnt by a kitchen range and fume harmful to human bodies in a cooking process outdoors, but in order to prevent the range hood from fume leakage, the range hood is always kept at a maximum grade to cause energy waste and noise pollution, so that automatic gear adjustment of the range hood according to environmental change is a development trend of the range hood in the future, and the range hood has the advantages of energy conservation, noise reduction and the like. At present, a plurality of adjusting modes exist, but the traditional adjusting modes have different defects:
1. the smoke ventilator rotating speed is adjusted according to current change caused by smoke extraction amount in a smoke ventilator adjusting mode based on wind pressure of a smoke ventilator pipeline, hysteresis is provided, adaptability to smoke which does not enter the pipeline is not provided, and smoke is easy to run out.
2. Gear adjustment of a PM 2.5-based smoke sensor is often limited by the installation location, cannot well reflect the oil smoke environment generated by the cooker, and sensitivity and accuracy of the smoke sensor can be greatly reduced when the smoke sensor is used for a long time.
3. With the development of computer vision, the smoke detection method of the smoke machine based on the vision plays a role in the field of smoke machine rotating speed adjustment due to the characteristics of being visual and convenient for people to understand, low in cost and convenient for mass use. The range is in an open environment where light shadows interfere most with visual smoke recognition, including specular reflection from cooktops, shadows of people and objects illuminated by strong light from exterior windows, and multiple overlapping shadows caused by other light sources.
Disclosure of Invention
The application provides a method and a device for regulating the rotating speed of a range hood, which can accurately eliminate light and shadow interference, ensure the accuracy of smoke identification based on vision and improve user experience.
The application provides a rotation speed adjusting method of a range hood, which comprises an image acquisition device, and the method can comprise the following steps:
acquiring an image of an area where cooking equipment is located in a cooking process through the image acquisition device;
acquiring a final area Afinal of the cooking equipment in the image according to the image of the area where the cooking equipment is located;
acquiring smoke quantity information according to a final area Afinal of the cooking equipment;
and adjusting the rotating speed of the range hood according to the smoke amount information.
In an exemplary embodiment of the present application, the final area Afinal of the cooking apparatus in the image acquired from the image of the area where the cooking apparatus is located may include:
acquiring a video stream I of an area where cooking equipment is located;
and carrying out frame extraction on the video stream I to obtain a video frame Inresize, carrying out image processing on the video frame Inresize to obtain a suspected area A0 of the cooking equipment, and obtaining a final area Afinal of the cooking equipment according to the suspected area A0.
In an exemplary embodiment of the present application, the acquiring the smoke amount information according to the final area Afinal of the cooking apparatus may include:
filtering the final area Afinal, detecting smoke on a UV channel of the final area Afinal, and obtaining a smoke area Asmoke according to a smoke detection result;
counting and calibrating the number Count of smoke points in the smoke region Asmoke, obtaining the number Cfinal of the smoke points, and taking the number Cfinal of the smoke points as smoke quantity information.
In an exemplary embodiment of the present application, the obtaining a video frame intresize by performing frame extraction on the video stream I and obtaining a suspected area A0 of the cooking device by performing image processing on the video frame intresize may include:
extracting a video frame In from a video stream I, and carrying out graying and resolution scaling treatment on the video frame In to obtain a treated video frame Inresize;
and carrying out Hough transformation on the video frame Inresize to obtain a geometric figure region serving as a suspected region A0 of the cooking equipment.
In an exemplary embodiment of the present application, the performing the graying and resolution scaling on the video frame In to obtain the processed video frame intresize may include:
extracting a Y channel In a video frame In as a graying image Iny;
and scaling the length and width of the graying image Iny according to a preset scaling ratio to obtain the video frame intresize.
In an exemplary embodiment of the present application, the geometric figure may include a circle;
performing Hough transform on the video frame intresize to obtain a geometric figure region as a suspected region A0 of the cooking device may include:
performing edge detection on the scaled graying image Iny, and determining boundary points to be subjected to Hough transformation;
establishing an accumulation array list of the parameter space;
determining the value ranges of an abscissa a, an ordinate b and a radius r of a circle, and determining discrete increments of the abscissa a and the ordinate b;
traversing the pixel coordinates of the grayscale image Iny, and sequentially calculating corresponding radius r in the value range of the abscissa a and the ordinate b;
storing the result of each calculation in the accumulation array list;
and finding out the maximum value of the count in the accumulated array list, taking the maximum value as the circle center and the radius of the circle in the grayscale image Iny, and obtaining a suspected area A0 of the circular cooking device according to the circle center coordinates (a, b) and the radius r of the circle.
In an exemplary embodiment of the present application, the acquiring the final area Afinal of the cooking apparatus according to the suspected area A0 may include:
calculating the vertex angle coordinates of the circumscribed rectangle of the suspected area A0;
calculating the product of the width and the height of the circumscribed rectangle through the vertex angle coordinates to obtain the area L of the circumscribed rectangle, and calculating the ratio of the width to the height of the circumscribed rectangle to obtain the length-width ratio K;
when the area L of the circumscribed rectangle is larger than a preset area threshold L0 and the aspect ratio K is larger than a preset proportion threshold K0, a final area Afinal is obtained.
In an exemplary embodiment of the present application, the filtering the final region Afinal may include:
extracting the final area Afinal from the video frame In to obtain a video frame Ifinal;
and carrying out Gaussian smoothing filtering on the video frame Ifinal to filter out light noise, and obtaining the video frame Igauss.
In an exemplary embodiment of the present application, the performing smoke detection on the UV channel of the final area Afinal, and obtaining the smoke area Asmoke according to the smoke detection result may include:
respectively carrying out smoke detection on UV channels in the video frame Igauss, and carrying out suspected smoke region division in RGB, HIS, YUV combined multi-color space according to color space and brightness characteristics to respectively obtain smoke regions Au, smoke of the U channels and smoke regions Av and smoke of the V channels;
intersection of the smoke regions Au, smoke of the U-channel and Av, smoke of the V-channel results in a final smoke region Asmoke.
In an exemplary embodiment of the present application, the counting and calibrating the number Count of smoke points in the smoke area Asmoke, and obtaining the final smoke point number Cfinal may include:
acquiring a weighted average value of pixel point gray values of a Y channel in the cooking equipment, and acquiring a calibrated oil smoke coefficient m according to the size of the weighted average value of the pixel point gray values;
counting the number of pixel points with the pixel value of 255 in a generated smoke area Asmoke, and taking the number of pixel points as the number Count of smoke points in the smoke area Asmoke;
and calibrating the number Count of the smoke points by using the calibrated oil smoke coefficient m to obtain the final smoke point number Cfinal.
In an exemplary embodiment of the present application, the format of the video stream I may be: yuv_nv12.
In an exemplary embodiment of the present application, the range hood may further include a light sensor and an illumination lamp, and the method may further include: after the range hood is started, collecting the light brightness of the environment where the light sensor is located through the light sensor; when the light brightness does not reach a preset light brightness threshold value, judging that the light shadow interference exists; and starting the illuminating lamp.
The application also provides a rotation speed adjusting device of the range hood, which comprises a processor and a computer readable storage medium, wherein the computer readable storage medium stores instructions, and when the instructions are executed by the processor, the rotation speed adjusting method of the range hood is realized.
Compared with the related art, the range hood comprises an image acquisition device, and the method can comprise the following steps: acquiring an image of an area where cooking equipment is located in a cooking process through the image acquisition device; acquiring a final area Afinal of the cooking equipment in the image according to the image of the area where the cooking equipment is located; acquiring smoke quantity information according to a final area Afinal of the cooking equipment; and adjusting the rotating speed of the range hood according to the smoke amount information. By the embodiment, the interference of light and shadow is accurately eliminated, the accuracy of smoke identification based on vision is ensured, and the user experience is improved.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the application. Other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and drawings.
Drawings
The accompanying drawings are included to provide an understanding of the principles of the application, and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain, without limitation, the principles of the application.
Fig. 1 is a flowchart of a method for adjusting the rotation speed of a range hood according to an embodiment of the present application;
fig. 2 is a flowchart of a method for acquiring a final area Afinal of a cooking apparatus in an image according to an image of an area where the cooking apparatus is located according to an embodiment of the present application;
fig. 3 is a schematic diagram of a method for adjusting the rotation speed of a range hood according to an embodiment of the present application;
fig. 4 is a schematic diagram of a method for obtaining a final area Afinal of a cooking apparatus according to an embodiment of the present application;
fig. 5 is a flowchart of a method for acquiring smoke amount information according to a final area Afinal of a cooking apparatus according to an embodiment of the present application;
FIG. 6 is a schematic diagram of a method of obtaining a smoke zone Asmoke according to an embodiment of the present application;
fig. 7 is a block diagram of a rotation speed adjusting device of a range hood according to an embodiment of the present application.
Detailed Description
The present application has been described in terms of several embodiments, but the description is illustrative and not restrictive, and it will be apparent to those of ordinary skill in the art that many more embodiments and implementations are possible within the scope of the described embodiments. Although many possible combinations of features are shown in the drawings and discussed in the detailed description, many other combinations of the disclosed features are possible. Any feature or element of any embodiment may be used in combination with or in place of any other feature or element of any other embodiment unless specifically limited.
The present application includes and contemplates combinations of features and elements known to those of ordinary skill in the art. The disclosed embodiments, features and elements of the present application may also be combined with any conventional features or elements to form a unique inventive arrangement as defined by the claims. Any feature or element of any embodiment may also be combined with features or elements from other inventive arrangements to form another unique inventive arrangement as defined in the claims. It is therefore to be understood that any of the features shown and/or discussed in the present application may be implemented alone or in any suitable combination. Accordingly, the embodiments are not to be restricted except in light of the attached claims and their equivalents. Further, various modifications and changes may be made within the scope of the appended claims.
Furthermore, in describing representative embodiments, the specification may have presented the method and/or process as a particular sequence of steps. However, to the extent that the method or process does not rely on the particular order of steps set forth herein, the method or process should not be limited to the particular sequence of steps described. Other sequences of steps are possible as will be appreciated by those of ordinary skill in the art. Accordingly, the particular order of the steps set forth in the specification should not be construed as limitations on the claims. Furthermore, the claims directed to the method and/or process should not be limited to the performance of their steps in the order written, and one skilled in the art can readily appreciate that the sequences may be varied and still remain within the spirit and scope of the embodiments of the present application.
The application provides a rotation speed adjusting method of a range hood, which can comprise an image acquisition device, as shown in fig. 1, and can comprise S101-S103:
s101, acquiring an image of an area where cooking equipment is located in a cooking process through the image acquisition device.
In the exemplary embodiment of the application, the influence of vision under open environment illumination can be overcome by solving the light and shadow interference, so that the vision scheme truly falls to the ground in the field of rotation speed adjustment of the range hood. Considering universality of the algorithm, the application provides the algorithm which has low calculation resource consumption, is based on image processing, does not need to add extra hardware and can accurately eliminate light and shadow interference, can ensure accuracy of smoke identification based on vision, and improves user experience. The method for adjusting the rotating speed of the range hood for eliminating the shadow interference can play an increasingly wide role in the field of adjusting the rotating speed of the range hood.
In the exemplary embodiment of the application, the video stream I acquired by the visible light camera is input into a preset computing device, then the input video stream I is subjected to frame extraction, graying and resolution conversion to obtain a video frame Inresize, the suspected region A0 of the cooking device (for example, a pot) is searched by utilizing Hough conversion, the suspected region A0 of the cooking device is corroded and expanded, the area and the aspect ratio are judged, a final region Afinal of the cooking device is generated, the final region Afinal of the cooking device is subjected to Gaussian smoothing filtering, the final region Afinal of the cooking device is subjected to frame difference processing, a smoke region Asmoke is detected, finally, according to the smoke quantity statistical quantization calculation in the smoke region Asmoke, real-time smoke quantity information is output, the purpose of smoke detection of a smoke machine for eliminating light and shadow interference is achieved, the smoke can be automatically and rapidly discharged in a proper gear, and noise and power are reduced.
In the exemplary embodiment of the present application, the video stream I acquired by the visible light camera may be input into the local computing device, and the signal format in this embodiment may be selected as yuv_nv12; the yuv_nv12 may be a video format output by a visible light camera.
S102, acquiring a final area Afinal of the cooking equipment in the image according to the image of the area where the cooking equipment is located.
In an exemplary embodiment of the present application, as shown in fig. 2 and 3, the final area Afinal of the cooking apparatus in the image acquired image according to the area where the cooking apparatus is located may include S201 to S202:
s201, acquiring a video stream I of an area where the cooking equipment is located.
S202, carrying out frame extraction on the video stream I to obtain a video frame Inresize, carrying out image processing on the video frame Inresize to obtain a suspected area A0 of the cooking equipment, and obtaining a final area Afinal of the cooking equipment according to the suspected area A0.
In an exemplary embodiment of the present application, the obtaining a video frame intresize by performing frame extraction on the video stream I and obtaining a suspected area A0 of the cooking device by performing image processing on the video frame intresize may include:
extracting a video frame In from a video stream I, and carrying out graying and resolution scaling treatment on the video frame In to obtain a treated video frame Inresize;
and carrying out Hough transformation on the video frame Inresize to obtain a geometric figure region serving as a suspected region A0 of the cooking equipment.
In an exemplary embodiment of the present application, as shown In fig. 4, frame extraction may be performed on an input video stream I, gray-scale processing and resolution scaling processing may be performed on a video frame In, a processed video frame intresize may be obtained, a geometric figure, for example, a circle may be found by using Hough transformation, a suspected area A0 of the cooking apparatus may be generated, corrosion expansion morphological processing may be performed on the suspected area A0, and then feature determination of an area L and an aspect ratio K may be performed, to obtain a final area Afinal of the cooking apparatus.
In an exemplary embodiment of the present application, the performing the graying and resolution scaling on the video frame In to obtain the processed video frame intresize may include:
extracting a Y channel In a video frame In as a graying image Iny;
and scaling the length and width of the graying image Iny according to a preset scaling ratio to obtain the video frame intresize.
In the exemplary embodiment of the present application, the video stream I is the input sequence video data, so the video frame In needs to be extracted for subsequent calculation.
In an exemplary embodiment of the present application, since the selected video format is yuv_nv12, detection of the cooking device area is required, and the Y channel In the video frame In may be extracted as the grayscale image Iny. Wherein, the Y channel is one channel of the video with the video format of YUV_NV12.
In the exemplary embodiment of the present application, since the local computing device needs to run in real time for smoke recognition and the smoke detail information does not need to be processed with a large resolution, a resolution scaling process (mainly referred to as a scaling process) may be performed on the video frame, and the output video resolution of the commonly used visible light camera includes, but is not limited to, 800×600, 1280×960, etc., the video resolution may be selected to be 1280×960, and the length and width of the output video may be reduced to 1/4 times, 320×240, respectively, for convenience of calculation.
In an exemplary embodiment of the present application, the geometric figure may include a circle.
In an exemplary embodiment of the present application, the performing Hough transform on the video frame intresize to obtain the geometric area as the suspected area A0 of the cooking device may include:
performing edge detection on the scaled graying image Iny, and determining boundary points to be subjected to Hough transformation;
establishing an accumulation array list of the parameter space;
determining the value ranges of an abscissa a, an ordinate b and a radius r of a circle, and determining discrete increments of the abscissa a and the ordinate b;
traversing the pixel coordinates of the grayscale image Iny, and sequentially calculating corresponding radius r in the value range of the abscissa a and the ordinate b;
storing the result of each calculation in the accumulation array list;
and finding out the maximum value of the count in the accumulated array list, taking the maximum value as the circle center and the radius of the circle in the grayscale image Iny, and obtaining a suspected area A0 of the circular cooking device according to the circle center coordinates (a, b) and the radius r of the circle.
In an exemplary embodiment of the present application, the acquiring the final area Afinal of the cooking apparatus according to the suspected area A0 may include:
calculating the vertex angle coordinates of the circumscribed rectangle of the suspected area A0;
calculating the product of the width and the height of the circumscribed rectangle through the vertex angle coordinates to obtain the area L of the circumscribed rectangle, and calculating the ratio of the width to the height of the circumscribed rectangle to obtain the length-width ratio K;
when the area L of the circumscribed rectangle is larger than a preset area threshold L0 and the aspect ratio K is larger than a preset proportion threshold K0, a final area Afinal is obtained.
In an exemplary embodiment of the present application, the circumscribed rectangular area L and the aspect ratio K of the suspicious area A0 of the cooking apparatus are calculated by the suspicious area A0, and a threshold may be set, and the final area Afinal of the cooking apparatus is obtained when the suspicious area A0 is satisfied.
In an exemplary embodiment of the present application, for example, the upper left corner coordinates and the lower right corner coordinates of the suspected area A0 of the cooking apparatus may be calculated to obtain an circumscribed rectangle; calculating the product of the width and the height of the circumscribed rectangle through the coordinates of the upper left corner and the lower right corner to obtain the circumscribed rectangle area L; calculating the ratio of the width to the height of the external rectangle to obtain an aspect ratio K; when the condition that the circumscribed rectangular area L is larger than the area threshold L0 and the length-width ratio K is larger than the proportion threshold K0 is met, the area Afinal of the final pot can be obtained.
In an exemplary embodiment of the present application, after the final area Afinal of the cooking apparatus is determined, the edge area of the cooking apparatus (e.g., the rim area of the port) may be color-set (e.g., set to black) to further highlight the area where the cooking apparatus is located.
And S103, acquiring smoke quantity information according to a final area Afinal of the cooking equipment.
In an exemplary embodiment of the present application, as shown in fig. 5, the acquiring smoke amount information according to the final area Afinal of the cooking apparatus may include S301 to S302:
and S301, filtering the final area Afinal, detecting smoke on a UV channel of the final area Afinal, and obtaining a smoke area Asmoke according to a smoke detection result, as shown in FIG. 6.
In an exemplary embodiment of the present application, the filtering the final region Afinal may include:
extracting the final area Afinal from the video frame In to obtain a video frame Ifinal;
and carrying out Gaussian smoothing filtering on the video frame Ifinal to filter out light noise, and obtaining the video frame Igauss.
In an exemplary embodiment of the application, the area in the cooking device can be subjected to Gaussian smoothing filtering, light interference is primarily filtered, and smoke detection is performed on the UV channel of the area in the cooking device, so that a final smoke area Asmoke is obtained.
In an exemplary embodiment of the present application, a corresponding region of the video frame In may be extracted through the final region Afinal to obtain a processed video frame ifenal, and the video frame ifenal is subjected to gaussian smoothing filtering to primarily filter out light noise, so as to obtain a processed video frame Igauss.
In an exemplary embodiment of the present application, the performing smoke detection on the UV channel of the final area Afinal, and obtaining the smoke area Asmoke according to the smoke detection result may include:
respectively carrying out smoke detection on UV channels in the video frame Igauss, and carrying out suspected smoke region division in RGB, HIS, YUV combined multi-color space according to color space and brightness characteristics to respectively obtain smoke regions Au, smoke of the U channels and smoke regions Av and smoke of the V channels;
intersection of the smoke regions Au, smoke of the U-channel and Av, smoke of the V-channel results in a final smoke region Asmoke.
In an exemplary embodiment of the present application, the UV channels in the processed video frames Igauss are respectively subjected to smoke detection, and according to the characteristics of gray smoke, green smoke and brightness in the color space, the smoke detection is performed on RGB [ red (R), green (G), blue (B) ], HIS ]H defines the wavelength of the color, called hue; s represents the degree of darkness of the color, called saturation; i represents intensity or brightness), performing suspected smoke region division in YUV combined multi-color space, and then intersecting smoke regions Au, spoke and Av, spoke generated in the U and V channels respectively to generate a final smoke region Asmoke, namely: a is that smoke =A u,smoke ∩A v,smoke 。
S302, counting and calibrating the number Count of smoke points in the smoke area Asmoke, obtaining the number Cfinal of the smoke points, and taking the number Cfinal of the smoke points as smoke quantity information.
In an exemplary embodiment of the present application, the counting and calibrating the number Count of smoke points in the smoke area Asmoke, and obtaining the final smoke point number Cfinal may include:
acquiring a weighted average value of pixel point gray values of a Y channel in the cooking equipment, and acquiring a calibrated oil smoke coefficient m according to the size of the weighted average value of the pixel point gray values;
counting the number of pixel points with the pixel value of 255 in a generated smoke area Asmoke, and taking the number of pixel points as the number Count of smoke points in the smoke area Asmoke;
and calibrating the number Count of the smoke points by using the calibrated oil smoke coefficient m to obtain the final smoke point number Cfinal.
In the exemplary embodiment of the application, a pixel point gray value weighted average value of a region Y channel in cooking equipment is obtained, a calibration oil smoke coefficient m is obtained according to the magnitude of the gray value weighted average value, the final smoke region Asmoke generated in the previous step is subjected to smoke volume statistics to obtain the number Count of smoke points, the number Count of smoke points is calibrated by using the calibration oil smoke coefficient m to obtain the number Cfinal of smoke points after calibration, and then the number Cfinal of smoke regions is subjected to smoke volume mapping and output, so that the purpose of regulating the rotating speed of a smoke machine is achieved.
In an exemplary embodiment of the present application, the smoke volume statistics may be first performed on the smoke region Asmoke, i.e. the number of pixels with a pixel value of 255 in the final smoke region AsmokeThe smoke point number Count is obtained, the smoke point number Count is calibrated by using the calibrated oil smoke coefficient m, the calibrated smoke point number Cfinal is obtained, and the calibration calculation formula can be as follows: c (C) final =Count*a。
And S104, adjusting the rotating speed of the range hood according to the smoke amount information.
In the exemplary embodiment of the application, the real-time smoke quantity information, namely the number Cfinal of smoke points, is finally output, and the motor of the smoke machine is controlled to carry out corresponding gear adjustment, so that the aim of adjusting the rotating speed of the smoke machine is fulfilled.
In an exemplary embodiment of the present application, the range hood may further include a light sensor and an illumination lamp, and the method further includes: after the range hood is started, collecting the light brightness of the environment where the light sensor is located through the light sensor; when the light brightness does not reach a preset light brightness threshold value, judging that the light shadow interference exists; and starting the illuminating lamp.
In an exemplary embodiment of the present application, in order to ensure the reliability of the solution of the present embodiment, the light and shadow interference detection may also be performed after the range hood is started, where the light and shadow interference includes, but is not limited to, hand shadow, slice shadow, human shadow, specular reflection, and the like.
In an exemplary embodiment of the present application, since the light interference may cause the light brightness of the area where the range hood is located and/or the area where the cooking apparatus is located to be reduced, the lighting apparatus (e.g., the illumination lamp) capable of being coupled with the range hood may be installed on the range hood or on a wall or an apparatus other than the body of the range hood, so that the light brightness reduced due to the light interference may be supplemented by the light of the lighting apparatus.
In the exemplary embodiments of the present application, there are no restrictions on the installation positions, the installation number, the layout structures, and the like of the image pickup device, the light sensor, and the illumination apparatus.
The embodiment of the application at least comprises the following advantages:
1. the smoke machine rotating speed adjusting method for eliminating the shadow interference provided by the embodiment of the application can be processed at the local end in real time, has small calculation resource consumption, saves the smoke machine electric power, reduces the noise and improves the user experience.
2. Through smoke detection, the motor of the range hood is controlled, the corresponding rotating speed adjustment of the range hood is realized, the noise of the range hood is reduced, and the user experience is improved.
3. By detecting the smoke generation source-the cooking equipment (such as a cooker), the edge area of the cooking equipment is filtered, the interference of the ambient light shadow on the edge of the cooking equipment is eliminated, the interference of any light reflection and object light shadow on the edge of the cooking equipment to the visual processing is eliminated, the interference area is reduced to the maximum extent, the smoke amount is identified more accurately, and the smoke detection accuracy is improved.
4. The method comprises the steps of weakening and eliminating shadows generated by specular reflection, strong light and other light source irradiation in an inner region of cooking equipment, primarily filtering shadow noise through Gaussian smoothing filtering, detecting a smoke region in a UV channel by using a frame difference method, and filtering out the influence of shadow change on the inner region of a pot.
5. Through carrying out luminance statistics to the gray value of regional Y passageway in the cooking equipment, utilize the average luminance of Y passageway to obtain the calibration oil smoke coefficient, carry out the coefficient calibration to the regional whole luminance change that leads to because the shadow interference in the pot, promote smog volume discernment precision, realized that range hood rotational speed is accurate to be adjusted, guaranteed that range hood can be automatic in proper gear in time get rid of the oil smoke.
6. The rotating speed of the range hood is adjusted in real time, so that the power is saved, and the range hood is energy-saving and environment-friendly.
7. Compared with the traditional particulate matter sensor type oil smoke detection, the algorithm of the embodiment can process the smoke at the moment when the smoke is generated and the smoke is perceived by people, is more visual, accords with the human perception of the smoke, and can well reflect the oil smoke environment.
The application also provides a rotation speed adjusting device 1 of the range hood, as shown in fig. 7, which can comprise a processor 11 and a computer readable storage medium 12, wherein instructions are stored in the computer readable storage medium 12, and when the instructions are executed by the processor 11, the rotation speed adjusting method of the range hood is realized.
Those of ordinary skill in the art will appreciate that all or some of the steps, systems, functional modules/units in the apparatus, and methods disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between the functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed cooperatively by several physical components. Some or all of the components may be implemented as software executed by a processor, such as a digital signal processor or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes both volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as known to those skilled in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer. Furthermore, as is well known to those of ordinary skill in the art, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media.
Claims (10)
1. The method for adjusting the rotating speed of the range hood is characterized in that the range hood comprises an image acquisition device, and the method comprises the following steps:
acquiring an image of an area where cooking equipment is located in a cooking process through the image acquisition device;
acquiring a final area Afinal of the cooking equipment in the image according to the image of the area where the cooking equipment is located;
acquiring smoke quantity information according to a final area Afinal of the cooking equipment;
adjusting the rotating speed of the range hood according to the smoke amount information;
wherein the acquiring the smoke amount information according to the final area Afinal of the cooking apparatus includes:
obtaining a smoke area Asmoke, counting and calibrating the number Count of smoke points in the smoke area Asmoke, obtaining the number Cfinal of the smoke points, and taking the number Cfinal of the smoke points as smoke quantity information;
the counting and calibrating the number Count of the smoke points in the smoke area Asmoke, and the obtaining of the final smoke point number Cfinal includes:
obtaining a calibrated oil smoke coefficient m;
counting the number of pixels of the pixel values of smoke points in a generated smoke area Asmoke, and taking the number of pixels as the number Count of smoke points of the smoke area Asmoke;
and calibrating the number Count of the smoke points by using the calibrated oil smoke coefficient m to obtain the final smoke point number Cfinal.
2. The method for adjusting the rotation speed of a range hood according to claim 1, wherein the obtaining the final area Afinal of the cooking device according to the image of the area where the cooking device is located includes:
acquiring a video stream I of an area where cooking equipment is located;
and carrying out frame extraction on the video stream I to obtain a video frame Inresize, carrying out image processing on the video frame Inresize to obtain a suspected area A0 of the cooking equipment, and obtaining a final area Afinal of the cooking equipment according to the suspected area A0.
3. The range hood rotational speed adjustment method according to claim 1, wherein the acquiring the smoke amount information according to the final area Afinal of the cooking apparatus comprises:
and filtering the final area Afinal, detecting smoke on a UV channel of the final area Afinal, and obtaining a smoke area Asmoke according to a smoke detection result.
4. The method of claim 2, wherein the frame extracting the video stream I to obtain a video frame intresize, and the image processing the video frame intresize to obtain a suspected area A0 of the cooking device comprises:
extracting a video frame In from a video stream I, and carrying out graying and resolution scaling treatment on the video frame In to obtain a treated video frame Inresize;
and carrying out Hough transformation on the video frame Inresize to obtain a geometric figure region serving as a suspected region A0 of the cooking equipment.
5. The method of claim 4, wherein the performing the gray scale and the resolution scale on the video frame In to obtain the processed video frame intresize includes:
extracting a Y channel In a video frame In as a graying image Iny;
scaling the length and width of the graying image Iny according to a preset scaling ratio to obtain the video frame intresize;
the geometric figure comprises a circle;
performing Hough transformation on the video frame Inresize to obtain a geometric figure region serving as a suspected region A0 of the cooking equipment, wherein the method comprises the following steps of:
performing edge detection on the video frame Inresize, and determining boundary points to be subjected to Hough transformation;
establishing an accumulation array list of the parameter space;
determining the value ranges of an abscissa a, an ordinate b and a radius r of a circle, and determining discrete increments of the abscissa a and the ordinate b;
traversing the pixel coordinates of the Inresize, and sequentially calculating corresponding radius r in the value range of the abscissa a and the ordinate b;
storing the result of each calculation in the accumulation array list;
and finding out the maximum value of the count in the accumulated array list, taking the maximum value as the circle center and the radius of the circle in the Inresize, and obtaining a suspected area A0 of the circular cooking equipment according to the circle center coordinates (a, b) and the radius r of the circle.
6. The method of claim 2, wherein the obtaining a final area Afinal of the cooking apparatus according to the suspected area A0 comprises:
calculating the vertex angle coordinates of the circumscribed rectangle of the suspected area A0;
calculating the product of the width and the height of the circumscribed rectangle through the vertex angle coordinates to obtain the area L of the circumscribed rectangle, and calculating the ratio of the width to the height of the circumscribed rectangle to obtain the length-width ratio K;
when the area L of the circumscribed rectangle is larger than a preset area threshold L0 and the aspect ratio K is larger than a preset proportion threshold K0, a final area Afinal is obtained.
7. A range hood rotational speed adjustment method according to claim 3, wherein said filtering said final area Afinal comprises:
extracting the final area Afinal from a video frame In to obtain a video frame Ifinal, wherein the video frame In is extracted from a video stream I of an area where the cooking equipment is located;
carrying out Gaussian smoothing filtering on the video frame Ifinal to filter light noise, and obtaining a video frame Igauss;
and performing smoke detection on the UV channel of the final area Afinal, and obtaining a smoke area Asmoke according to a smoke detection result comprises the following steps:
respectively carrying out smoke detection on UV channels in the video frame Igauss, and carrying out suspected smoke region division in RGB, HIS, YUV combined multi-color space according to color space and brightness characteristics to respectively obtain a smoke region Au-smoke of the U channel and a smoke region Av-smoke of the V channel;
intersection of the smoke region Au-smoke of the U channel and the smoke region Av-smoke of the V channel is performed to generate a final smoke region Asmoke.
8. A method for adjusting the rotation speed of a range hood according to claim 3, wherein the counting and calibrating the number Count of smoke points in the smoke area Asmoke, and obtaining the final number Cfinal of smoke points, comprises:
acquiring a weighted average value of pixel point gray values of a Y channel in the cooking equipment, and acquiring a calibrated oil smoke coefficient m according to the size of the weighted average value of the pixel point gray values;
and counting the number of pixel points with the pixel value of 255 in the generated smoke area Asmoke, and taking the number of pixel points as the number Count of smoke points in the smoke area Asmoke.
9. The method for adjusting the rotation speed of a range hood according to any one of claims 1 to 8, wherein the range hood further comprises a light sensor and an illumination lamp, the method further comprising: after the range hood is started, collecting the light brightness of the environment where the light sensor is located through the light sensor; when the light brightness does not reach a preset light brightness threshold value, judging that the light shadow interference exists; and starting the illuminating lamp.
10. A range hood rotational speed adjustment device comprising a processor and a computer readable storage medium having instructions stored therein, wherein the instructions, when executed by the processor, implement the range hood rotational speed adjustment method of any one of claims 1-9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010215482.8A CN111428714B (en) | 2020-03-25 | 2020-03-25 | Method and device for regulating rotating speed of range hood |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010215482.8A CN111428714B (en) | 2020-03-25 | 2020-03-25 | Method and device for regulating rotating speed of range hood |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111428714A CN111428714A (en) | 2020-07-17 |
CN111428714B true CN111428714B (en) | 2023-10-13 |
Family
ID=71549414
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010215482.8A Active CN111428714B (en) | 2020-03-25 | 2020-03-25 | Method and device for regulating rotating speed of range hood |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111428714B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112989933B (en) * | 2021-02-05 | 2024-09-20 | 宁波方太厨具有限公司 | Recognition method, system, electronic equipment and storage medium for lampblack concentration |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104501257A (en) * | 2014-12-23 | 2015-04-08 | 浙江大学宁波理工学院 | Automatic extractor hood speed regulating control method based on image analysis and automatic extractor hood speed regulating control system based on image analysis |
JP2017040430A (en) * | 2015-08-19 | 2017-02-23 | 東京瓦斯株式会社 | Range hood |
CN108548199A (en) * | 2018-03-08 | 2018-09-18 | 佛山市云米电器科技有限公司 | A kind of intelligent fume exhauster wind speed is adjusted a wage scale method and device |
CN109028232A (en) * | 2018-09-29 | 2018-12-18 | 佛山市云米电器科技有限公司 | A kind of band moves the kitchen ventilator and oil smoke concentration detection method of vision detection system |
CN109028223A (en) * | 2018-09-29 | 2018-12-18 | 佛山市云米电器科技有限公司 | Have the kitchen ventilator and oil smoke concentration detection method of gesture control vision-based detection function |
CN109883907A (en) * | 2017-12-06 | 2019-06-14 | 九阳股份有限公司 | A kind of culinary art smog detection method based on image and intelligent smoke machine |
CN110500623A (en) * | 2019-07-10 | 2019-11-26 | 宁波方太厨具有限公司 | A kind of central flue system and its target air volume control method |
CN110658118A (en) * | 2018-06-29 | 2020-01-07 | 九阳股份有限公司 | Cooking smoke detection method and range hood |
-
2020
- 2020-03-25 CN CN202010215482.8A patent/CN111428714B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104501257A (en) * | 2014-12-23 | 2015-04-08 | 浙江大学宁波理工学院 | Automatic extractor hood speed regulating control method based on image analysis and automatic extractor hood speed regulating control system based on image analysis |
JP2017040430A (en) * | 2015-08-19 | 2017-02-23 | 東京瓦斯株式会社 | Range hood |
CN109883907A (en) * | 2017-12-06 | 2019-06-14 | 九阳股份有限公司 | A kind of culinary art smog detection method based on image and intelligent smoke machine |
CN108548199A (en) * | 2018-03-08 | 2018-09-18 | 佛山市云米电器科技有限公司 | A kind of intelligent fume exhauster wind speed is adjusted a wage scale method and device |
CN110658118A (en) * | 2018-06-29 | 2020-01-07 | 九阳股份有限公司 | Cooking smoke detection method and range hood |
CN109028232A (en) * | 2018-09-29 | 2018-12-18 | 佛山市云米电器科技有限公司 | A kind of band moves the kitchen ventilator and oil smoke concentration detection method of vision detection system |
CN109028223A (en) * | 2018-09-29 | 2018-12-18 | 佛山市云米电器科技有限公司 | Have the kitchen ventilator and oil smoke concentration detection method of gesture control vision-based detection function |
CN110500623A (en) * | 2019-07-10 | 2019-11-26 | 宁波方太厨具有限公司 | A kind of central flue system and its target air volume control method |
Non-Patent Citations (1)
Title |
---|
林成忠 等. 基于稠密光流和边缘特征的烟雾检测算法.计算机工程与科学.2018,全文. * |
Also Published As
Publication number | Publication date |
---|---|
CN111428714A (en) | 2020-07-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109272489B (en) | Infrared weak and small target detection method based on background suppression and multi-scale local entropy | |
CN108197546B (en) | Illumination processing method and device in face recognition, computer equipment and storage medium | |
CN108921176A (en) | A kind of pointer instrument positioning and recognition methods based on machine vision | |
WO2007061779A1 (en) | Shadow detection in images | |
CN106454014B (en) | A kind of method and device improving backlight scene vehicle snapshot picture quality | |
CN105493141B (en) | Unstructured road border detection | |
CN103927726B (en) | Image noise reduction apparatus | |
CN113306486B (en) | In-vehicle lighting device control method, storage medium, and electronic apparatus | |
WO2009105812A1 (en) | Spatio-activity based mode matching field of the invention | |
CN107635099B (en) | Human body induction double-optical network camera and security monitoring system | |
CN108765406A (en) | A kind of snow mountain detection method based on infrared remote sensing image | |
CN111368785A (en) | Camera shielding judgment method, device, equipment and storage medium | |
CN111428714B (en) | Method and device for regulating rotating speed of range hood | |
CN107977959B (en) | Respirator state identification method suitable for electric power robot | |
CN107016343A (en) | A kind of traffic lights method for quickly identifying based on Bel's format-pattern | |
CN117823973A (en) | Smoke exhaust ventilator, control method and device thereof and storage medium | |
CN112598674B (en) | Image processing method and device for vehicle and vehicle | |
CN113188656A (en) | Ambient light intensity detection method, detection device, electronic equipment and storage medium | |
CN110930358B (en) | Solar panel image processing method based on self-adaptive algorithm | |
Zhuo et al. | A Naturalness‐Preserved Low‐Light Enhancement Algorithm for Intelligent Analysis | |
CN111192332B (en) | Smoke detection-based smoke machine control method and smoke machine | |
CN116310889A (en) | Unmanned aerial vehicle environment perception data processing method, control terminal and storage medium | |
CN113505860B (en) | Screening method and device for blind area detection training set, server and storage medium | |
CN114841874A (en) | Image processing method, device, equipment and storage medium | |
CN112800818B (en) | Range hood and smoke identification method thereof |
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 |