CN111428714A - Method and device for adjusting rotating speed of range hood - Google Patents
Method and device for adjusting rotating speed of range hood Download PDFInfo
- Publication number
- CN111428714A CN111428714A CN202010215482.8A CN202010215482A CN111428714A CN 111428714 A CN111428714 A CN 111428714A CN 202010215482 A CN202010215482 A CN 202010215482A CN 111428714 A CN111428714 A CN 111428714A
- Authority
- CN
- China
- Prior art keywords
- smoke
- area
- range hood
- video frame
- afinal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 52
- 239000000779 smoke Substances 0.000 claims abstract description 174
- 238000010411 cooking Methods 0.000 claims abstract description 92
- 230000008569 process Effects 0.000 claims abstract description 10
- 238000001514 detection method Methods 0.000 claims description 23
- 238000012545 processing Methods 0.000 claims description 16
- 238000001914 filtration Methods 0.000 claims description 14
- 230000009466 transformation Effects 0.000 claims description 8
- 238000004364 calculation method Methods 0.000 claims description 7
- 238000009825 accumulation Methods 0.000 claims description 6
- 238000009499 grossing Methods 0.000 claims description 6
- 238000000605 extraction Methods 0.000 claims description 5
- 238000003708 edge detection Methods 0.000 claims description 3
- 235000019504 cigarettes Nutrition 0.000 description 5
- 230000008859 change Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 239000003517 fume Substances 0.000 description 3
- 238000005286 illumination Methods 0.000 description 3
- 238000009434 installation Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 238000013507 mapping Methods 0.000 description 2
- 230000008447 perception Effects 0.000 description 2
- 230000009467 reduction Effects 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
- 238000006243 chemical reaction Methods 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
- 230000002349 favourable effect Effects 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
- 230000035945 sensitivity Effects 0.000 description 1
- 230000001131 transforming effect Effects 0.000 description 1
- 230000007723 transport mechanism Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Images
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)
- Geometry (AREA)
- Chemical & Material Sciences (AREA)
- Combustion & Propulsion (AREA)
- Mechanical Engineering (AREA)
- General Engineering & Computer Science (AREA)
- Investigating Or Analysing Materials By Optical Means (AREA)
- Image Analysis (AREA)
Abstract
The embodiment of the application discloses a method and a device for adjusting 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 scheme of the embodiment, the light and shadow interference is accurately eliminated, the smoke identification accuracy based on vision is ensured, and the user experience is improved.
Description
Technical Field
The present invention relates to a control technology of a range hood, particularly to a method and a device for adjusting the rotating speed of the range hood.
Background
A great deal of oil smoke is generated in various cooking modes of frying and frying in a kitchen. The range hood is a kitchen electrical appliance device for purifying the kitchen environment by aiming at a main oil fume generation source in a kitchen, wastes burnt by a stove and oil fume harmful to human bodies generated in the cooking process are discharged outdoors, but in order to prevent the range hood from leaking the oil fume, the range hood is always kept at the maximum gear, so that energy is wasted, noise pollution is generated, the automatic gear adjustment of the range hood according to the environmental change is the 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, various adjusting modes exist, but the traditional adjusting modes have different defects:
1. the rotating speed of the range hood is adjusted according to the current change caused by the smoke exhaust amount by the adjusting mode of the range hood based on the air pressure of the pipeline of the range hood, but the range hood has hysteresis and no adaptability to the smoke which does not enter the pipeline, and the smoke easily leaks.
2. The gear adjustment of the smoke sensor based on PM2.5 is often limited by the installation position, the oil smoke environment generated by the cooker cannot be well reflected, and the sensitivity and the accuracy of the smoke sensor after long-time use are greatly reduced.
3. With the development of computer vision, the vision-based smoke detection method of the cigarette machine plays a role in the field of regulation of the rotating speed of the cigarette machine due to the characteristics of intuition, convenience for understanding of people and low cost and convenience for mass use. However, the range hood is in an open environment where the light and shadow interfere most with the visual smoke recognition, including specular reflections from cooktops, shadows from people and objects that are highlighted by external windows, and multiple overlapping shadows from other light sources.
Disclosure of Invention
The application provides a method and a device for adjusting 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 method for adjusting the rotating speed of a range hood, wherein 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 the 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 acquiring the final area Afinal of the cooking appliance in the image according to the image of the area where the cooking appliance is located may include:
acquiring a video stream I of an area where cooking equipment is located;
performing frame extraction on the video stream I to obtain a video frame Inresize, performing 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 of the smoke amount information according to the final area Afinal of the cooking apparatus may include:
filtering the final area Afinal, performing smoke detection 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, acquiring the final number Cfinal of smoke points, and taking the final number Cfinal of smoke points as smoke amount information.
In an exemplary embodiment of the present application, the frame extracting the video stream I to obtain a video frame Inresize, and the image processing the video frame Inresize to obtain the suspected area a0 of the cooking device may include:
extracting a video frame In from a video stream I, and carrying out graying and resolution scaling processing on the video frame In to obtain a processed video frame Inresize;
and carrying out Hough transformation on the video frame Inresize to obtain a geometric figure area serving as a suspected area A0 of the cooking equipment.
In an exemplary embodiment of the present application, the graying and resolution scaling the video frame In to obtain the processed video frame Inresize may include:
extracting a Y channel In the video frame In as a grayed image Iny;
and scaling the length and the width of the grayed image Iny according to a preset scaling ratio to obtain the video frame Inresize.
In an exemplary embodiment of the present application, the geometric figure may include a circle;
the obtaining a geometric region as the suspected region a0 of the cooking device by performing Hough transform on the video frame Inresize may include:
performing edge detection on the scaled grayed image Iny to determine boundary points to be subjected to Hough transformation;
establishing an accumulation array list of a parameter space;
determining the value ranges of a circular abscissa a, a circular ordinate b and a circular radius r, and determining the discrete increment of the abscissa a and the circular radius r;
traversing the pixel coordinates of the gray-scale image Iny, and sequentially calculating corresponding radiuses r in the value ranges of the abscissa a and the ordinate b;
storing the result of each calculation in the accumulation array list;
finding out the maximum value of the counts in the accumulated array list as the center and radius of the circle in the grayed image Iny, and obtaining a suspected area A0 of the circular cooking device according to the center coordinates (a, b) and radius r of the circle.
In an exemplary embodiment of the present application, the acquiring the final area Afinal of the cooking device according to the suspected area a0 may include:
calculating the vertex angle coordinates of a circumscribed rectangle of the suspected area A0;
calculating the product of the width and the height of the circumscribed rectangle according to 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 greater than the preset area threshold L0, and the aspect ratio K is greater than the preset ratio threshold K0, the final area Afinal is obtained.
In an exemplary embodiment of the present application, the filtering the final area Afinal may include:
extracting the final area Afinal from the video frame In to obtain a video frame Ifinal;
and performing Gaussian smoothing filtering on the video frame Ifinal to filter out light noise to obtain a video frame Igauss.
In an exemplary embodiment of the application, the performing smoke detection on the UV channel of the final area Afinal, and obtaining a smoke area Asmoke according to a 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 and YUV combined multi-color space according to color space and brightness characteristics to respectively obtain smoke regions Au and smoke of U channels and smoke regions Av and smoke of V channels;
and taking the intersection of the smoke areas Au and smoke of the U channel and the smoke areas Av and smoke of the V channel to generate a final smoke area Asmoke.
In an exemplary embodiment of the present application, the counting and calibrating the number Count of smoke points in the smoke region Asmoke, and acquiring the final number Cfinal of smoke points may include:
acquiring a weighted average value of pixel gray values of a region Y channel in the cooking equipment, and acquiring a calibration oil smoke coefficient m according to the size of the weighted average value of the pixel gray values;
counting the number of pixel points with the pixel value of 255 in the generated smoke region Asmoke as the number Count of the smoke points in the smoke region Asmoke;
and calibrating the number Count of the smoke points by utilizing the calibrated oil smoke coefficient m to obtain the final number Cfinal of the smoke points.
In an exemplary embodiment of the present application, the format of the video stream I may be: YUV _ NV 12.
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, acquiring the light brightness of the environment where the light sensor is located through the light sensor; judging that light and shadow interference exists when the light brightness does not reach a preset light brightness threshold value; and starting the illuminating lamp.
The application also provides a range hood rotating speed adjusting device, which comprises a processor and a computer readable storage medium, wherein instructions are stored in the computer readable storage medium, and when the instructions are executed by the processor, the range hood rotating speed adjusting method is realized.
Compared with the prior art, the range hood of the application 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 the 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 scheme of the embodiment, the light and shadow interference is accurately eliminated, the smoke identification accuracy 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 the practice of the application. Other advantages of the present application may be realized and attained by the instrumentalities and combinations particularly pointed out in the specification and the drawings.
Drawings
The accompanying drawings are included to provide an understanding of the present disclosure and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the examples serve to explain the principles of the disclosure and not to limit the disclosure.
Fig. 1 is a flowchart of a method for adjusting a rotational 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 device in an image according to an image of an area where the cooking device is located according to an embodiment of the present application;
FIG. 3 is a schematic diagram illustrating a method for adjusting a rotational speed of a range hood according to an embodiment of the present disclosure;
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 obtaining information on the amount of smoke according to the final area Afinal of the cooking apparatus according to an embodiment of the present application;
fig. 6 is a schematic diagram of a method for obtaining smoke region Asmoke according to an embodiment of the present application;
fig. 7 is a block diagram of a rotational speed adjusting device of a range hood according to an embodiment of the present application.
Detailed Description
The present application describes embodiments, but the description is illustrative rather than limiting 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 embodiments described herein. 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 instead of any other feature or element in any other embodiment, unless expressly limited otherwise.
The present application includes and contemplates combinations of features and elements known to those of ordinary skill in the art. The embodiments, features and elements disclosed in this application may also be combined with any conventional features or elements to form a unique inventive concept as defined by the claims. Any feature or element of any embodiment may also be combined with features or elements from other inventive aspects to form yet another unique inventive aspect, as defined by the claims. Thus, it should be understood that any of the features shown and/or discussed in this application may be implemented alone or in any suitable combination. Accordingly, the embodiments are not limited except as by the appended claims and their equivalents. Furthermore, various modifications and changes may be made within the scope of the appended claims.
Further, 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 orders of steps are possible as will be understood by those of ordinary skill in the art. Therefore, the particular order of the steps set forth in the specification should not be construed as limitations on the claims. Further, 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 method for adjusting the rotating speed of a range hood, wherein the range hood can comprise an image acquisition device, as shown in fig. 1, the method can comprise steps of S101-S103:
s101, acquiring an image of an area where cooking equipment is located in the cooking process through the image acquisition device.
In the exemplary embodiment of the application, the influence of vision under the illumination of the open environment can be overcome by solving the light and shadow interference, so that the vision scheme really falls to the ground in the field of the rotation speed adjustment of the range hood. In consideration of the universality of the algorithm, the algorithm which is low in computing resource consumption, based on image processing and free of additional hardware and can accurately eliminate the light and shadow interference is provided, the smoke identification accuracy based on vision can be ensured, and the user experience is improved. The range hood rotating speed adjusting method for eliminating the light and shadow interference in the embodiment of the application can play an increasingly wide role in the field of range hood rotating speed adjustment.
In an exemplary embodiment of the application, a video stream I acquired by a visible light camera may be input into a preset computing device, then frame extraction is performed on the input video stream I, graying and resolution conversion are performed to obtain a video frame Inresize, a suspected area a0 of a cooking device (for example, a pot) is found by using Hough transformation, corrosion expansion is performed on the suspected area a0 of the cooking device, area and aspect ratio determination is performed, a final area Afinal of the cooking device is generated, gaussian smoothing filtering is performed on the final area Afinal of the cooking device, frame difference processing is performed on UV channels in the final area Afinal of the cooking device, a smoke area Asmoke is detected, and finally real-time smoke amount information is output according to statistical calculation of smoke amount in the smoke area Asmoke, so as to achieve the purpose of smoke detection of a smoke machine for eliminating light and shadow interference, and ensure that the smoke machine can automatically and accurately discharge smoke at a proper gear, noise and power are reduced.
In an exemplary embodiment of the present application, a video stream I acquired by a visible light camera may be input into a local-end computing device, and a signal format in this embodiment may be selected as YUV _ NV 12; the YUV _ NV12 may be in 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 acquiring the final area Afinal of the cooking device in the image according to the area where the cooking device 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 frame extracting the video stream I to obtain a video frame Inresize, and the image processing the video frame Inresize to obtain the suspected area a0 of the cooking device may include:
extracting a video frame In from a video stream I, and carrying out graying and resolution scaling processing on the video frame In to obtain a processed video frame Inresize;
and carrying out Hough transformation on the video frame Inresize to obtain a geometric figure area serving as a suspected area 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, graying and resolution scaling processing may be performed on a video frame In to obtain a processed video frame Inresize, a geometry, for example, a circle, is found by using Hough transform to generate a suspected area a0 of the cooking device, a 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 device.
In an exemplary embodiment of the present application, the graying and resolution scaling the video frame In to obtain the processed video frame Inresize may include:
extracting a Y channel In the video frame In as a grayed image Iny;
and scaling the length and the width of the grayed image Iny according to a preset scaling ratio to obtain the video frame Inresize.
In the exemplary embodiment of the present application, the video stream I is input sequence video data, so the video frame In needs to be extracted for subsequent calculation.
In the exemplary embodiment of the present application, since the selected video format is YUV _ NV12, detection of the cooking device region is required, and the Y channel In the video frame In can be extracted as the grayed-out image Iny. Wherein, the Y channel is a channel of the video with YUV _ NV12 video format.
In the exemplary embodiment of the present application, since real-time operation is required on the local computing device for smoke identification, and smoke detail information does not need large resolution to be processed, resolution scaling processing (mainly referred to as scaling processing) may be performed on video frames, and the resolution of video output by the visible light camera generally used includes, but is not limited to, 800 × 600, 1280 × 960, etc., in this embodiment, the resolution of video may be selected to be 1280 × 960, and for convenience of calculation, the length and width of output video may be respectively scaled to 1/4 times, 320 × 240.
In an exemplary embodiment of the present application, the geometric figure may include a circle.
In an exemplary embodiment of the present application, the Hough transforming the video frame Inresize to obtain a geometric area as a suspected area a0 of the cooking apparatus may include:
performing edge detection on the scaled grayed image Iny to determine boundary points to be subjected to Hough transformation;
establishing an accumulation array list of a parameter space;
determining the value ranges of a circular abscissa a, a circular ordinate b and a circular radius r, and determining the discrete increment of the abscissa a and the circular radius r;
traversing the pixel coordinates of the gray-scale image Iny, and sequentially calculating corresponding radiuses r in the value ranges of the abscissa a and the ordinate b;
storing the result of each calculation in the accumulation array list;
finding out the maximum value of the counts in the accumulated array list as the center and radius of the circle in the grayed image Iny, and obtaining a suspected area A0 of the circular cooking device according to the center coordinates (a, b) and radius r of the circle.
In an exemplary embodiment of the present application, the acquiring the final area Afinal of the cooking device according to the suspected area a0 may include:
calculating the vertex angle coordinates of a circumscribed rectangle of the suspected area A0;
calculating the product of the width and the height of the circumscribed rectangle according to 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 greater than the preset area threshold L0, and the aspect ratio K is greater than the preset ratio threshold K0, the final area Afinal is obtained.
In an exemplary embodiment of the application, the bounding rectangular area L and the aspect ratio K of the cooking device are calculated from the suspected area a0 of the cooking device, and a threshold may be set, the area satisfying suspected area a0 being the final area Afinal of the cooking device.
In an exemplary embodiment of the application, for example, the coordinates of the upper left corner and the lower right corner of the suspected area a0 of the cooking device may be calculated to obtain a circumscribed rectangle, the product of the width and the height of the circumscribed rectangle may be calculated by the coordinates of the upper left corner and the lower right corner to obtain the circumscribed rectangle area L, the ratio of the width and the height of the circumscribed rectangle may be calculated to obtain the aspect ratio K, and when the conditions that the circumscribed rectangle area L is greater than the area threshold L0 and the aspect ratio K is greater than the ratio threshold K0 are satisfied, the final pan area Afinal may be obtained.
In an exemplary embodiment of the present application, after the final area Afinal of the cooking device is determined, the edge area of the cooking device (e.g., the rim edge area) may be color-set (e.g., set to black) to further highlight the area where the cooking device is located.
S103, obtaining smoke quantity information according to the final area Afinal of the cooking equipment.
In an exemplary embodiment of the present application, as shown in fig. 5, the obtaining of the smoke amount information according to the final area Afinal of the cooking apparatus may include S301 to S302:
s301, filtering the final area Afinal, performing smoke detection 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 area Afinal may include:
extracting the final area Afinal from the video frame In to obtain a video frame Ifinal;
and performing Gaussian smoothing filtering on the video frame Ifinal to filter out light noise to obtain a video frame Igauss.
In the exemplary embodiment of the application, gaussian smoothing filtering may be performed on an area inside the cooking device, light interference is primarily filtered, and smoke detection is performed on a UV channel of the area inside the cooking device, so as to obtain a final smoke area Asmoke.
In the exemplary embodiment of the application, a corresponding region of the video frame In may be extracted through the final region Afinal to obtain a processed video frame Ifinal, and the processed video frame Ifinal 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 application, the performing smoke detection on the UV channel of the final area Afinal, and obtaining a smoke area Asmoke according to a 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 and YUV combined multi-color space according to color space and brightness characteristics to respectively obtain smoke regions Au and smoke of U channels and smoke regions Av and smoke of V channels;
and taking the intersection of the smoke areas Au and smoke of the U channel and the smoke areas Av and smoke of the V channel to generate a final smoke area Asmoke.
In the exemplary embodiment of the present application, smoke detection is performed on UV channels in processed video frames Igauss, according to characteristics of gray smoke, green smoke, and brightness in a color space, suspected smoke region division is performed in RGB [ red (R), green (G), blue (B) ], HIS (H defines a wavelength of a color, which is called a hue; S represents a depth of the color, which is called a saturation; I represents intensity or brightness), and YUV combined multi-color space, and then intersection is taken between smoke regions Au, smoke, Av, and smoke generated in U and V channels, respectively, to generate a final smoke region Asmoke, that is: a. thesmoke=Au,smoke∩Av,smoke。
S302, counting and calibrating the number Count of smoke points in the smoke region Asmoke, acquiring the final number Cfinal of the smoke points, and taking the final 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 region Asmoke, and acquiring the final number Cfinal of smoke points may include:
acquiring a weighted average value of pixel gray values of a region Y channel in the cooking equipment, and acquiring a calibration oil smoke coefficient m according to the size of the weighted average value of the pixel gray values;
counting the number of pixel points with the pixel value of 255 in the generated smoke region Asmoke as the number Count of the smoke points in the smoke region Asmoke;
and calibrating the number Count of the smoke points by utilizing the calibrated oil smoke coefficient m to obtain the final number Cfinal of the smoke points.
In the exemplary embodiment of the application, a weighted average value of gray values of pixel points of a Y channel in a cooking device is obtained, a calibration smoke coefficient m is obtained according to the size of the weighted average value of the gray values, smoke quantity statistics is performed on the final smoke region Asmoke generated in the previous step, the number Count of smoke points is obtained, the number Count of smoke points is calibrated by using the calibration smoke coefficient m, the calibrated number Cfinal of smoke points is obtained, then smoke quantity mapping is performed on the number Cfinal of smoke regions, and the smoke quantity mapping is output, so that the purpose of adjusting the rotating speed of a cigarette making machine is achieved.
In an exemplary embodiment of the present application, the smoke amount statistics may be performed on the smoke region Asmoke at first, that is, the number of pixels with a pixel value of 255 in the final smoke region Asmoke is counted to obtain a smoke point number Count, the smoke point number Count is calibrated by using a calibration smoke coefficient m to obtain a calibrated smoke point number Cfinal, and the calibration calculation formula may be as follows: cfinal=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, real-time smoke amount information, namely the number Cfinal of smoke points, is finally output, and a motor of the cigarette making machine is controlled to adjust corresponding gears, so that the aim of adjusting the rotating speed of the cigarette making 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, acquiring the light brightness of the environment where the light sensor is located through the light sensor; judging that light and shadow interference exists when the light brightness does not reach a preset light brightness threshold value; and starting the illuminating lamp.
In the exemplary embodiment of the present application, in order to ensure the reliability of the scheme of the present embodiment, 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, a hand shadow, a slice shadow, a human shadow, a mirror reflection, and the like.
In the exemplary embodiment of the application, because the light and shadow interference can cause the light brightness reduction in the area where the range hood is located and/or the area where the cooking device is located, therefore, the lighting device (such as an illuminating lamp) which can be linked with the range hood can be installed on the range hood or on a wall or a device outside the body of the range hood, so that the light brightness reduced due to the light and shadow interference can be supplemented by the light of the lighting device.
In the exemplary embodiments of the present application, the installation positions, the installation numbers, the layout structures, and the like of the image capturing device, the light sensor, and the lighting apparatus are not limited.
The scheme of the embodiment of the application at least comprises the following advantages:
1. the method for adjusting the rotating speed of the range hood for eliminating the light and shadow interference can be used for processing in real time at a local end, the consumption of computing resources is low, the electric power of the range hood is saved, the noise is reduced, and the user experience is improved.
2. Through smoke detection, the motor of the range hood is controlled, the range hood is adjusted in corresponding rotating speed, smoke noise is reduced, and user experience is improved.
3. Through detecting smog production source-cooking equipment (like the pan), filtering cooking equipment edge region eliminates the environment shadow interference at cooking equipment edge, is favorable to getting rid of the interference that any light reflection and object shadow at cooking equipment edge brought to vision treatment, and furthest reduces the interference region for smog volume discernment is more accurate, promotes smog detection accuracy.
4. Shadow generated by area mirror reflection, strong light and other light source irradiation in cooking equipment is weakened and eliminated, shadow noise is primarily filtered through Gaussian smooth filtering, a smoke area is detected in a UV channel by using a frame difference method, and influence of shadow change on an area in a pot is filtered.
5. The brightness statistics is carried out on the gray value of the Y channel in the cooking equipment, the calibration oil smoke coefficient is obtained by utilizing the average brightness of the Y channel, the coefficient calibration is carried out on the whole brightness change caused by light and shadow interference in the pot inner area, the smoke quantity identification accuracy is improved, the accurate adjustment of the rotating speed of the range hood is realized, and the range hood can automatically and timely remove oil smoke at a proper gear.
6. The rotating speed of the range hood is adjusted in real time, so that the electric power is saved, and the range hood is energy-saving and environment-friendly.
7. Compare traditional particulate matter sensor class oil smoke and detect, this embodiment algorithm can be handled in the smog production and the people have the instant of smog perception, and is more directly perceived, accords with the perception of human to smog, can be fine reflects the oil smoke environment.
The application further provides a range hood rotation speed adjusting device 1, as shown in fig. 7, which may include a processor 11 and a computer-readable storage medium 12, where instructions are stored in the computer-readable storage medium 12, and when the instructions are executed by the processor 11, the range hood rotation speed adjusting method described in any one of the above is implemented.
It will be understood by those of ordinary skill in the art that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between 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 by several physical components in cooperation. 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 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 is well known to those of ordinary skill 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 accessed by a computer. In addition, 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 as known to those skilled in the art.
Claims (10)
1. A method for adjusting the rotating speed of a 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 the 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.
2. The range hood rotation speed adjustment method according to claim 1, wherein the step of obtaining the final area Afinal of the cooking equipment in the image according to the image of the area where the cooking equipment is located comprises:
acquiring a video stream I of an area where cooking equipment is located;
performing frame extraction on the video stream I to obtain a video frame Inresize, performing 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 of the smoke amount information according to the final area Afinal of the cooking apparatus comprises:
filtering the final area Afinal, performing smoke detection 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, acquiring the final number Cfinal of smoke points, and taking the final number Cfinal of smoke points as smoke amount information.
4. The range hood speed adjusting method according to claim 2, wherein the extracting the video stream I to obtain a video frame Inresize, and the processing the video frame Inresize 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 processing on the video frame In to obtain a processed video frame Inresize;
and carrying out Hough transformation on the video frame Inresize to obtain a geometric figure area serving as a suspected area A0 of the cooking equipment.
5. The method for adjusting the rotating speed of the range hood according to claim 4, wherein the graying and resolution scaling the video frame In to obtain the processed video frame Inresize comprises:
extracting a Y channel In the video frame In as a grayed image Iny;
scaling the length and width of the grayed image Iny according to a preset scaling ratio to obtain the video frame Inresize;
the geometric figure comprises a circle;
the step of performing Hough transformation on the video frame Inresize to obtain a geometric figure area as a suspected area A0 of the cooking device comprises the following steps:
performing edge detection on the scaled grayed image Iny to determine boundary points to be subjected to Hough transformation;
establishing an accumulation array list of a parameter space;
determining the value ranges of a circular abscissa a, a circular ordinate b and a circular radius r, and determining the discrete increment of the abscissa a and the circular radius r;
traversing the pixel coordinates of the gray-scale image Iny, and sequentially calculating corresponding radiuses r in the value ranges of the abscissa a and the ordinate b;
storing the result of each calculation in the accumulation array list;
finding out the maximum value of the counts in the accumulated array list as the center and radius of the circle in the grayed image Iny, and obtaining a suspected area A0 of the circular cooking device according to the center coordinates (a, b) and radius r of the circle.
6. The range hood speed adjustment method of claim 2, wherein the obtaining of the final area Afinal of the cooking device according to the suspected area A0 comprises:
calculating the vertex angle coordinates of a circumscribed rectangle of the suspected area A0;
calculating the product of the width and the height of the circumscribed rectangle according to 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 greater than the preset area threshold L0, and the aspect ratio K is greater than the preset ratio threshold K0, the final area Afinal is obtained.
7. The range hood speed adjustment method of claim 3, wherein the filtering the final area Afinal comprises:
extracting the final area Afinal from the video frame In to obtain a video frame Ifinal;
performing Gaussian smoothing filtering on the video frame Ifinal to filter out light noise and obtain a video frame Igauss;
the step of performing smoke detection on the UV channel of the final area Afinal, and obtaining a smoke area Asmoke according to a smoke detection result includes:
respectively carrying out smoke detection on UV channels in the video frame Igauss, and carrying out suspected smoke region division in RGB, HIS and YUV combined multi-color space according to color space and brightness characteristics to respectively obtain smoke regions Au and smoke of U channels and smoke regions Av and smoke of V channels;
and taking the intersection of the smoke areas Au and smoke of the U channel and the smoke areas Av and smoke of the V channel to generate a final smoke area Asmoke.
8. The method for adjusting the rotating speed of the range hood according to claim 3, wherein the step of counting and calibrating the number Count of smoke points in the smoke region Asmoke to obtain the final number Cfinal of smoke points comprises:
acquiring a weighted average value of pixel gray values of a region Y channel in the cooking equipment, and acquiring a calibration oil smoke coefficient m according to the size of the weighted average value of the pixel gray values;
counting the number of pixel points with the pixel value of 255 in the generated smoke region Asmoke as the number Count of the smoke points in the smoke region Asmoke;
and calibrating the number Count of the smoke points by utilizing the calibrated oil smoke coefficient m to obtain the final number Cfinal of the smoke points.
9. The method for adjusting the rotating speed of the range hood according to any one of claims 1 to 8, wherein the range hood further comprises a light sensor and an illuminating lamp, and the method further comprises: after the range hood is started, acquiring the light brightness of the environment where the light sensor is located through the light sensor; judging that light and shadow interference exists when the light brightness does not reach a preset light brightness threshold value; and starting the illuminating lamp.
10. A range hood rotation speed adjusting device, comprising a processor and a computer-readable storage medium, wherein the computer-readable storage medium has instructions stored therein, and when the instructions are executed by the processor, the range hood rotation speed adjusting device implements the range hood rotation speed adjusting method according to any one of claims 1 to 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 true CN111428714A (en) | 2020-07-17 |
CN111428714B 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) |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
---|
林成忠 等: "基于稠密光流和边缘特征的烟雾检测算法" * |
Also Published As
Publication number | Publication date |
---|---|
CN111428714B (en) | 2023-10-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108921176A (en) | A kind of pointer instrument positioning and recognition methods based on machine vision | |
CN111968144B (en) | Image edge point acquisition method and device | |
CN110378946B (en) | Depth map processing method and device and electronic equipment | |
WO2022252242A1 (en) | Multispectral image-based water pollution area identification method and system | |
CN106454014B (en) | A kind of method and device improving backlight scene vehicle snapshot picture quality | |
CN112381848B (en) | Anti-interference method of instrument visual reading on-line monitoring system in complex environment | |
CN112730251B (en) | Device and method for detecting screen color defects | |
CN111368785A (en) | Camera shielding judgment method, device, equipment and storage medium | |
CN109883907B (en) | Cooking smoke detection method based on image and intelligent range hood | |
CN113306486A (en) | In-vehicle lighting device control method, storage medium, and electronic apparatus | |
CN111123538B (en) | Image processing method and method for adjusting diffraction screen structure based on point spread function | |
CN114998311A (en) | Part precision detection method based on homomorphic filtering | |
CN110486761B (en) | Smoke control method of range hood and range hood | |
CN107016343A (en) | A kind of traffic lights method for quickly identifying based on Bel's format-pattern | |
CN111428714A (en) | Method and device for adjusting rotating speed of range hood | |
CN110020999B (en) | Uncooled infrared thermal image self-adaptive mapping method based on homomorphic filtering | |
CN111192332B (en) | Smoke detection-based smoke machine control method and smoke machine | |
CN111783900A (en) | Training method of oil smoke concentration detection model and control method of range hood gear | |
CN116310889A (en) | Unmanned aerial vehicle environment perception data processing method, control terminal and storage medium | |
CN112800818B (en) | Range hood and smoke identification method thereof | |
Xu et al. | Computer assistance image processing spores counting | |
CN111062887B (en) | Image definition judging method based on improved Retinex algorithm | |
JP2022145612A (en) | Projection system and image projection method | |
CN107450884A (en) | Application program management platform based on image recognition | |
CN108801599B (en) | Matrix type LED car lamp detection method and device |
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 |