Oil fume suction method and device of target range hood, electronic equipment and storage medium
By segmenting the oil fume image in the range hood and calculating the pixel value, determining the direction and content of the oil fume, and controlling the suction device and the diversion device, the problem of insufficient intelligent adjustment of the range hood in the existing technology is solved, and precise extraction and energy consumption optimization are achieved.
Patent Information
- Application Number
- CN202510268122.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-07
- Publication Date
- 2025-06-06
AI Technical Summary
Existing range hoods lack intelligent adjustment in their smoke prevention design and are unable to accurately determine the direction of smoke escape, resulting in low extraction efficiency and high energy consumption.
The oil fume image is acquired through the image acquisition device, divided into multiple sub-images, the pixel value and oil fume content of each sub-image are calculated, the target sub-image is determined by sorting, and the smoking device and the diversion device are controlled to accurately absorb the oil fume according to the direction and content.
It achieves accurate judgment of the direction of oil fume escape, improves the accuracy and efficiency of oil fume extraction, reduces energy consumption, and adapts to different cooking scenarios.
Smart Images

Figure CN120101196A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of range hoods, and in particular to a method, device, electronic device and storage medium for extracting oil fumes from a target range hood. Background Art
[0002] Traditional range hoods often have anti-smoke escape designs that increase the wind pressure and suction of the range hood by switching gears, thereby eliminating smoke escape. In recent years, through continuous innovative design, various sensors have been added to the product, such as cameras and smoke sensors, to detect the size of the oil smoke, and then automatically switch gears to prevent smoke escape. In addition, some designs use additional smoke collection areas on the front or side to expand the area of the range hood that absorbs oil smoke, thereby avoiding smoke escape problems.
[0003] The existing control method and structure of the range hood to prevent smoke leakage have the problem of simply controlling the gear switching. For example, when the smoke leakage is detected, it switches to a high gear to increase the suction force, which cannot achieve efficient and intelligent adjustment. Secondly, the method of increasing the smoke collection area on the front or side is clumsy and rough, especially on the front, which will affect the field of vision when cooking. Moreover, this structural design has limited effect in eliminating smoke leakage when the smoke is large. Summary of the invention
[0004] The present application provides a method, device, electronic device and storage medium for extracting oil fume from a target range hood, which can accurately determine the direction in which oil fume escapes and improve the accuracy of the target range hood in extracting oil fume from the area around the air intake port.
[0005] In one aspect, the present application provides a method for extracting oil smoke from a target range hood, the method comprising:
[0006] During the operation of the target range hood, an oil fume image captured by an image acquisition device on the outer surface of the target range hood is acquired, and the oil fume image is divided into a plurality of sub-images according to the flow direction of the oil fume; the oil fume image is an image of the area around the air inlet of the target range hood;
[0007] For each of the sub-images, obtaining pixel values of all pixels corresponding to the sub-image;
[0008] Calculating the oil smoke content value corresponding to the sub-image based on the pixel values of all pixels corresponding to the sub-image;
[0009] Sorting all the oil smoke content values to obtain a current sorting result;
[0010] Determine a target sub-image according to the current sorting result; the target fume content value corresponding to the target sub-image is greater than the fume content value corresponding to the remaining sub-images; the remaining sub-images are sub-images other than the target sub-image among the multiple sub-images;
[0011] The target smoking device is controlled to absorb the oil smoke in the target direction corresponding to the target sub-image into the air intake port; the target smoking device is the smoking device on the target range hood corresponding to the target direction.
[0012] In an exemplary embodiment, during the operation of the target range hood, before acquiring the oil fume image acquired by the image acquisition device on the outer surface of the target range hood and dividing the oil fume image into a plurality of sub-images according to the oil fume flow direction, the method further includes:
[0013] In response to a fume detection request, acquiring an image of the range hood in the area around the air intake port acquired by the image acquisition device;
[0014] The range hood image is screened to obtain a target area in the range hood image; the target area is an area in the range hood image close to the air inlet;
[0015] Obtaining pixel values of all pixels corresponding to the target area;
[0016] Calculating an initial oil smoke content value corresponding to the target area based on pixel values of all pixels corresponding to the target area;
[0017] If the initial oil smoke content value is greater than a first preset threshold, it is determined that there is oil smoke in the target area, and the range hood image is determined as the oil smoke image.
[0018] In an exemplary embodiment, after determining the target sub-image according to the current sorting result, the method further includes:
[0019] If the target oil fume content value is greater than the first preset threshold value, and the target oil fume content value is less than or equal to the second preset threshold value, the target diversion device is controlled to guide the oil fume in the target direction to flow toward the air intake port; the target diversion device is a diversion device on the target range hood corresponding to the target direction; the second preset threshold value is greater than the first preset threshold value.
[0020] In an exemplary embodiment, the controlling the target smoking device to absorb the oil smoke in the target direction corresponding to the target sub-image into the air suction port includes:
[0021] If the target oil fume content value is greater than the second preset threshold value, and the target oil fume content value is less than the third preset threshold value, the target flow guide device is controlled to guide the oil fume in the target direction to flow toward the air intake port, and the target suction device is controlled to absorb the oil fume in the target direction into the air intake port at the first preset gear; the third preset threshold value is greater than the second preset threshold value;
[0022] If the target oil fume content value is greater than or equal to the third preset threshold value, and the target oil fume content value is less than the fourth preset threshold value, the target flow guide device is controlled to guide the oil fume in the target direction to flow toward the air intake port, and the target suction device is controlled to absorb the oil fume in the target direction into the air intake port at the second preset gear; the fourth preset threshold value is greater than the third preset threshold value; the second preset gear is greater than the first preset gear;
[0023] If the target oil fume content value is greater than or equal to the fourth preset threshold value, the target diversion device is controlled to guide the oil fume in the target direction to flow toward the air intake port, and the target smoking device is controlled to absorb the oil fume in the target direction into the air intake port at a third preset gear; the third preset gear is greater than the second preset gear.
[0024] In an exemplary embodiment, after the target smoking device is controlled to absorb the oil smoke in the target direction corresponding to the target sub-image into the air suction port, the method further includes:
[0025] Acquire a real-time range hood image of the area around the air inlet acquired by the image acquisition device;
[0026] The real-time range hood image is filtered to obtain a real-time target area in the real-time range hood image; the real-time target area is an area in the real-time range hood image close to the air inlet;
[0027] Acquire real-time pixel values of all pixels corresponding to the real-time target area;
[0028] Calculating a real-time oil smoke content value corresponding to the real-time target area based on the real-time pixel values of all pixels corresponding to the real-time target area;
[0029] If the real-time oil smoke content value is less than or equal to the first preset threshold, the target smoking device is controlled to stop working.
[0030] In an exemplary embodiment, if the initial oil smoke content value is greater than a first preset threshold, it is determined that there is oil smoke in the target area, and before the range hood image is determined as the oil smoke image, the method further includes:
[0031] Acquire a device identification threshold group relationship library; the device identification threshold group relationship library includes a correspondence between a preset device identification of a range hood and a preset threshold group;
[0032] Obtaining a target device identifier corresponding to the target range hood;
[0033] The preset threshold group matching the target device identifier is searched in the device identifier threshold group relationship library to obtain a target preset threshold group; the target preset threshold group includes the first preset threshold, the second preset threshold, the third preset threshold and the fourth preset threshold.
[0034] In an exemplary embodiment, the calculating the oil smoke content value corresponding to the sub-image based on the pixel values of all pixels corresponding to the sub-image includes:
[0035] Based on the pixel values of all pixels corresponding to the sub-image, an average value of all pixels corresponding to the sub-image is calculated, and a pixel mean value corresponding to the sub-image is obtained;
[0036] The oil smoke content value corresponding to the sub-image is determined according to the pixel values of all pixels corresponding to the sub-image and the average value of the pixels corresponding to the sub-image.
[0037] On the other hand, a target fume extraction device for a range hood is provided, the device comprising:
[0038] An image segmentation module is used to obtain the oil fume image collected by the image acquisition device on the outer surface of the target range hood during its operation, and to segment the oil fume image into a plurality of sub-images according to the flow direction of the oil fume; the oil fume image is an image of the area around the air inlet of the target range hood;
[0039] A pixel value acquisition module, used for acquiring, for each of the sub-images, pixel values of all pixels corresponding to the sub-image;
[0040] an oil fume content value determination module, configured to calculate an oil fume content value corresponding to the sub-image based on pixel values of all pixels corresponding to the sub-image;
[0041] A current sorting result determination module is used to sort all the oil smoke content values to obtain a current sorting result;
[0042] A target sub-image determination module is used to determine a target sub-image according to the current sorting result; the target fume content value corresponding to the target sub-image is greater than the fume content value corresponding to the remaining sub-images; the remaining sub-images are sub-images other than the target sub-image among the multiple sub-images;
[0043] The oil fume suction module is used to control the target smoking device to suck the oil fume in the target direction corresponding to the target sub-image into the air suction port; the target smoking device is the smoking device on the target range hood corresponding to the target direction.
[0044] On the other hand, an electronic device is provided, which includes a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or at least one program is loaded by the processor and executes the oil fume extraction method of the target range hood as described above.
[0045] On the other hand, a computer-readable storage medium is provided, in which at least one instruction or at least one program is stored, and the at least one instruction or at least one program is loaded and executed by a processor to implement the oil fume extraction method of the target range hood as described above.
[0046] On the other hand, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes to implement the above-mentioned method for extracting oil smoke from a target range hood.
[0047] The present application provides a method, device, electronic device and storage medium for extracting oil fume from a target range hood, which have the following technical effects: during the operation of the target range hood, the present application obtains an oil fume image collected by an image acquisition device on the outer surface of the target range hood, and divides the oil fume image into multiple sub-images according to the direction of oil fume flow; the oil fume image is an image of the area around the air intake port of the target range hood; for each of the sub-images, the pixel values of all pixels corresponding to the sub-image are obtained; based on the pixel values of all pixels corresponding to the sub-image, the oil fume content value corresponding to the sub-image is calculated; all the oil fume content values are sorted to obtain a current sorting result; based on the current sorting result, a target sub-image is determined; the target oil fume content value corresponding to the target sub-image is greater than the oil fume content value corresponding to the remaining sub-images; the remaining sub-images are sub-images other than the target sub-image among the multiple sub-images; the target extraction device is controlled to extract the oil fume in the target direction corresponding to the target sub-image into the inside of the air intake port; the target extraction device is a extraction device on the target range hood corresponding to the target direction. By acquiring an oil fume image during the operation of a target range hood and dividing the oil fume image into multiple sub-images, it is helpful to distinguish the escape direction of the oil fume; acquiring the pixel values of all pixels in each sub-image, and determining the oil fume content value corresponding to each sub-image based on the pixel value, and sorting all the oil fume content values, and determining the target sub-image according to the sorting result, it is possible to accurately judge the escape direction of the oil fume outside the target range hood, and improve the accuracy and reliability of the oil fume escape direction detection result; and after determining the target sub-image, controlling the target smoking device to absorb the oil fume in the target direction, avoiding waste of resources, reducing energy consumption, and improving the accuracy of the target range hood in absorbing the oil fume in the area around the air intake port. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the technical solutions and advantages of the embodiments of this specification or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0049] Figure 1 It is a flow chart of a method for extracting oil smoke from a target range hood provided in an embodiment of this specification;
[0050] Figure 2 is a schematic diagram of the structure of an image acquisition device provided in an embodiment of this specification;
[0051] Figure 3 It is a flowchart of a method for determining a fume image provided by an embodiment of this specification;
[0052] Figure 4 is a schematic diagram of a target area provided in an embodiment of this specification;
[0053] Figure 5 is a schematic diagram of the relationship between the pixel variance value and time corresponding to the target area provided in the embodiment of this specification;
[0054] Figure 6 It is a flowchart of a method for determining a target preset threshold group provided in an embodiment of this specification;
[0055] Figure 7 is a schematic diagram of a sub-image provided in an embodiment of this specification;
[0056] Figure 8 It is a structural schematic diagram of a flow guide device and a smoking device provided in an embodiment of this specification;
[0057] Fig. 9 is a flow chart of a method for extracting oil smoke with different target oil smoke content values provided in an embodiment of this specification;
[0058] Fig.10 It is a flow chart of a method for stopping the target smoking device from absorbing oil smoke provided in an embodiment of this specification;
[0059] Fig.11 It is a structural schematic diagram of the oil fume suction device of the target range hood provided in the embodiment of this specification.
[0060] Fig.12 It is a structural schematic diagram of a server of a target range hood oil fume extraction method provided in an embodiment of this specification. DETAILED DESCRIPTION
[0061] The following will be combined with the drawings in the embodiments of this specification to clearly and completely describe the technical solutions in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0062] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or server that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0063] The following describes a method for extracting oil smoke from a range hood of the present application. Figure 1 It is a flow chart of a method for extracting oil fumes from a target range hood provided in an embodiment of this specification. This specification provides method operation steps as described in the embodiment or flow chart, but may include more or fewer operation steps based on conventional or non-creative labor. The sequence of steps listed in the embodiment is only one way of executing the steps among many sequences, and does not represent the only execution sequence. When the actual system or server product is executed, it can be executed in sequence or in parallel (for example, in a parallel processor or multi-threaded processing environment) according to the method sequence shown in the embodiment or the accompanying drawings. Specifically, Figure 1 As shown, the method can be applied to a control unit in a target range hood, and the method comprises:
[0064] S101: During the operation of a target range hood, an oil fume image captured by an image acquisition device on the outer surface of the target range hood is obtained, and the oil fume image is divided into a plurality of sub-images according to the flow direction of the oil fume; the oil fume image is an image of the area around the air intake port of the target range hood.
[0065] In the embodiments of this specification, the image acquisition device may include a camera and an infrared laser, such as Figure 2 As shown, Figure 2This is a schematic diagram of the structure of the image acquisition device provided in the embodiment of this specification. In the figure, 201 is a camera, and 202 is an infrared laser. The camera can be installed on the front side of the flue outside the target range hood. The infrared laser can be installed in the lower left corner or lower right corner of the front panel of the target range hood. The figure shows only one possibility. The laser emitted by the infrared laser is a line laser, which is invisible to the naked eye. The intensity of the laser beam is sufficient and uniform. Therefore, no matter when the infrared laser is installed in the lower left corner or lower right corner of the front panel, every place in the photo taken by the camera can be seen, and the setting of the infrared laser can enhance the camera's ability to capture oil fume particles. Line C in the figure is the direction of the infrared laser beam when the infrared laser is located at the lower left corner of the front panel of the target range hood. Line A and Line B in the figure are the boundary lines of the range of the range hood image of the target range hood captured by the camera. The image acquisition device captures the oil fume image of the area around the air intake port of the target range hood, and then the control unit in the target range hood acquires the oil fume image; wherein, the image acquisition device actually acquires the range hood image of the area around the air intake port of the target range hood, and the acquisition point on the left side in the horizontal direction is Figure 2 The intersection of line A and the front panel of the range hood, the collection point on the right is Figure 2 The intersection of the middle B line and the front panel of the range hood is determined as a fume image when it is determined that there is fume in the range hood image. After acquiring the fume image, the fume image can be divided into multiple sub-images according to the flow direction of the fume. For example, the fume image can be equally divided along the central axis of the fume image to obtain two sub-images, one for representing the left side of the fume image, and the other for representing the right side of the fume image.
[0066] In the embodiment of the present specification, during the operation of the target range hood, the oil fume image captured by the image acquisition device on the outer surface of the target range hood is acquired, and before the oil fume image is divided into a plurality of sub-images according to the oil fume flow direction, as follows Figure 3 As shown, Figure 3 is a flow chart of a method for determining a fume image provided by an embodiment of this specification, the method further comprising:
[0067] S301: In response to a fume detection request, an image of the range hood in the area around the air intake port captured by the image acquisition device is acquired.
[0068] In the embodiment of the present specification, during the operation of the target range hood, the control unit in the target range hood receives a fume detection request, thereby continuously detecting the fume in the area around the air inlet of the target range hood; the control unit in the target range hood obtains the range hood image of the area around the air inlet of the target range hood, that is, the area around the air inlet of the target range hood in the horizontal direction. Figure 2 The intersection of line A and the front panel of the range hood is the starting point, and the right side is Figure 2The intersection of the middle B line and the front panel of the range hood is the end point, and the image of the area around the air intake port of the target range hood is collected.
[0069] S302: Filtering the range hood image to obtain a target area in the range hood image; the target area is an area in the range hood image close to the air intake port.
[0070] In the embodiment of this specification, the target area is a specific area set on the front of the target range hood. Specifically, the target area is an area near the air inlet of the target range hood in the range hood image, such as Figure 4 As shown, Figure 4 A schematic diagram of a target area provided in an embodiment of this specification, Figure 4 The white area in the middle is oil smoke, 401 is the range hood image, and 402 is the target area. During the operation of the target range hood, the oil smoke generated will rise from the cooking area and flow to the air intake port, so the oil smoke in the target area will be more concentrated, which enhances the reliability of the process of determining whether there is oil smoke in the range hood image by detecting whether there is oil smoke in the target area.
[0071] S303: Obtain pixel values of all pixels corresponding to the target area.
[0072] In the embodiment of the present specification, the pixel values of all pixels in the target area are obtained so as to subsequently calculate the pixel variance value corresponding to the target area, thereby determining whether there is oil smoke in the range hood image.
[0073] S304: Calculating an initial oil smoke content value corresponding to the target area based on pixel values of all pixels corresponding to the target area.
[0074] In the embodiment of the present specification, the pixel variance value corresponding to the target area is calculated based on the pixel values of all pixels corresponding to the acquired target area, and because the fume particles scatter light when suspended in the air, the brightness and contrast of the range hood image will change locally. This scattering effect will make the pixel value distribution in the range hood image more uneven, and the pixel variance value in the range hood image will increase with the increase of fume concentration. Therefore, the pixel variance value corresponding to the target area can represent the initial fume content value corresponding to the target area.
[0075] S305: If the initial oil smoke content value is greater than a first preset threshold, it is determined that there is oil smoke in the target area, and the range hood image is determined as the oil smoke image.
[0076] In the embodiment of the present specification, the first preset threshold is a threshold value pre-set to define whether there is oil smoke in the area around the air intake port of the target range hood, and different first preset threshold values are set for range hoods with different device identifiers; since the target area is close to the air intake port of the target range hood, when the initial oil smoke content value is greater than the first preset threshold value, that is, when there is oil smoke in the target area, it can be determined that there is oil smoke in the range hood image, and the range hood image is determined as an oil smoke image. For example, Figure 5 As shown, Figure 5 A schematic diagram of the relationship between the pixel variance value and time corresponding to the target area provided in the embodiment of this specification, Figure 5 The horizontal axis represents the pixel variance value corresponding to the target area. Figure 5 The ordinate represents time, wherein the stove head of the target range hood may be provided with an atomizer for simulating oil smoke. Figure 5 Point A is the time to open the atomizer. Figure 5 It can be seen that when the atomizer is turned on, the cooking area corresponding to the target range hood generates oil smoke, which gradually flows to the air intake port of the target range hood. As time goes by, the pixel variance value corresponding to the target area gradually increases, that is, the initial oil smoke content value corresponding to the target area gradually increases, and it can be determined that there is oil smoke in the range hood image at this time. By screening out the target area in the range hood image, the reliability of the judgment result of whether there is oil smoke in the range hood image is improved; and by calculating the pixel variance value corresponding to the target area to determine the initial oil smoke content value of the target area, it is judged whether there is oil smoke in the range hood image, so as to perform subsequent processing to absorb the oil smoke, thereby improving the accuracy of detecting whether there is oil smoke in the range hood image and the efficiency of the target range hood in absorbing oil smoke.
[0077] In the embodiment of the present specification, if the initial oil smoke content value is greater than the first preset threshold value, it is determined that there is oil smoke in the target area, and before the range hood image is determined as the oil smoke image, Figure 6 As shown, Figure 6 is a flow chart of a method for determining a target preset threshold group provided in an embodiment of this specification, wherein the method further comprises:
[0078] S601: Acquire a device identification threshold group relationship library; the device identification threshold group relationship library includes the correspondence between the device identification of the preset range hood and the preset threshold group.
[0079] In the embodiments of the present specification, the device identification threshold value group relationship library may be in the form of a formula, a table or other forms, and all include the correspondence between the device identification of the preset range hood and the preset threshold value group. The preset range hood may include a range hood with a single-burner gas stove and a range hood with a double-burner gas stove. The range hood with a single-burner gas stove corresponds to the preset device identification A, and the preset device identification A corresponds to the first preset threshold value group in the device identification threshold value group relationship library; the range hood with a double-burner gas stove corresponds to the preset device identification B, and the preset device identification B corresponds to the second preset threshold value group in the device identification threshold value group relationship library.
[0080] S602: Obtain a target device identifier corresponding to the target range hood.
[0081] In the embodiment of this specification, it is assumed that the target range hood is a range hood with a single-burner gas stove, and the target device identifier A of the target range hood is obtained.
[0082] S603: Query the preset threshold group matching the target device identifier in the device identifier threshold group relationship library to obtain a target preset threshold group; the target preset threshold group includes the first preset threshold, the second preset threshold, the third preset threshold and the fourth preset threshold.
[0083] In the embodiment of the present specification, if the device identification threshold value group relationship library is a formula, the target device identification A is substituted into the device identification threshold value group relationship library to obtain the target preset threshold value group, i.e., the first preset threshold value group; if the device identification threshold value group relationship library is a table, the target device identification A is substituted into the device identification threshold value group relationship library to find the corresponding target preset threshold value group in the device identification threshold value group relationship library, i.e., the first preset threshold value group; and the target preset threshold value group includes the first preset threshold value, the second preset threshold value, the third preset threshold value, and the fourth preset threshold value. By setting different preset threshold value groups for preset range hoods with different device identifications, the accuracy of the detection results of the oil fume content in the target range hood is improved, ensuring that the target diversion device and the target smoking device are only started when needed, reducing the energy consumption of the target range hood, and improving the efficiency of the target range hood in absorbing oil fume and the energy utilization efficiency.
[0084] S103: For each of the sub-images, obtain pixel values of all pixels corresponding to the sub-image.
[0085] In the embodiments of the present specification, for each sub-image, the pixel values of all pixels in each sub-image are obtained. For example, when the oil fume image is equally divided along the central axis of the oil fume image, that is, the oil fume flows only to the left or right side, two sub-images are obtained, and the pixel values of all pixels in the two sub-images on the left and right sides are respectively obtained.
[0086] S105: Calculating the oil smoke content value corresponding to the sub-image based on the pixel values of all pixels corresponding to the sub-image.
[0087] In the embodiments of the present specification, for each sub-image, a pixel variance value corresponding to each sub-image can be calculated based on the pixel values of all pixels in the sub-image; since oil fume particles scatter light when suspended in the air, causing local changes in the brightness and contrast of the oil fume image, this scattering effect will make the pixel value distribution in the oil fume image more uneven. When the oil fume concentration is high, more oil fume particles will scatter light, resulting in more brightness fluctuations and texture details in the oil fume image. At this time, the pixel variance value will usually increase significantly and fluctuate significantly. When the oil fume concentration is low, the impact of light scattering is small, the pixel value distribution in the oil fume image is relatively uniform, and the pixel variance value will also be low and stable. Therefore, the pixel variance value can characterize the oil fume content value corresponding to the sub-image, that is, the oil fume content value corresponding to the sub-image can be determined based on the pixel values of all pixels corresponding to the sub-image.
[0088] In the embodiment of the present specification, the step of calculating the oil smoke content value corresponding to the sub-image based on the pixel values of all pixels corresponding to the sub-image includes:
[0089] Based on the pixel values of all pixels corresponding to the sub-image, an average value of all pixels corresponding to the sub-image is calculated, and a pixel mean value corresponding to the sub-image is obtained;
[0090] In the embodiments of the present specification, a coordinate system can be established for each sub-image. For example, the center point of each sub-image can be used as the origin, the horizontal direction can be set as the X-axis, and the vertical direction can be set as the Y-axis. Each pixel is represented by the coordinates (x, y), and the pixel values corresponding to all pixels are represented by I(x, y). Based on the pixel values of all pixels in the sub-image, the pixel mean corresponding to the sub-image is calculated.
[0091] The oil smoke content value corresponding to the sub-image is determined according to the pixel values of all pixels corresponding to the sub-image and the average value of the pixels corresponding to the sub-image.
[0092] In the embodiment of the present specification, it is assumed that the sub-image is an image with a width of N and a height of M. Based on the pixel values of all pixels corresponding to the acquired sub-image and the average value of all pixels corresponding to the sub-image, the pixel variance value corresponding to the sub-image can be calculated. Exemplarily, the calculation formula of the pixel variance value is as follows:
[0093]
[0094] Among them, S 2is the pixel variance value corresponding to the sub-image; I(x,y) is the pixel value corresponding to all pixels; is the mean value of pixels corresponding to the sub-image; N is the width of the sub-image; M is the height of the sub-image.
[0095] As the oil fume content increases, the pixel variance value corresponding to the sub-image will also increase, so the pixel variance value corresponding to the sub-image can represent the oil fume content value corresponding to the sub-image. By calculating the pixel variance value corresponding to the sub-image based on the pixel values of all pixels corresponding to the sub-image, the oil fume content value corresponding to the sub-image is determined, and the oil fume content of the area around the air inlet of the target range hood is measured non-contactly, which improves the accuracy of the oil fume content value detection result.
[0096] S107: Sorting all the oil smoke content values to obtain a current sorting result.
[0097] In the embodiment of the present specification, when the oil fume image is segmented according to multiple oil fume flow directions, which may include, for example, oil fume flowing upward, flowing downward, flowing to the left, flowing to the right or other flow directions, the number of sub-images obtained at this time is greater than 2, so all the acquired oil fume content values are sorted, and for example, they can be sorted in order from large to small, and the current sorting result is obtained. Similarly, they can also be sorted in order from small to large; when the oil fume image is segmented only according to the left and right oil fume flow directions, only two sub-images are obtained at this time, such as Figure 7 As shown, Figure 7 A schematic diagram of a sub-image provided in an embodiment of this specification, Figure 7 The white area in the middle is oil smoke, 701 is the left sub-image, and 702 is the right sub-image. At this time, the oil smoke content value corresponding to the left sub-image and the oil smoke content value corresponding to the right sub-image can be directly compared to obtain a comparison result.
[0098] S109: Determine a target sub-image according to the current sorting result; the target fume content value corresponding to the target sub-image is greater than the fume content values corresponding to the remaining sub-images; the remaining sub-images are sub-images other than the target sub-image among the multiple sub-images.
[0099] In an embodiment of the present specification, when the number of sub-images is greater than 2, based on the current sorting result, the sub-image with the largest oil fume content value among all the oil fume content values is determined as the target sub-image. It can be seen that the oil fume content value in the target sub-image is the highest, and it can also be obtained that the oil fume is dissipating in the target direction corresponding to the target sub-image at this time; when the number of sub-images is 2, based on the comparison result, the sub-image with a higher oil fume content value is determined as the target sub-image; at the same time, if there are multiple sub-images corresponding to oil fume content values that are all greater than the first preset threshold, at this time, the diversion device or the smoking device in the corresponding direction can be opened according to the specific oil fume content value to achieve the oil fume absorption in the area around the air intake port.
[0100] In the embodiment of the present specification, after determining the target sub-image according to the current sorting result, the method further includes:
[0101] If the target oil fume content value is greater than the first preset threshold value, and the target oil fume content value is less than or equal to the second preset threshold value, the target diversion device is controlled to guide the oil fume in the target direction to flow toward the air intake port; the target diversion device is a diversion device on the target range hood corresponding to the target direction; the second preset threshold value is greater than the first preset threshold value.
[0102] In the embodiment of the present specification, when the oil smoke image is segmented only according to the left and right oil smoke flow directions, only two sub-images are obtained, namely the left sub-image and the right sub-image. Figure 8 As shown, Figure 8 A schematic diagram of the structure of the guide device and the smoking device provided in the embodiment of this specification, wherein 801 is a guide device, and two guide devices are arranged in the target range hood, one is located on the left side of the target range hood, and the other is located on the right side of the target range hood, and the guide device can be a transparent air guide plate, which can prevent the air guide plates of other colors from blocking the laser emitted by the infrared laser when unfolded, thereby affecting the camera's acquisition of the range hood image. When the target fume content value corresponding to the target sub-image is greater than the first preset threshold value, and less than or equal to the second preset threshold value, it means that the amount of oil fume generated outside the target range hood is small at this time, and it is only necessary to guide the oil fume in the target direction to flow to the air intake port on the target range hood through the target guide device. When the amount of oil fume outside the target range hood is small, only the target guide device is controlled to work to achieve smoke collection without turning on the smoking device, which reduces energy consumption, reduces unnecessary air volume output, improves the oil fume suction efficiency of the target range hood, and realizes the dynamic adjustment of the oil fume suction strategy of the target range hood, so that the control strategy can be applied to a variety of cooking scenarios.
[0103] S111: Control the target smoking device to absorb the oil smoke in the target direction corresponding to the target sub-image into the air intake port; the target smoking device is the smoking device on the target range hood corresponding to the target direction.
[0104] In the embodiment of the present specification, there are multiple smoking devices in the target range hood, and they correspond to the direction of each sub-image; when the oil fume image is segmented only according to the left and right oil fume flow directions, two sub-images are obtained, namely the left sub-image and the right sub-image. At this time, there are smoking devices corresponding to the left sub-image and the right sub-image in the target range hood. After the target sub-image is determined, the target smoking device corresponding to the target direction is determined according to the target direction corresponding to the target sub-image, and the target smoking device is controlled to absorb the oil fume in the target direction into the air intake port, thereby achieving accurate oil fume absorption and improving the efficiency of oil fume absorption of the target range hood.
[0105] In the embodiment of this specification, the target smoking device is controlled to absorb the oil smoke in the target direction corresponding to the target sub-image into the air intake port, such as Fig. 9 As shown, Fig. 9 : is a flow chart of a method for extracting oil smoke with different target oil smoke content values provided in an embodiment of this specification, including:
[0106] S901: If the target oil fume content value is greater than the second preset threshold value, and the target oil fume content value is less than the third preset threshold value, control the target diversion device to guide the oil fume in the target direction to flow toward the air intake port, and control the target smoking device to absorb the oil fume in the target direction into the air intake port at the first preset gear; the third preset threshold value is greater than the second preset threshold value.
[0107] In the embodiment of the present specification, when the oil smoke image is segmented only according to the left and right oil smoke flow directions, only two sub-images are obtained, namely the left sub-image and the right sub-image. Figure 8 As shown, Figure 8 A schematic diagram of the structure of the guide device and the smoking device provided in the embodiments of this specification, wherein 802 is a smoking device, and two smoking devices are arranged in the target range hood, one is located on the left side of the target range hood, and the other is located on the right side of the target range hood, and the smoking device can be a cross-flow fan. When the target oil fume content value is greater than the second preset threshold value and less than the third preset threshold value, there is oil fume in the target direction at this time, but the oil fume diffusion speed is slow and the concentration is strong. Therefore, at this time, the target guide device is controlled to guide the oil fume in the target direction to flow to the air intake port, and the target smoking device is controlled to absorb the oil fume in the target direction into the air intake port at the first preset gear.
[0108] S902: If the target oil fume content value is greater than or equal to the third preset threshold value, and the target oil fume content value is less than the fourth preset threshold value, control the target diversion device to guide the oil fume in the target direction to flow toward the air intake port, and control the target smoking device to absorb the oil fume in the target direction into the air intake port at the second preset gear; the fourth preset threshold value is greater than the third preset threshold value; the second preset gear is greater than the first preset gear.
[0109] In the embodiment of the present specification, when the target oil fume content value is greater than or equal to the third preset threshold value and less than the fourth preset threshold value, there is oil fume in the target direction, and the oil fume diffuses quickly with a certain degree of concentration. Therefore, the target flow guide device is controlled to guide the oil fume in the target direction to flow toward the air intake port, and the target smoking device is controlled to absorb the oil fume in the target direction into the air intake port at the second preset gear.
[0110] S903: If the target oil fume content value is greater than or equal to the fourth preset threshold value, control the target diversion device to guide the oil fume in the target direction to flow toward the air intake port, and control the target smoking device to absorb the oil fume in the target direction into the air intake port at a third preset gear; the third preset gear is greater than the second preset gear.
[0111] In an embodiment of the present specification, when the target oil fume content value is greater than or equal to the fourth preset threshold value, there is oil fume in the target direction, and the oil fume diffuses quickly and is easy to dissipate. Therefore, the target diversion device is controlled to guide the oil fume in the target direction to flow toward the air intake port, and the target smoking device is controlled to absorb the oil fume in the target direction into the air intake port at the third preset gear; at the same time, for preset range hoods with different device identifications, the smoking device of each preset range hood can have a different first preset gear, second preset gear and third preset gear; by formulating different oil fume absorption strategies for different target oil fume content values and selecting a suitable gear to absorb the oil fume outside the target range hood, energy consumption is reduced, and different conditions of target oil fume content values from low to high are effectively responded to, thereby improving the intelligence level of the target range hood.
[0112] In the embodiment of the present specification, after the target smoking device is controlled to absorb the oil smoke in the target direction corresponding to the target sub-image into the air inlet, Fig.10 As shown, Fig.10 : is a flow chart of a method for stopping the target smoking device from absorbing oil smoke provided in an embodiment of this specification, and the method further includes:
[0113] S1001: Acquire a real-time range hood image of the area around the air intake port captured by the image acquisition device.
[0114] In an embodiment of the present specification, while the target flow guide device guides the oil smoke in the target direction to flow toward the air intake port, and the target smoking device absorbs the oil smoke in the target direction into the air intake port, a real-time range hood image of the area around the air intake port is acquired in real time by the image acquisition device.
[0115] S1002: Filtering the real-time range hood image to obtain a real-time target area in the real-time range hood image; the real-time target area is an area in the real-time range hood image close to the air intake port.
[0116] In the embodiment of the present specification, the real-time range hood image is screened and processed, and a real-time target area in the real-time range hood image is obtained, so as to subsequently determine whether the oil smoke in the target direction has been completely absorbed.
[0117] S1003: Acquire real-time pixel values of all pixels corresponding to the real-time target area.
[0118] In the embodiment of the present specification, the real-time pixel values of all pixels corresponding to the target area are obtained so as to calculate the real-time pixel variance value corresponding to the real-time target area.
[0119] S1004: Calculating a real-time oil smoke content value corresponding to the real-time target area based on the real-time pixel values of all pixels corresponding to the real-time target area.
[0120] In an embodiment of the present specification, based on the real-time pixel values of all pixels corresponding to the real-time target area, the real-time pixel mean of all pixels corresponding to the real-time target area is calculated, and based on the real-time pixel value and the real-time pixel mean, the real-time pixel variance value corresponding to the real-time target area is calculated. Due to the increase in oil smoke, the pixel variance value of the real-time area will increase and fluctuate greatly. Therefore, the real-time pixel variance value corresponding to the real-time target area can characterize the real-time pixel variance value corresponding to the real-time target area.
[0121] S1005: If the real-time oil smoke content value is less than or equal to the first preset threshold, control the target smoking device to stop working.
[0122] In the embodiment of the present specification, if the real-time oil smoke content value is less than or equal to the first preset threshold value, it is determined that there is no oil smoke in the real-time target area at this time, and the oil smoke in the area around the air inlet of the target range hood has been absorbed. At this time, the target smoking device is controlled to stop working. After each oil smoke absorption is completed, the oil smoke generation time, oil smoke dissipation direction, user characteristic information and oil smoke content value can be obtained in time, and the oil smoke generation direction and intensity can be encrypted and stored in the cloud database, so as to predict the direction and intensity of oil smoke based on multiple groups of data, and at the same time, the method of adjusting the guide device and the smoking device that is more in line with the user's usage habits is set according to the usage characteristics of different users. By obtaining the real-time range hood image and determining the real-time oil smoke content value corresponding to the real-time target area in the real-time range hood image, the oil smoke condition of the area around the air inlet of the target range hood is determined based on the real-time oil smoke content value, and the real-time detection of the oil smoke condition is realized, ensuring that the target guide device and the target smoking device only operate when there is oil smoke, reducing energy consumption, reducing unnecessary operation time, extending the service life of the target guide device and the target smoking device, and improving the intelligence level of the target range hood.
[0123] This specification also provides a fume extraction device for the target range hood, such as Fig.11 As shown, the device comprises:
[0124] The image segmentation module 1101 is used to obtain the oil fume image collected by the image acquisition device on the outer surface of the target range hood during the operation of the target range hood, and to segment the oil fume image into a plurality of sub-images according to the flow direction of the oil fume; the oil fume image is an image of the area around the air inlet of the target range hood;
[0125] A pixel value acquisition module 1102 is used to acquire, for each of the sub-images, pixel values of all pixels corresponding to the sub-image;
[0126] The oil smoke content value determination module 1103 is used to calculate the oil smoke content value corresponding to the sub-image based on the pixel values of all pixels corresponding to the sub-image;
[0127] The current sorting result determination module 1104 is used to sort all the oil smoke content values to obtain the current sorting result;
[0128] The target sub-image determination module 1105 is used to determine a target sub-image according to the current sorting result; the target fume content value corresponding to the target sub-image is greater than the fume content value corresponding to the remaining sub-images; the remaining sub-images are sub-images other than the target sub-image among the multiple sub-images;
[0129] The oil fume suction module 1106 is used to control the target smoking device to suck the oil fume in the target direction corresponding to the target sub-image into the air suction port; the target smoking device is the smoking device on the target range hood corresponding to the target direction.
[0130] In some embodiments, the apparatus further comprises:
[0131] The range hood image acquisition module is used to obtain the range hood image of the area around the air intake port acquired by the image acquisition device in response to an oil fume detection request.
[0132] The target area determination module is used to perform screening processing on the range hood image to obtain a target area in the range hood image; the target area is an area in the range hood image close to the air intake port.
[0133] A target area pixel value acquisition module, used to acquire pixel values of all pixels corresponding to the target area;
[0134] an initial oil fume content value determination module, configured to calculate an initial oil fume content value corresponding to the target area based on the pixel values of all pixels corresponding to the target area;
[0135] The oil fume image determination module is used to determine that there is oil fume in the target area if the initial oil fume content value is greater than a first preset threshold value, and determine the range hood image as the oil fume image.
[0136] In some embodiments, the apparatus further comprises:
[0137] A diversion module is used to control the target diversion device to guide the oil smoke in the target direction to flow toward the air intake port if the target oil fume content value is greater than the first preset threshold value and the target oil fume content value is less than or equal to the second preset threshold value; the target diversion device is a diversion device on the target range hood corresponding to the target direction; the second preset threshold value is greater than the first preset threshold value.
[0138] In some embodiments, the fume extraction module further includes:
[0139] The first preset gear smoking sub-module is used to control the target diversion device to guide the oil smoke in the target direction to flow toward the air suction port, and control the target smoking device to absorb the oil smoke in the target direction into the air suction port at the first preset gear if the target oil smoke content value is greater than the second preset threshold value and the target oil smoke content value is less than the third preset threshold value; the third preset threshold value is greater than the second preset threshold value.
[0140] The second preset gear smoking submodule is used to control the target diversion device to guide the oil smoke in the target direction to flow toward the air suction port, and control the target smoking device to absorb the oil smoke in the target direction into the air suction port at the second preset gear if the target oil smoke content value is greater than or equal to the third preset threshold value, and the target oil smoke content value is less than the fourth preset threshold value; the fourth preset threshold value is greater than the third preset threshold value; the second preset gear is greater than the first preset gear.
[0141] The third preset gear smoking sub-module is used to control the target diversion device to guide the oil smoke in the target direction to flow toward the air suction port if the target oil smoke content value is greater than or equal to the fourth preset threshold value, and control the target smoking device to absorb the oil smoke in the target direction into the air suction port at the third preset gear; the third preset gear is greater than the second preset gear.
[0142] In some embodiments, the apparatus further comprises:
[0143] The real-time range hood image acquisition module is used to acquire the real-time range hood image of the area around the air inlet acquired by the image acquisition device.
[0144] The real-time target area acquisition module is used to filter and process the real-time range hood image to obtain the real-time target area in the real-time range hood image; the real-time target area is the area in the real-time range hood image close to the air intake port.
[0145] The real-time pixel value acquisition module is used to acquire the real-time pixel values of all pixels corresponding to the real-time target area.
[0146] A real-time oil fume content value determination module, used to calculate the real-time oil fume content value corresponding to the real-time target area based on the real-time pixel values of all pixels corresponding to the real-time target area;
[0147] The smoking stop module is used to control the target smoking device to stop working if the real-time oil smoke content value is less than or equal to the first preset threshold value.
[0148] In some embodiments, the apparatus further comprises:
[0149] The device identification threshold value group relationship library acquisition module is used to acquire the device identification threshold value group relationship library; the device identification threshold value group relationship library includes the corresponding relationship between the device identification of the preset range hood and the preset threshold value group;
[0150] A target device identification acquisition module, used to acquire the target device identification corresponding to the target range hood;
[0151] The target preset threshold group determination module is used to query the preset threshold group matching the target device identifier in the device identifier threshold group relationship library to obtain the target preset threshold group; the target preset threshold group includes the first preset threshold, the second preset threshold, the third preset threshold and the fourth preset threshold.
[0152] In some embodiments, the oil smoke content value determination module further includes:
[0153] a pixel mean value determination submodule, used to calculate the average value of all pixels corresponding to the sub-image based on the pixel values of all pixels corresponding to the sub-image, and obtain the pixel mean value corresponding to the sub-image;
[0154] The oil smoke content value determination submodule is used to determine the oil smoke content value corresponding to the sub-image according to the pixel values of all pixels corresponding to the sub-image and the average value of the pixels corresponding to the sub-image.
[0155] The device and method embodiments in the described device embodiments are based on the same inventive concept.
[0156] An embodiment of the present specification provides an electronic device, which includes a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or at least one program is loaded and executed by the processor to implement the oil fume extraction method of the target range hood provided in the above method embodiment.
[0157] An embodiment of the present application also provides a computer storage medium, which can be set in a terminal to store at least one instruction or at least one program related to a method for extracting oil fume from a target range hood in a method embodiment. The at least one instruction or at least one program is loaded and executed by the processor to implement the method for extracting oil fume from a target range hood provided in the above method embodiment.
[0158] The embodiment of the present application also provides a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes to implement the oil fume extraction method of the target range hood provided in the above method embodiment.
[0159] The memory described in the embodiments of this specification can be used to store software programs and modules, and the processor executes various functional applications and data processing by running the software programs and modules stored in the memory. The memory may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, application programs required for functions, etc.; the data storage area may store data created according to the use of the device, etc. In addition, the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage device. Accordingly, the memory may also include a memory controller to provide the processor with access to the memory.
[0160] The target fume extraction method of the range hood provided in the embodiments of this specification can be executed in a mobile terminal, a computer terminal, a server or a similar computing device. Taking running on a server as an example, Fig.12 1 is a hardware structure diagram of a server of a target fume extraction method for a range hood provided in an embodiment of this specification. Fig.12 As shown, the server 1200 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 1210 (the central processing unit 1210 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 1230 for storing data, and one or more storage media 1220 (such as one or more mass storage devices) for storing application programs 1223 or data 1222. Among them, the memory 1230 and the storage medium 1220 may be temporary storage or permanent storage. The program stored in the storage medium 1220 may include one or more modules, and each module may include a series of instruction operations in the server. Furthermore, the central processing unit 1210 may be configured to communicate with the storage medium 1220 and execute a series of instruction operations in the storage medium 1220 on the server 1200. The server 1200 may also include one or more power supplies 1260, one or more wired or wireless network interfaces 1250, one or more input and output interfaces 1240, and / or one or more operating systems 1221, such as Wi ndows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, etc.
[0161] The input / output interface 1240 may be used to receive or send data via a network. The specific example of the network may include a wireless network provided by a communication provider of the server 1200. In one example, the input / output interface 1240 includes a network adapter (NIC), which may be connected to other network devices via a base station so as to communicate with the Internet. In one example, the input / output interface 1240 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0162] It can be understood by those skilled in the art that Fig.12 The structure shown is only for illustration and does not limit the structure of the above electronic device. Fig.12 More or fewer components as shown, or with Fig.12 Different configurations are shown.
[0163] It can be seen from the embodiments of the oil fume extraction method, device, electronic device and storage medium of the target range hood provided by the present application that, during the operation of the target range hood, the present application obtains an oil fume image collected by an image acquisition device on the outer surface of the target range hood, and divides the oil fume image into multiple sub-images according to the flow direction of the oil fume; the oil fume image is an image of the area around the air intake port of the target range hood; for each of the sub-images, the pixel values of all pixels corresponding to the sub-image are obtained; based on the pixel values of all pixels corresponding to the sub-image, the oil fume content value corresponding to the sub-image is calculated; all the oil fume content values are sorted to obtain a current sorting result; based on the current sorting result, a target sub-image is determined; the target oil fume content value corresponding to the target sub-image is greater than the oil fume content value corresponding to the remaining sub-images; the remaining sub-images are sub-images other than the target sub-image among the multiple sub-images; the target smoking device is controlled to absorb the oil fume in the target direction corresponding to the target sub-image into the inside of the air intake port; the target smoking device is a smoking device on the target range hood corresponding to the target direction. The image of the range hood of the area around the air intake port of the target range hood is obtained through the image acquisition device, and the next step of processing is performed when there is oil smoke in the target area in the range hood image, thereby improving the accuracy of the oil smoke detection result of the area around the air intake port of the target range hood; by dividing the oil smoke image into multiple sub-images and calculating the pixel variance value corresponding to each sub-image, that is, the oil smoke content value corresponding to each sub-image, the escape direction of the oil smoke is determined, and the target diversion device corresponding to the target sub-image is controlled to work together with the target suction device to absorb the oil smoke, and different suction strategies are formulated for different contents of oil smoke, thereby improving the accuracy and efficiency of the target range hood in absorbing oil smoke, and improving the intelligence level of the target range hood.
[0164] It should be noted that the above sequence of the embodiments of this specification is for description only and does not represent the advantages and disadvantages of the embodiments. The above describes specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0165] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, equipment, and storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0166] A person skilled in the art will appreciate that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer storage medium, and the storage medium mentioned above may be a read-only memory, a disk or an optical disk, etc.
[0167] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.
Claims
1. A method for extracting oil smoke from a target range hood, characterized in that: The method comprises: During the operation of the target range hood, an oil fume image captured by an image acquisition device on the outer surface of the target range hood is acquired, and the oil fume image is divided into a plurality of sub-images according to the flow direction of the oil fume; the oil fume image is an image of the area around the air inlet of the target range hood; For each of the sub-images, obtaining pixel values of all pixels corresponding to the sub-image; Calculating the oil smoke content value corresponding to the sub-image based on the pixel values of all pixels corresponding to the sub-image; Sorting all the oil smoke content values to obtain a current sorting result; Determine a target sub-image according to the current sorting result; the target fume content value corresponding to the target sub-image is greater than the fume content value corresponding to the remaining sub-images; the remaining sub-images are sub-images other than the target sub-image among the multiple sub-images; The target smoking device is controlled to absorb the oil smoke in the target direction corresponding to the target sub-image into the air intake port; the target smoking device is the smoking device on the target range hood corresponding to the target direction.
2. The method according to claim 1, characterized in that During the operation of the target range hood, before acquiring the oil fume image acquired by the image acquisition device on the outer surface of the target range hood and dividing the oil fume image into a plurality of sub-images according to the oil fume flow direction, the method further includes: In response to a fume detection request, acquiring an image of the range hood in the area around the air intake port acquired by the image acquisition device; The range hood image is screened to obtain a target area in the range hood image; the target area is an area in the range hood image close to the air inlet; Obtaining pixel values of all pixels corresponding to the target area; Calculating an initial oil smoke content value corresponding to the target area based on pixel values of all pixels corresponding to the target area; If the initial oil smoke content value is greater than a first preset threshold, it is determined that there is oil smoke in the target area, and the range hood image is determined as the oil smoke image.
3. The method according to claim 2, characterized in that After determining the target sub-image according to the current sorting result, the method further includes: If the target oil fume content value is greater than the first preset threshold value, and the target oil fume content value is less than or equal to the second preset threshold value, the target diversion device is controlled to guide the oil fume in the target direction to flow toward the air intake port; the target diversion device is a diversion device on the target range hood corresponding to the target direction; the second preset threshold value is greater than the first preset threshold value.
4. The method according to claim 3, characterized in that The controlling target smoking device to absorb the oil smoke in the target direction corresponding to the target sub-image into the air suction port comprises: If the target oil fume content value is greater than the second preset threshold value, and the target oil fume content value is less than the third preset threshold value, the target flow guide device is controlled to guide the oil fume in the target direction to flow toward the air intake port, and the target suction device is controlled to absorb the oil fume in the target direction into the air intake port at the first preset gear; the third preset threshold value is greater than the second preset threshold value; If the target oil fume content value is greater than or equal to the third preset threshold value, and the target oil fume content value is less than the fourth preset threshold value, the target flow guide device is controlled to guide the oil fume in the target direction to flow toward the air intake port, and the target suction device is controlled to absorb the oil fume in the target direction into the air intake port at the second preset gear; the fourth preset threshold value is greater than the third preset threshold value; the second preset gear is greater than the first preset gear; If the target oil fume content value is greater than or equal to the fourth preset threshold value, the target diversion device is controlled to guide the oil fume in the target direction to flow toward the air intake port, and the target smoking device is controlled to absorb the oil fume in the target direction into the air intake port at a third preset gear; the third preset gear is greater than the second preset gear.
5. The method according to claim 2, characterized in that: After the target smoking device is controlled to absorb the oil smoke in the target direction corresponding to the target sub-image into the air suction port, the method further includes: Acquire a real-time range hood image of the area around the air inlet acquired by the image acquisition device; The real-time range hood image is filtered to obtain a real-time target area in the real-time range hood image; the real-time target area is an area in the real-time range hood image close to the air inlet; Acquire real-time pixel values of all pixels corresponding to the real-time target area; Calculating a real-time oil smoke content value corresponding to the real-time target area based on the real-time pixel values of all pixels corresponding to the real-time target area; If the real-time oil smoke content value is less than or equal to the first preset threshold, the target smoking device is controlled to stop working.
6. The method according to claim 4, characterized in that If the initial oil smoke content value is greater than a first preset threshold, it is determined that there is oil smoke in the target area, and before the range hood image is determined as the oil smoke image, the method further includes: Acquire a device identification threshold group relationship library; the device identification threshold group relationship library includes a correspondence between a preset device identification of a range hood and a preset threshold group; Obtaining a target device identifier corresponding to the target range hood; The preset threshold group matching the target device identifier is searched in the device identifier threshold group relationship library to obtain a target preset threshold group; the target preset threshold group includes the first preset threshold, the second preset threshold, the third preset threshold and the fourth preset threshold.
7. The method according to claim 1, characterized in that The calculating the oil smoke content value corresponding to the sub-image based on the pixel values of all pixels corresponding to the sub-image includes: Based on the pixel values of all pixels corresponding to the sub-image, an average value of all pixels corresponding to the sub-image is calculated, and a pixel mean value corresponding to the sub-image is obtained; The oil smoke content value corresponding to the sub-image is determined according to the pixel values of all pixels corresponding to the sub-image and the average value of the pixels corresponding to the sub-image.
8. A target fume extraction device for a range hood, characterized in that: The device comprises: An image segmentation module is used to obtain the oil fume image collected by the image acquisition device on the outer surface of the target range hood during its operation, and to segment the oil fume image into a plurality of sub-images according to the flow direction of the oil fume; the oil fume image is an image of the area around the air inlet of the target range hood; A pixel value acquisition module, used for acquiring, for each of the sub-images, pixel values of all pixels corresponding to the sub-image; an oil fume content value determination module, configured to calculate an oil fume content value corresponding to the sub-image based on pixel values of all pixels corresponding to the sub-image; A current sorting result determination module is used to sort all the oil smoke content values to obtain a current sorting result; A target sub-image determination module is used to determine a target sub-image according to the current sorting result; the target fume content value corresponding to the target sub-image is greater than the fume content value corresponding to the remaining sub-images; the remaining sub-images are sub-images other than the target sub-image among the multiple sub-images; The oil fume suction module is used to control the target smoking device to suck the oil fume in the target direction corresponding to the target sub-image into the air suction port; the target smoking device is the smoking device on the target range hood corresponding to the target direction.
9. An electronic device, characterized in that: The device includes a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or at least one program is loaded by the processor and executes the oil fume extraction method of the target range hood as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that: The storage medium stores at least one instruction or at least one program, and the at least one instruction or at least one program is loaded and executed by the processor to implement the oil fume extraction method of the target range hood as described in any one of claims 1-7.