Image processing method, image processing device, equipment and storage medium

By collecting and processing images in the steamer, calculating the environmental deviation value and correcting the image, the problem of water vapor blocking the view during cooking of the steamer is solved, and a clear food observation effect is achieved.

CN119809990APending Publication Date: 2025-04-11NINGBO FOTILE KITCHEN WARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411731584.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-29
Publication Date
2025-04-11

AI Technical Summary

Technical Problem

During the cooking process, the steamer generates a lot of water mist, blocking the user's sight and affecting the maturity of the food.

Method used

The area to be processed is determined by the acquisition device, the historical and current reference images are acquired, the environmental deviation value is calculated, and the image to be processed is processed to obtain a corrected image to remove water vapor interference.

Benefits of technology

It effectively removes water vapor interference in the steamer and clearly displays the status of the object to be cooked, making it easier for users to observe the cooking status of the ingredients.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119809990A_ABST
    Figure CN119809990A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an image processing method, an image processing device, electronic equipment and a storage medium, and the method comprises the steps: determining a to-be-processed region through a collection device, the to-be-processed region comprises a first target region and a second target region, the position of the first target region corresponds to the position of a to-be-cooked object, and the position of the second target region corresponds to the position of the to-be-cooked object; acquiring a historical reference image of the second target area, a current reference image of the second target area and a to-be-processed image of the first target area, determining an environment deviation value of the to-be-processed area based on the historical reference image and the current reference image, and performing data processing on the to-be-processed image based on the environment deviation value, and obtaining a corrected image of the first target area. In the embodiment of the invention, the to-be-processed image is subjected to data processing through the environment deviation value determined based on the historical reference image and the current reference image to obtain the corrected image of the to-be-cooked object, so that a user can conveniently observe food materials in the steam box.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of household appliances, and in particular to an image processing method, an image processing device, an electronic device and a storage medium. Background Art

[0002] Steamer is a high-tech kitchen appliance that uses a heating plate or evaporating plate to convert water into high-temperature steam to steam food. It has a powerful pure steaming function. During the user's use, the steamer can quickly complete cooking steps such as steaming vegetables, steaming rice, steaming soup, and heating meals. It also has the effects of precise temperature control, locking in nutrition, reducing fat and salt, and maintaining the original flavor of food.

[0003] Among them, a common steamer on the market is provided with an observation window on its outer surface. When using this steamer to cook food, the user can observe the cooking status of the food through the observation window, and then determine the maturity of the food. However, during the use of this steamer, a large amount of water mist is often generated during cooking, and this water mist will block the user's sight when observing the food, affecting the observation effect. Summary of the invention

[0004] In order to solve the above technical problems, the present application discloses an image processing method, an image processing device, an electronic device and a storage medium, which can solve the technical problem in the prior art that during the use of such a steamer, a large amount of water mist is often generated during cooking in the steamer, and the water mist will block the user's line of sight when the user observes the food, affecting the observation effect.

[0005] In order to achieve the above-mentioned invention object, in a first aspect, the present application discloses an image processing method, which includes determining a to-be-processed area through an acquisition device; the to-be-processed area includes a first target area and a second target area; the position of the first target area corresponds to the position of the object to be cooked;

[0006] Acquire a historical reference image of the second target area, a current reference image of the second target area, and an image to be processed of the first target area;

[0007] Determine the environmental deviation value of the area to be processed based on the historical reference image and the current reference image;

[0008] Data processing is performed on the image to be processed based on the environmental deviation value to obtain a corrected image of the first target area.

[0009] In a possible embodiment, before determining the environmental deviation value of the to-be-processed area based on the historical reference image and the current reference image, the method further includes:

[0010] The second target area is divided into regions to obtain at least one comparison region.

[0011] In a possible embodiment, determining the environmental deviation value of the area to be processed based on the historical reference image and the current reference image includes:

[0012] For each comparison area, the following steps are performed: determining the environmental deviation value of each comparison area based on the historical reference image of each comparison area and the current reference image of each comparison area; obtaining the interval distance between each comparison area and the acquisition device; determining the environmental deviation value of each comparison area at a unit distance based on the environmental deviation value of each comparison area and the interval distance between each comparison area and the acquisition device;

[0013] Data processing is performed on the environmental deviation value of each comparison area at a unit distance to obtain the environmental deviation value of the area to be processed at a unit distance.

[0014] In a possible embodiment, before performing data processing on the image to be processed based on the environmental deviation value to obtain a corrected image of the first target area, the method further includes:

[0015] The first target area is divided into regions to obtain at least one processing region.

[0016] In a possible embodiment, performing data processing on the image to be processed based on the environmental deviation value to obtain a corrected image of the first target area includes:

[0017] For each processing area, executing: obtaining the interval distance between each processing area and the collection device; determining the environmental deviation value of each processing area based on the interval distance between each processing area and the collection device and the environmental deviation value of the area to be processed at a unit distance;

[0018] Data processing is performed on the image to be processed based on the environmental deviation value of each processing area to obtain a corrected image of the first target area.

[0019] In a possible embodiment, before determining the area to be processed by the acquisition device, the method further includes:

[0020] The object to be cooked is illuminated in sequence by at least two sets of preset lights with at least two color temperatures, and image gradient information of the object to be cooked under the at least two sets of preset lights is obtained; the at least two sets of preset lights correspond to the at least two color temperatures one by one, and the quantities correspond;

[0021] Performing data processing on image gradient information of the cooking object under each set of preset light to obtain the sum of image gradients of each set of preset light;

[0022] Selecting a preset light with the largest image gradient sum from at least two groups of preset lights based on the image gradient sum of each group of preset lights;

[0023] The object to be cooked is illuminated with a preset light with the maximum sum of image gradients.

[0024] On the other hand, the present application discloses an image processing device, the image processing device comprising:

[0025] A first acquisition module, used to determine the area to be processed by an acquisition device; the area to be processed includes a first target area and a second target area; the position of the first target area corresponds to the position of the object to be cooked;

[0026] A second acquisition module, used to acquire a historical reference image of the second target area, a current reference image of the second target area, and an image to be processed of the first target area;

[0027] A first information processing module, used to determine the environmental deviation value of the area to be processed based on the historical reference image and the current reference image;

[0028] The second information processing module is used to perform data processing on the image to be processed based on the environmental deviation value to obtain a corrected image of the first target area.

[0029] In a possible embodiment, the first information processing module is further used to divide the second target area into regions to obtain at least one comparison region.

[0030] In a possible embodiment, the first information processing module is further used to perform, for each comparison area, the following steps: determining the environmental deviation value of each comparison area based on the historical reference image of each comparison area and the current reference image of each comparison area; obtaining the interval distance between each comparison area and the acquisition device; determining the environmental deviation value of each comparison area at a unit distance based on the environmental deviation value of each comparison area and the interval distance between each comparison area and the acquisition device;

[0031] Data processing is performed on the environmental deviation value of each comparison area at a unit distance to obtain the environmental deviation value of the area to be processed at a unit distance.

[0032] In a possible embodiment, the second information processing module is further used to divide the first target area into regions to obtain at least one processing region.

[0033] In a possible embodiment, the second information processing module is also used to execute, for each processing area, the following: obtaining the spacing distance between each processing area and the acquisition device; determining the environmental deviation value of each processing area based on the spacing distance between each processing area and the acquisition device and the environmental deviation value of the area to be processed at a unit distance; and performing data processing on the image to be processed based on the environmental deviation value of each processing area to obtain a corrected image of the first target area.

[0034] In a possible embodiment, the first acquisition module is further used to illuminate the object to be cooked with at least two color temperatures through at least two groups of preset lights in sequence, and obtain image gradient information of the object to be cooked under the at least two groups of preset lights; the at least two groups of preset lights correspond to the at least two color temperatures one by one, and the quantities correspond to each other; data processing is performed on the image gradient information of the object to be cooked under each group of preset lights to obtain the sum of the image gradients of each group of preset lights; based on the sum of the image gradients of each group of preset lights, a preset light with the largest sum of image gradients is selected from the at least two groups of preset lights; and the preset light with the largest sum of image gradients is used to illuminate the object to be cooked.

[0035] On the other hand, the present application provides an electronic device, characterized in that the device includes a processor and a memory, and the storage medium stores at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by the processor to implement any one of the above image processing methods.

[0036] On the other hand, the present application provides a computer-readable storage medium, characterized in that the electronic device includes a processor and a memory, the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, at least one program, a code set or an instruction set is loaded and executed by the processor to implement any one of the above image processing methods.

[0037] The image processing method, image processing device, electronic device and storage medium provided in the embodiments of the present application have the following beneficial effects:

[0038] The embodiment of the present application provides an image processing method, an image processing device, an electronic device and a storage medium, the image processing method includes determining a to-be-processed area through an acquisition device, the to-be-processed area includes a first target area and a second target area, the position of the first target area corresponds to the position of the object to be cooked, obtaining a historical reference image of the second target area, a current reference image of the second target area and an image to be processed of the first target area, determining an environmental deviation value of the to-be-processed area based on the historical reference image and the current reference image, performing data processing on the image to be processed based on the environmental deviation value, and obtaining a corrected image of the first target area. In the embodiment of the present application, the corrected image of the object to be cooked is obtained by performing data processing on the image to be processed based on the environmental deviation value determined based on the historical reference image and the current reference image, so as to facilitate the user to observe the food in the steamer. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present application 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 creative work.

[0040] Figure 1 A schematic diagram of an application environment provided for an embodiment of the present application;

[0041] Figure 2 A schematic diagram of an image processing method provided in an embodiment of the present application Figure 1 ;

[0042] Figure 3 This is a schematic diagram of an image processing method provided in an embodiment of the present application. Figure 2 ;

[0043] Figure 4 This is a schematic diagram of an image processing method provided in an embodiment of the present application. Figure 3 ;

[0044] Figure 5 This is a schematic diagram of an image processing method provided in an embodiment of the present application. Figure 4 ;

[0045] Figure 6 This is a schematic diagram of an image processing method provided in an embodiment of the present application. Figure 5 ;

[0046] Figure 7 This is a schematic diagram of an image processing method provided in an embodiment of the present application. Figure 6 ;

[0047] Figure 8 It is a schematic diagram of an image processing device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0048] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0049] It should be noted that the terms "including" and "having" and any variations thereof in the specification and claims of this application and the above-mentioned drawings 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.

[0050] See also Figure 1 , Figure 1 A schematic diagram of an application environment provided by an embodiment of the present application. Figure 1 As shown, the schematic diagram may include a steam box 101 and an image processing device 102 .

[0051] In a possible embodiment, the steamer 101 may be any steamer that can be controlled based on the image processing method in this article. Optionally, the steamer 101 may be provided with an observation window so that the user can observe the cooking status of the ingredients through the observation window and then determine the maturity of the ingredients.

[0052] Optionally, the image processing device 102 may be any device that can operate based on the image processing method in the present application, and the image processing device 102 may be an electronic device including various electronic components such as a circuit board, a controller, and a sensor.

[0053] Optionally, the steam box 101 can be electrically connected to the image processing device 102, and the steam box 101 and the image processing device 102 can be separately arranged. Optionally, the image processing device 102 can also be arranged as a control unit inside the structure of the steam box 101. The steam box 101 and the image processing device 102 can communicate by wire through wires, optical fibers, etc., or can communicate wirelessly through electromagnetic waves, Bluetooth, and Wi-Fi (wireless network communication technology).

[0054] Similarly, the steamer 101 in this embodiment can be replaced by any electronic device that can operate based on the image processing method of the present application. The electronic device is also electrically connected to the image processing device 102 and can execute the image processing method of the present application under the control of the image processing device.

[0055] The following is a specific embodiment of an image processing method of the present application. Figure 2 , Figure 2 A schematic diagram of an image processing method provided in an embodiment of the present application Figure 1. This specification provides method operation steps as described in the embodiments or flow charts, but may include more or fewer operation steps based on routine or non-creative work. The order of steps listed in the embodiments is only one way of executing the steps among many orders, and does not represent the only order of execution. 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 shown in the embodiments or drawings. Specifically, Figure 2 As shown, the method may include the following steps:

[0056] S1: Determine the area to be processed by a collection device, the area to be processed includes a first target area and a second target area, and the position of the first target area corresponds to the position of the object to be cooked.

[0057] In a possible embodiment, the image processing device 102 may determine the area to be processed through a collection device. Optionally, the image processing device 102 may include a first collection module, and the first collection module may include a collection device. The collection device may be a device capable of collecting images, including devices such as a camera and an image collector. The collection device may collect images of the interior of the steamer 101 including the object to be cooked.

[0058] Optionally, the area to be processed may include a first target area and a second target area, and the image processing device 102 may determine the first target area and the second target area based on the acquisition device. The position of the first target area may correspond to the position of the object to be cooked, the range of the first target area may be slightly larger than the position of the object to be cooked, and the range of the first target area may completely overlap with the range of the object to be cooked.

[0059] Optionally, the second target area may be the location of cooking utensils including a cooking liner and cooking utensils inside the steamer 101 except for the ingredients to be cooked, and the first target area and the second target area may together constitute a collection area of ​​the collection device.

[0060] In the cooking process, since the materials of the food to be cooked corresponding to the first target area will change during the cooking process, the materials of the cooking pot and cooking utensils corresponding to the second target area will not change during the cooking process. At the same time, when the steamer 101 is cooking the food to be cooked, steam will be generated in the steamer 101. Therefore, the image of the first target area collected by the acquisition device will have both the food changes and the environmental deviation value caused by the environmental changes, and the image of the second target area collected by the acquisition device will have the environmental deviation value caused by the environmental changes.

[0061] S2: Acquire a historical reference image of the second target area, a current reference image of the second target area, and an image to be processed of the first target area.

[0062] Optionally, the image processing device 102 may obtain a historical reference image of the second target area, a current reference image of the second target area, and an image to be processed of the first target area. The historical reference image of the second target area may be a historical image of the second target area acquired by the acquisition device, the current reference image of the second target area may be a current image of the second target area acquired by the acquisition device, and the image to be processed of the first target area may be an image to be processed of the first target area acquired by the acquisition device.

[0063] S3: Determine the environmental deviation value of the area to be processed based on the historical reference image and the current reference image.

[0064] Optionally, the image processing device 102 may determine the environmental deviation value of the area to be processed based on the historical reference image and the current reference image. The image processing device 102 may determine the environmental deviation value of the second target area in the steamer 101 based on the historical reference image and the current reference image. Since the steam in the steamer 101 is mostly uniformly distributed, the average steam density of the second target area can be regarded as the average steam density inside the steamer 101.

[0065] S4: Performing data processing on the image to be processed based on the environmental deviation value to obtain a corrected image of the first target area.

[0066] Optionally, the image processing device 102 can perform data processing on the image to be processed based on the environmental deviation value to obtain a corrected image of the first target area. Since the steam in the steamer 101 is mostly uniformly distributed, the average steam density inside the steamer 101 can be regarded as the average steam density of the first target area. Therefore, the image to be processed can be processed based on the environmental deviation value inside the steamer 101 on the basis of the image to be processed, thereby removing the environmental interference caused by the steam to the first target area, and thereby obtaining a corrected image of the first target area.

[0067] Therefore, the image processing device 102 can obtain a corrected image of the object to be cooked by performing data processing on the image to be processed based on the environmental deviation value determined by the historical reference image and the current reference image, thereby removing the environmental interference caused by steam to the first target area, and thus obtaining a corrected image of the first target area to facilitate users to observe the ingredients in the steamer 101.

[0068] See also Figure 3 , Figure 3 This is a schematic diagram of a process for determining a comparison area of ​​an image processing method provided in an embodiment of the present application. Figure 2 .like Figure 3 As shown, before executing S3: determining the environmental deviation value of the area to be processed based on the historical reference image and the current reference image, the following operations may also be performed:

[0069] S301: Divide the second target area into regions to obtain at least one comparison region.

[0070] In a possible embodiment, the image processing device 102 may divide the second target area into regions to obtain at least one comparison region. Optionally, the comparison region may be of any shape, each comparison region may be independent of each other, and at least one comparison region may together constitute the second target area.

[0071] The image processing device 102 can adjust the accuracy of determining the environmental deviation value based on the size of the comparison area. When the comparison area is larger, the accuracy of the environmental deviation value is lower, and when the comparison area is smaller, the accuracy of the environmental deviation value is higher. Optionally, the comparison area can also be a pixel point.

[0072] Thus, the comparison area can be obtained by dividing the second target area into regions, so that the environmental deviation value of the area to be processed can be obtained based on each comparison area. At the same time, the accuracy of the environmental deviation value can be adjusted by adjusting the area of ​​each comparison area, so that the operator can adjust the accuracy of image processing based on the image processing method.

[0073] See also Figure 4 , Figure 4 This is a schematic diagram of an image processing method provided in an embodiment of the present application. Figure 3 .like Figure 4 As shown, when executing S3: determining the environmental deviation value of the area to be processed based on the historical reference image and the current reference image, the following operations may be specifically performed:

[0074] S302: For each comparison area, execute: determine the environmental deviation value of each comparison area based on the historical reference image of each comparison area and the current reference image of each comparison area, obtain the spacing distance between each comparison area and the acquisition device, and determine the environmental deviation value of each comparison area at a unit distance based on the environmental deviation value of each comparison area and the spacing distance between each comparison area and the acquisition device.

[0075] In a possible embodiment, for each comparison area, the image processing device 102 may perform: determining the environmental deviation value of each comparison area based on the historical reference image of each comparison area and each comparison area. The environmental deviation value of each comparison area may be the deviation value of the RGB value or the deviation value of the HSV value of the comparison area in the historical reference image and the current reference image.

[0076] Optionally, the image processing device 102 may also obtain the spacing distance between each comparison area and the acquisition device. The image processing device 102 may determine the environmental deviation value of each comparison area at a unit distance based on the environmental deviation value of each comparison area and the spacing distance between each comparison area and the acquisition device.

[0077] Optionally, the image processing device 102 may divide the environmental deviation value based on each comparison area by the interval distance between each comparison area and the acquisition device, and the obtained result is the environmental deviation value of each comparison area at a unit distance.

[0078] S303: Performing data processing on the environmental deviation value of each comparison area at a unit distance to obtain the environmental deviation value of the area to be processed at a unit distance.

[0079] Optionally, the image processing device 102 may perform data processing on the environmental deviation value of each comparison area at a unit distance to obtain the environmental deviation value of the area to be processed at a unit distance. Optionally, the image processing device 102 may take the average or median of the environmental deviation value of each comparison area at a unit distance to obtain the environmental deviation value of the area to be processed at a unit distance.

[0080] In this embodiment, the image processing device 102 can obtain the environmental deviation value of the area to be processed at a unit distance by performing data processing on the environmental deviation value of each comparison area and the interval distance of each comparison area, so that the image to be processed can be subsequently processed based on the environmental deviation value to obtain a corrected image of the first target area.

[0081] See also Figure 5 , Figure 5 This is a schematic diagram of an image processing method provided in an embodiment of the present application. Figure 4 .like Figure 5 As shown, before executing S4: performing data processing on the image to be processed based on the environmental deviation value to obtain a corrected image of the first target area, the following steps may also be performed:

[0082] S401: Divide the first target area into regions to obtain at least one processing region.

[0083] In a possible embodiment, the image processing device 102 may divide the first target area into regions to obtain at least one processing region. Optionally, the processing region may be of any shape, each processing region may be independent of each other, and at least one processing region may together constitute the first target area.

[0084] The image processing device 102 can adjust the accuracy of determining the environmental deviation value based on the size of the processing area. When the area of ​​the processing area is larger, the accuracy of the corrected image of the first target area obtained based on each processing area is lower, and when the area of ​​the comparison area is smaller, the accuracy of the corrected image of the first target area obtained based on each processing area is higher. Optionally, the comparison area can also be a pixel point.

[0085] Thus, the first target area can be divided into regions to obtain the comparison region, so that the corrected image of the first target area can be obtained based on each processing region later. At the same time, the accuracy of the corrected image of the first target area obtained based on each processing region can be adjusted by adjusting the area of ​​each processing region, so that the operator can adjust the accuracy of the image processing based on the image processing method.

[0086] See also Figure 6 , Figure 6 This is a schematic diagram of an image processing method provided in an embodiment of the present application. Figure 5 .like Figure 6 As shown, when executing S4: performing data processing on the image to be processed based on the environmental deviation value to obtain a corrected image of the first target area, the following steps may be specifically performed:

[0087] S402: For each processing area, execute: obtaining the spacing distance between each processing area and the collection device, and determining the environmental deviation value of each processing area based on the spacing distance between each processing area and the collection device and the environmental deviation value of the area to be processed at a unit distance.

[0088] In a possible embodiment, the image processing device 102 can perform, for each processing area, the following steps: obtaining the distance between each processing area and the acquisition device. The distance between each processing area and the acquisition device may be the distance between any point on each processing area and the acquisition point of the acquisition device. Optionally, the distance between each processing area and the acquisition device may be the distance between the center point on each processing area and the acquisition point of the acquisition device.

[0089] Optionally, the image processing device 102 may determine the environmental deviation value of each processing area based on the interval distance between each processing area and the acquisition device and the environmental deviation value of the area to be processed at a unit distance. The environmental deviation value of each processing area may be the product of the interval distance between each processing area and the acquisition device and the environmental deviation value of the area to be processed at a unit distance.

[0090] S403: Performing data processing on the image to be processed based on the environmental deviation value of each processing area to obtain a corrected image of the first target area.

[0091] Optionally, the image processing device 102 may perform data processing on the image to be processed based on the environmental deviation value of each processing area to obtain a corrected image of the first target area.

[0092] Optionally, the environmental deviation value of each processing area may be a deviation value of the RGB value or the HSV value of the processing area before and after cooking. The image processing device 102 may add or subtract the deviation value of the RGB value or the HSV value of the processing area before and after cooking based on the actual RGB value or the actual HSV value of each processing area, thereby performing data processing on the image to be processed to obtain a corrected image of the first target area.

[0093] In this embodiment, data processing can be performed on each processing area in the first target area to obtain a corrected image of the first target area, thereby removing the influence of water vapor generated during the cooking process of the steamer 101 and making it easier for users to observe the food in the steamer 101.

[0094] See also Figure 7 , Figure 7 This is a schematic diagram of an image processing method provided in an embodiment of the present application. Figure 6 .like Figure 7 As shown, before executing S1: determining the area to be processed by the acquisition device, the following steps may also be performed:

[0095] S101: sequentially illuminating an object to be cooked with at least two sets of preset lights at at least two color temperatures, and acquiring image gradient information of the object to be cooked under the at least two sets of preset lights; the at least two sets of preset lights correspond one to one with the at least two color temperatures, and the quantities correspond.

[0096] In a possible embodiment, the image processing device 102 may sequentially illuminate the object to be cooked with at least two sets of preset lights at at least two color temperatures, and obtain image gradient information of the object to be cooked under the at least two sets of preset lights. Each set of preset lights in the at least two sets of preset lights may correspond one-to-one to each color temperature in the at least two color temperatures.

[0097] S102: performing data processing on image gradient information of the cooking object under each set of preset light to obtain the sum of image gradients of each set of preset light.

[0098] Optionally, the image processing device 102 may perform data processing on the image gradient information of the cooking object under each set of preset light to obtain the sum of the image gradients of each set of preset light.

[0099] Specifically, the image to be processed of the object to be cooked under each set of preset light can be converted into a single-channel image (i.e., a grayscale image), and the grayscale gradient information of each point in the single-channel image can be obtained. The image processing device 102 can calculate the sum of the absolute values ​​of the grayscale gradient information of each point in the single-channel image, and the sum is the sum of the image gradients of each set of preset light.

[0100] S103: Selecting a preset light with a maximum image gradient sum from at least two groups of preset lights based on the image gradient sum of each group of preset lights.

[0101] Optionally, the image processing device 102 may compare the image gradient information of at least two groups of preset lights, so as to select the preset light with the maximum image gradient sum from the at least two groups of preset lights based on the image combination of each group of preset lights.

[0102] Optionally, the image processing device 102 may compare each two groups of preset light rays between at least two groups of preset light rays, and compare the preset light rays with the largest sum of image gradients in each two groups of preset light rays with the other preset light rays. In order to avoid errors in the detection process, when the larger preset light rays in the two groups of preset light rays are compared with the other light rays, only when the difference between the sum of image gradients of the other preset light rays and the larger preset light rays in the two groups of preset light rays is greater than the product of the difference between the larger preset light rays in the two groups of preset light rays and the preset coefficient, is it determined that the image is more clearly observed under the other preset light rays.

[0103] Optionally, the preset coefficient may be any value less than 1. The operator may adjust the preset coefficient based on different actual conditions.

[0104] S104: Illuminating the object to be cooked with a preset light having the maximum image gradient sum.

[0105] Optionally, the image processing device 102 may illuminate the object to be cooked with a preset light with the largest sum of image gradients among at least two groups of preset lights, and the preset light with the largest sum of image gradients is the light that enables the image to be observed most clearly.

[0106] In this embodiment, the image processing device 102 can illuminate the object to be cooked by using the preset light with the largest sum of image gradients among at least two groups of preset lights, thereby improving the clarity of the food for the user to observe and facilitating the user's observation.

[0107] See also Figure 8 , Figure 8 is a schematic diagram of an image processing device provided in an embodiment of the present application. Figure 8 As shown, the image processing device includes a first acquisition module 1001, a second acquisition module 1002, a first information processing module 1003, and a second information processing module 1004.

[0108] In a possible embodiment, the first acquisition module 1001 is used to determine the area to be processed through an acquisition device, the area to be processed includes a first target area and a second target area, and the position of the first target area corresponds to the position of the object to be cooked. Optionally, the second acquisition module 1002 is used to obtain a historical reference image of the second target area, a current reference image of the second target area, and an image to be processed of the first target area. The first information processing module 1003 is used to determine an environmental deviation value of the area to be processed based on the historical reference image and the current reference image. The second information processing module 1004 is used to perform data processing on the image to be processed based on the environmental deviation value to obtain a corrected image of the first target area.

[0109] In a possible embodiment, the first information processing module 1003 is further configured to divide the second target area into regions to obtain at least one comparison region.

[0110] In a possible embodiment, the first information processing module 1003 is further used to perform, for each comparison area, the following steps: determining the environmental deviation value of each comparison area based on the historical reference image of each comparison area and the current reference image of each comparison area, obtaining the interval distance between each comparison area and the acquisition device, and determining the environmental deviation value of each comparison area at a unit distance based on the environmental deviation value of each comparison area and the interval distance between each comparison area and the acquisition device. Data processing is performed on the environmental deviation value of each comparison area at a unit distance to obtain the environmental deviation value of the area to be processed at a unit distance.

[0111] In a possible embodiment, the second information processing module is further used to divide the first target area into regions to obtain at least one processing region.

[0112] In a possible embodiment, the second information processing module is also used to execute, for each processing area, the following steps: obtaining the spacing distance between each processing area and the acquisition device, determining the environmental deviation value of each processing area based on the spacing distance between each processing area and the acquisition device and the environmental deviation value of the area to be processed at a unit distance, performing data processing on the image to be processed based on the environmental deviation value of each processing area, and obtaining a corrected image of the first target area.

[0113] In a possible embodiment, the first acquisition module is further used to illuminate the object to be cooked with at least two color temperatures through at least two groups of preset lights in sequence, and obtain image gradient information of the object to be cooked under the at least two groups of preset lights, the at least two groups of preset lights correspond to the at least two color temperatures one by one, and the numbers correspond, data processing is performed on the image gradient information of the object to be cooked under each group of preset lights to obtain the sum of the image gradients of each group of preset lights, and based on the sum of the image gradients of each group of preset lights, a preset light with the largest sum of image gradients is selected from the at least two groups of preset lights, and the object to be cooked is illuminated with the preset light with the largest sum of image gradients.

[0114] It should be noted that the device and method embodiments in the device embodiment are based on the same application concept.

[0115] An embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement a unit testing method in an application provided in the above method embodiment.

[0116] The memory can be used to store software programs and modules. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, application programs required for functions, etc.; the data storage area can store data created according to the use of the device, etc. In addition, the memory can include a high-speed random access memory and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory can also include a memory controller to provide the processor with access to the memory.

[0117] An embodiment of the present application also provides a storage medium, which can be set in a server to store at least one instruction, at least one program, a code set or an instruction set related to a page processing method in an implementation method embodiment. The at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the unit testing method in the application provided in the above-mentioned method embodiment.

[0118] Optionally, in this embodiment, the storage medium may be located in at least one of the multiple network servers of the computer network. Optionally, in this embodiment, the storage medium may include, but is not limited to, various media that can store program codes, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk.

[0119] It should be noted that the above-mentioned sequence of the embodiments of the present application is for description only and does not represent the advantages and disadvantages of the embodiments. The above-mentioned specific embodiments of this specification are described. Other embodiments are within the scope of the attached 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.

[0120] 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 system and server 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 embodiments.

[0121] A person skilled in the art will understand 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-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0122] 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. An image processing method, characterized in that: The following steps are involved: Determine the area to be processed by a collection device; the area to be processed includes a first target area and a second target area; the position of the first target area corresponds to the position of the object to be cooked; Acquire a historical reference image of the second target area, a current reference image of the second target area, and an image to be processed of the first target area; Determining an environmental deviation value of the area to be processed based on the historical reference image and the current reference image; The image to be processed is subjected to data processing based on the environmental deviation value to obtain a corrected image of the first target area.

2. The image processing method according to claim 1, characterized in that: Before determining the environmental deviation value of the area to be processed based on the historical reference image and the current reference image, the method further includes: The second target area is divided into regions to obtain at least one comparison region.

3. The image processing method according to claim 2, characterized in that: The determining the environmental deviation value of the area to be processed based on the historical reference image and the current reference image includes: For each comparison area, executing: determining the environmental deviation value of each comparison area based on the historical reference image of each comparison area and the current reference image of each comparison area; obtaining the interval distance between each comparison area and the acquisition device; determining the environmental deviation value of each comparison area at a unit distance based on the environmental deviation value of each comparison area and the interval distance between each comparison area and the acquisition device; Data processing is performed on the environmental deviation value of each comparison area at a unit distance to obtain the environmental deviation value of the area to be processed at the unit distance.

4. The image processing method according to claim 3, characterized in that: Before performing data processing on the image to be processed based on the environmental deviation value to obtain a corrected image of the first target area, the method further includes: The first target area is divided into regions to obtain at least one processing region.

5. The image processing method according to claim 4, characterized in that: The step of performing data processing on the image to be processed based on the environmental deviation value to obtain a corrected image of the first target area includes: For each processing area, executing: obtaining the spacing distance between each processing area and the acquisition device; determining the environmental deviation value of each processing area based on the spacing distance between each processing area and the acquisition device and the environmental deviation value of the area to be processed at the unit distance; The image to be processed is subjected to data processing based on the environmental deviation value of each processing area to obtain a corrected image of the first target area.

6. The image processing method according to claim 1, characterized in that: Before determining the area to be processed by the acquisition device, the method further includes: sequentially illuminating the object to be cooked with at least two sets of preset lights at at least two color temperatures, and acquiring image gradient information of the object to be cooked under the at least two sets of preset lights; the at least two sets of preset lights correspond to the at least two color temperatures one by one, and the quantities correspond to each other; Performing data processing on the image gradient information of the object to be cooked under each set of preset light to obtain the sum of the image gradients of each set of preset light; Selecting a preset light having the largest image gradient sum from the at least two groups of preset lights based on the image gradient sum of each group of preset lights; The object to be cooked is illuminated by a preset light with the maximum sum of the image gradients.

7. An image processing device, characterized in that: include: A first acquisition module, used to determine the area to be processed through an acquisition device; The area to be processed includes a first target area and a second target area; The position of the first target area corresponds to the position of the object to be cooked; A second acquisition module, used for acquiring a historical reference image of the second target area, a current reference image of the second target area, and an image to be processed of the first target area; A first information processing module, configured to determine an environmental deviation value of the area to be processed based on the historical reference image and the current reference image; The second information processing module is used to perform data processing on the image to be processed based on the environmental deviation value to obtain a corrected image of the first target area.

8. The image processing device according to claim 7, characterized in that: The first information processing module is further used to divide the second target area into regions to obtain at least one comparison region.

9. An electronic device, characterized in that: The electronic device includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the image processing method as described in any one of claims 1 to 6.

10. A computer-readable storage medium, characterized in that: The storage medium stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the image processing method as described in any one of claims 1-6.