Method and device for adjusting internal illumination of electric appliance and electronic equipment

By responding to the light strip switch switching command inside the appliance and obtaining and adjusting preset parameters, the overexposure and underexposure problem in the internal lighting adjustment of the appliance is solved, achieving high-quality image output and cost-effective solutions.

CN120076119APending Publication Date: 2025-05-30NINGBO FOTILE KITCHEN WARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510262191.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-06
Publication Date
2025-05-30

AI Technical Summary

Technical Problem

The existing internal lighting adjustment solution for electrical appliances has problems such as overexposure and underexposure problems, unclear images and high costs.

Method used

By responding to the light strip switch switching command, the matching preset parameters, including the camera parameters and the light strip gear parameters, and adjust the camera equipment and the light strip according to the current brightness and target brightness to achieve precise control of light.

Benefits of technology

It realizes precise control of the light strip and camera equipment when the light strip switch state changes, optimizes visual output, provides clear images, improves user experience, and reduces costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120076119A_ABST
    Figure CN120076119A_ABST
Patent Text Reader

Abstract

The invention relates to an electric appliance internal illumination adjusting method and device and electronic equipment, and the method comprises the steps: obtaining a preset parameter matched with a lamp strip switch state corresponding to a lamp strip switch switching instruction in response to the lamp strip switch switching instruction of a target electric appliance, the preset parameters comprise a preset camera parameter of preset camera equipment in the target electric appliance and a preset gear parameter of a lamp strip in the target electric appliance; and based on the preset camera shooting parameters, preset camera shooting equipment is adjusted, and based on the preset gear parameters, the lamp strip is adjusted. According to the embodiment of the invention, overexposure and underexposure of the target electric appliance at the moment when the lamp strip is turned on and off and in the use process can be avoided, so that a user can check the internal condition of the target electric appliance more accurately, and the use experience of the user is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technologies, and in particular, to a method, an apparatus, and an electronic device for adjusting the internal illumination of an electrical appliance. Background Art

[0002] Currently, a light strip is installed inside an electrical appliance to provide illumination for better observing the cooking state of food ingredients. However, overexposure occurs instantaneously when the light strip is turned on, and underexposure occurs instantaneously when the light strip is turned off, resulting in problems such as unclear image details. In related technologies, for the overexposure when the light strip is turned on instantaneously and the underexposure when the light strip is turned off instantaneously, existing HDR-enabled cameras are often expensive, and the captured food ingredients are somewhat too dark or too bright. Without an HDR camera, due to the limited dynamic range, overexposure often occurs in the high-light area, and the dark area may be too dark, unable to show sufficient details. As a result, existing solutions for adjusting the internal illumination of electrical appliances have problems such as incomplete resolution of overexposure and underexposure problems, unclear images, and high costs. Summary of the Invention

[0003] The present disclosure provides a method, an apparatus, and an electronic device for adjusting the internal illumination of an electrical appliance to at least solve the technical problems such as incomplete resolution of overexposure and underexposure problems, unclear images, and high costs in related technologies. The technical solution of the present disclosure is as follows:

[0004] According to a first aspect of an embodiment of the present disclosure, there is provided a method for adjusting the internal illumination of an electrical appliance, including:

[0005] Responding to a light strip switch switching instruction for a target electrical appliance, obtaining preset parameters matching the light strip switch state corresponding to the light strip switch switching instruction, where the preset parameters include preset imaging parameters of a preset imaging device inside the target electrical appliance and preset gear parameters of the light strip inside the target electrical appliance, the preset imaging parameters include first imaging parameters in the case of overexposure corresponding to the light strip switch state being the on state or second imaging parameters in the case of underexposure corresponding to the light strip switch state being the off state, and the preset gear parameters include first gear parameters in the case of overexposure corresponding to the light strip switch state being the on state or second gear parameters in the case of underexposure corresponding to the light strip switch state being the off state; the first imaging parameters and the first gear parameters are imaging parameters and gear parameters when a first current internal image of the target electrical appliance currently collected satisfies a first preset condition during the process of adjusting the imaging parameters of the preset imaging device and the gear parameters of the light strip in the case of overexposure, and the second imaging parameters and the second gear parameters are imaging parameters and gear parameters when a second current internal image of the target electrical appliance currently collected satisfies a second preset condition during the process of adjusting the imaging parameters of the preset imaging device and the gear parameters of the light strip in the case of underexposure;

[0006] Adjust the preset imaging device based on the preset imaging parameters, and adjust the light strip based on the preset gear parameters.

[0007] In an optional embodiment, the first imaging parameter and the first gear parameter are obtained in the following manner:

[0008] Based on the preset imaging device, photograph a preset acquisition area inside the target electrical appliance to obtain a third current internal image. The preset acquisition area includes a food area, a light strip area, and a background area. The background area is the area remaining in the preset acquisition area after removing the food area and the light strip area;

[0009] Based on the third current internal image, determine the first current brightness;

[0010] Perform edge detection on the third current internal image to obtain first area information corresponding to the food area, second area information corresponding to the light strip area, and third area information corresponding to the background area;

[0011] Based on the first area information, the second area information, the third area information, and first preset weight information, determine a first target brightness. The first preset weight information includes preset weight information corresponding to the food area, the light strip area, and the background area respectively;

[0012] When the first current brightness and the first target brightness indicate that the third current internal image is overexposed, adjust the first current gear parameter of the light strip and the first target imaging parameter of the preset imaging device, and jump to the step of photographing a preset acquisition area inside the target electrical appliance based on the preset imaging device to obtain a third current internal image. The first target imaging parameter is obtained based on the first target brightness after adjustment of the first current gear parameter, the first current brightness after adjustment of the first current gear parameter, the first current exposure time of the preset imaging device, and the first current gain of the preset imaging device;

[0013] When the first current brightness and the first target brightness indicate that the third current internal image meets the first preset condition, use the current first current gear parameter as the first gear parameter and the current first target imaging parameter as the first imaging parameter; and the third current internal image when the first preset condition is met is the first current internal image.

[0014] In an optional embodiment, the method further includes:

[0015] In the case where a positioning operation for a first target area in the third current internal image is detected, increase the preset weight information corresponding to the first target area, where the first target area is any one of the ingredient area, the light strip area, and the background area;

[0016] Determining the first target brightness based on the first area information, the second area information, the third area information, and the first preset weight information includes:

[0017] Based on the first area information, the second area information, the third area information, the increased preset weight information corresponding to the first target area, and the preset weight information corresponding to other areas, determine the first target brightness, where the other areas are the two areas remaining from the ingredient area, the light strip area, and the background area excluding the first target area;

[0018] In the case where the first current brightness and the first target brightness indicate that the third current internal image meets the first preset condition, use the current first current gear parameter as the first gear parameter and the current first target imaging parameter as the first imaging parameter; and the third current internal image when meeting the first preset condition is the first current internal image includes:

[0019] In the case where the first current brightness and the first target brightness indicate that the first target area image in the third current internal image meets the first preset condition, use the current first current gear parameter as the first gear parameter and the current first target imaging parameter as the first imaging parameter; and the third current internal image when meeting the first preset condition is the first current internal image, and the first target area image is the area image of the first target area in the third current internal image.

[0020] In an alternative embodiment, adjusting the first current gear parameter of the light strip and the first target imaging parameter of the preset imaging device includes:

[0021] Lower the first current gear parameter;

[0022] Obtain the first current brightness after the first current gear parameter is lowered, the first target brightness after the first current gear parameter is lowered, the first current gain, and the first current exposure time;

[0023] Based on the first current brightness after the first current gear parameter is lowered, the first target brightness after the first current gear parameter is lowered, the first current exposure time, and the first current gain, adjust the first target imaging parameter.

[0024] In an alternative embodiment, the first region information includes first area information and first brightness corresponding to the food ingredient region, the second region information includes second area information and second brightness corresponding to the light strip region, the third region information includes third area information and third brightness corresponding to the background region, and obtaining the first region information corresponding to the food ingredient region, the second region information corresponding to the light strip region, and the third region information corresponding to the background region by performing edge detection on the third current internal image includes:

[0025] Performing edge detection on the third current internal image to obtain first region position information corresponding to the food ingredient region, second region position information corresponding to the light strip region, and third region position information corresponding to the background region;

[0026] Cropping the third current internal image based on the first region position information, the second region position information, and the third region position information to obtain a first region image where the food ingredient region is located, a second region image where the light strip region is located, and a third region image where the background region is located;

[0027] Determining the first area information and the first brightness based on the first region image, determining the second area information and the second brightness based on the second region image, and determining the third area information and the third brightness based on the third region image;

[0028] Determining the first target brightness based on the first region information, the second region information, the third region information, and first preset weight information includes:

[0029] Determining the first target brightness based on the first area information, the first brightness, the second area information, the second brightness, the third area information, the third brightness, and the first preset weight information.

[0030] In an alternative embodiment, the second camera parameter and the second gear parameter are obtained in the following manner:

[0031] Based on the preset camera device, photographing a preset acquisition region inside the target electrical appliance to obtain a fourth current internal image, where the preset acquisition region includes a food ingredient region, a light strip region, and a background region, and the background region is the remaining region of the preset acquisition region excluding the food ingredient region and the light strip region;

[0032] Determining a second current brightness based on the fourth current internal image;

[0033] Perform edge detection on the fourth current internal image to obtain fourth region information corresponding to the ingredient area, fifth region information corresponding to the light strip area, and sixth region information corresponding to the background area;

[0034] Based on the fourth region information, the fifth region information, the sixth region information, and second preset weight information, determine a second target brightness, where the second preset weight information includes preset weight information corresponding to the ingredient area, the light strip area, and the background area respectively;

[0035] In the case where the second current brightness and the second target brightness indicate that the fourth current internal image is underexposed, adjust the second current gear parameter of the light strip and the second target imaging parameter of the preset imaging device, and jump to the step of performing shooting on a preset acquisition area inside the target electrical appliance based on the preset imaging device to obtain a fourth current internal image. The second target imaging parameter is obtained based on the second target brightness after adjusting the second current gear parameter, the second current brightness after adjusting the second current gear parameter, the second current exposure time of the preset imaging device, and the second current gain of the preset imaging device;

[0036] In the case where the second current brightness and the second target brightness indicate that the fourth current internal image meets the second preset condition, use the current second current gear parameter as the second gear parameter and the current second target imaging parameter as the second imaging parameter; and the fourth current internal image when meeting the second preset condition is the second current internal image.

[0037] In an optional embodiment, the method further includes:

[0038] During the use of the target electrical appliance, perform shooting on a preset acquisition area inside the target electrical appliance based on the preset imaging device to obtain a fifth current internal image. The preset acquisition area includes an ingredient area, a light strip area, and a background area, and the background area is the area remaining in the preset acquisition area after removing the ingredient area and the light strip area;

[0039] Based on the fifth current internal image, determine a third current brightness;

[0040] Perform edge detection on the fifth current internal image to obtain seventh region information corresponding to the ingredient area, eighth region information corresponding to the light strip area, and ninth region information corresponding to the background area;

[0041] Determine a third target brightness based on the seventh region information, the eighth region information, the ninth region information, and third preset weight information, where the third preset weight information includes preset weight information corresponding to the food material region, the light strip region, and the background region respectively;

[0042] When the third current brightness and the third target brightness indicate that the fifth current internal image is overexposed, obtain the first camera parameter and the first gear parameter;

[0043] Adjust the preset camera device based on the first camera parameter, and adjust the light strip based on the first gear parameter.

[0044] In an alternative embodiment, the method further includes:

[0045] During the use of the target electrical appliance, based on the preset camera device, photograph a preset acquisition region inside the target electrical appliance to obtain a sixth current internal image, where the preset acquisition region includes a food material region, a light strip region, and a background region, and the background region is the region remaining in the preset acquisition region after removing the food material region and the light strip region;

[0046] Determine a fourth current brightness based on the sixth current internal image;

[0047] Perform edge detection on the sixth current internal image to obtain tenth region information corresponding to the food material region, eleventh region information corresponding to the light strip region, and twelfth region information corresponding to the background region;

[0048] Determine a fourth target brightness based on the tenth region information, the eleventh region information, the twelfth region information, and fourth preset weight information, where the fourth preset weight information includes preset weight information corresponding to the food material region, the light strip region, and the background region respectively;

[0049] When the fourth current brightness and the fourth target brightness indicate that the sixth current internal image is underexposed, obtain the second camera parameter and the second gear parameter;

[0050] Adjust the preset camera device based on the second camera parameter, and adjust the light strip based on the second gear parameter.

[0051] According to a second aspect of the embodiments of the present disclosure, there is provided an internal illumination adjustment device for an electrical appliance, including:

[0052] A preset parameter acquisition module, configured to respond to a light strip switch switching instruction for a target electrical appliance, and acquire preset parameters that match the light strip switch state corresponding to the light strip switch switching instruction. The preset parameters include preset imaging parameters of a preset imaging device inside the target electrical appliance and preset gear parameters of a light strip inside the target electrical appliance. The preset imaging parameters include first imaging parameters corresponding to overexposure when the light strip switch state is in the on state or second imaging parameters corresponding to underexposure when the light strip switch state is in the off state. The preset gear parameters include first gear parameters corresponding to overexposure when the light strip switch state is in the on state or second gear parameters corresponding to underexposure when the light strip switch state is in the off state. The first imaging parameters and the first gear parameters are imaging parameters and gear parameters when the first current internal image of the target electrical appliance currently collected satisfies a first preset condition during the process of adjusting the imaging parameters of the preset imaging device and the gear parameters of the light strip in the case of overexposure. The second imaging parameters and the second gear parameters are imaging parameters and gear parameters when the second current internal image of the target electrical appliance currently collected satisfies a second preset condition during the process of adjusting the imaging parameters of the preset imaging device and the gear parameters of the light strip in the case of underexposure.

[0053] An adjustment module, configured to adjust the preset imaging device based on the preset imaging parameters and adjust the light strip based on the preset gear parameters.

[0054] In an optional embodiment, the first imaging parameters and the first gear parameters are obtained by the following module:

[0055] A third current internal image acquisition module, configured to photograph a preset acquisition area inside the target electrical appliance based on the preset imaging device to obtain a third current internal image. The preset acquisition area includes a food material area, a light strip area, and a background area. The background area is the area remaining in the preset acquisition area after removing the food material area and the light strip area.

[0056] A first current brightness acquisition module, configured to determine a first current brightness based on the third current internal image.

[0057] A first area information acquisition module for the area information, configured to perform edge detection on the third current internal image to obtain first area information corresponding to the food material area, second area information corresponding to the light strip area, and third area information corresponding to the background area.

[0058] The first target brightness acquisition module is configured to determine a first target brightness based on the first area information, the second area information, the third area information, and first preset weight information, where the first preset weight information includes preset weight information corresponding to the food ingredient area, the light strip area, and the background area respectively;

[0059] The first parameter adjustment module is configured to, when the first current brightness and the first target brightness indicate that the third current internal image is overexposed, adjust a first current gear parameter of the light strip and a first target imaging parameter of the preset imaging device, and jump to the third current internal image acquisition module. The first target imaging parameter is obtained based on the first target brightness after adjustment of the first current gear parameter, the first current brightness after adjustment of the first current gear parameter, a first current exposure time of the preset imaging device, and a first current gain of the preset imaging device;

[0060] The first parameter acquisition module is configured to, when the first current brightness and the first target brightness indicate that the third current internal image meets the first preset condition, use the current first current gear parameter as the first gear parameter and the current first target imaging parameter as the first imaging parameter; and the third current internal image when meeting the first preset condition is the first current internal image.

[0061] In an optional embodiment, the device further includes:

[0062] The first preset weight information adjustment module is configured to, when a positioning operation for a first target area in the third current internal image is detected, increase the preset weight information corresponding to the first target area, where the first target area is any one of the food ingredient area, the light strip area, and the background area;

[0063] The first target brightness acquisition module includes:

[0064] The first target brightness acquisition unit is configured to determine the first target brightness based on the first area information, the second area information, the third area information, the increased preset weight information corresponding to the first target area, and the preset weight information corresponding to other areas, where the other areas are the two areas remaining from the food ingredient area, the light strip area, and the background area excluding the first target area;

[0065] The first parameter acquisition module includes:

[0066] The first parameter acquisition unit is configured to, when the first current brightness and the first target brightness indicate that the first target area image in the third current internal image meets the first preset condition, use the current first current gear parameter as the first gear parameter and the current first target camera parameter as the first camera parameter; and the third current internal image when meeting the first preset condition is the first current internal image, and the first target area image is the area image of the first target area in the third current internal image.

[0067] In an alternative embodiment, the first parameter adjustment module includes:

[0068] The first current gear parameter reduction unit is configured to reduce the first current gear parameter;

[0069] The first data acquisition unit is configured to acquire the first current brightness after the reduction of the first current gear parameter, the first target brightness after the reduction of the first current gear parameter, the first current gain, and the first current exposure time;

[0070] The first target camera parameter adjustment unit is configured to adjust the first target camera parameter based on the first current brightness after the reduction of the first current gear parameter, the first target brightness after the reduction of the first current gear parameter, the first current exposure time, and the first current gain.

[0071] In an alternative embodiment, the first area information includes the first area information and the first brightness corresponding to the food ingredient area, the second area information includes the second area information and the second brightness corresponding to the light strip area, the third area information includes the third area information and the third brightness corresponding to the background area, and the area information first acquisition module includes:

[0072] The area position information acquisition unit is configured to perform edge detection on the third current internal image to obtain the first area position information corresponding to the food ingredient area, the second area position information corresponding to the light strip area, and the third area position information corresponding to the background area;

[0073] The area image acquisition unit is configured to crop the third current internal image based on the first area position information, the second area position information, and the third area position information to obtain the first area image where the food ingredient area is located, the second area image where the light strip area is located, and the third area image where the background area is located;

[0074] An area information acquisition unit is configured to determine the first area information and the first brightness based on the first area image, determine the second area information and the second brightness based on the second area image, and determine the third area information and the third brightness based on the third area image;

[0075] The first target brightness acquisition module includes:

[0076] A first target brightness acquisition subunit is configured to determine the first target brightness based on the first area information, the first brightness, the second area information, the second brightness, the third area information, the third brightness, and the first preset weight information.

[0077] In an optional embodiment, the second camera parameter and the second gear parameter are obtained by using the following module:

[0078] A fourth current internal image acquisition module is configured to capture a fourth current internal image of a preset acquisition area inside the target electrical appliance based on the preset camera device, where the preset acquisition area includes a food material area, a light strip area, and a background area, and the background area is the area remaining in the preset acquisition area after removing the food material area and the light strip area;

[0079] A second current brightness acquisition module is configured to determine a second current brightness based on the fourth current internal image;

[0080] An area information second acquisition module is configured to perform edge detection on the fourth current internal image to obtain fourth area information corresponding to the food material area, fifth area information corresponding to the light strip area, and sixth area information corresponding to the background area;

[0081] A second target brightness acquisition module is configured to determine a second target brightness based on the fourth area information, the fifth area information, the sixth area information, and second preset weight information, where the second preset weight information includes preset weight information corresponding to the food material area, the light strip area, and the background area respectively;

[0082] A second parameter adjustment module is configured to, when the second current brightness and the second target brightness indicate that the fourth current internal image is underexposed, adjust the second current gear parameter of the light strip and the second target camera parameter of the preset camera device, and jump to the fourth current internal image acquisition module, where the second target camera parameter is obtained based on the second target brightness after adjustment of the second current gear parameter, the second current brightness after adjustment of the second current gear parameter, the second current exposure time of the preset camera device, and the second current gain of the preset camera device;

[0083] A second parameter acquisition module, configured to, when the second current brightness and the second target brightness indicate that the fourth current internal image satisfies the second preset condition, use the current second current gear parameter as the second gear parameter and the current second target imaging parameter as the second imaging parameter; and the fourth current internal image when the second preset condition is satisfied is the second current internal image.

[0084] In an optional embodiment, the apparatus further includes:

[0085] A fifth current internal image acquisition module, configured to, during the use of the target electrical appliance, based on the preset imaging device, capture a preset acquisition area inside the target electrical appliance to obtain a fifth current internal image, where the preset acquisition area includes a food material area, a light strip area, and a background area, and the background area is the area remaining after removing the food material area and the light strip area from the preset acquisition area;

[0086] A third current brightness acquisition module, configured to determine a third current brightness based on the fifth current internal image;

[0087] An area information third acquisition module, configured to perform edge detection on the fifth current internal image to obtain seventh area information corresponding to the food material area, eighth area information corresponding to the light strip area, and ninth area information corresponding to the background area;

[0088] A third target brightness acquisition module, configured to determine a third target brightness based on the seventh area information, the eighth area information, the ninth area information, and third preset weight information, where the third preset weight information includes preset weight information corresponding to the food material area, the light strip area, and the background area respectively;

[0089] A first parameter acquisition sub-module, configured to, when the third current brightness and the third target brightness indicate that the fifth current internal image is overexposed, acquire the first imaging parameter and the first gear parameter;

[0090] A first adjustment module, configured to adjust the preset imaging device based on the first imaging parameter and adjust the light strip based on the first gear parameter.

[0091] In an optional embodiment, the apparatus further includes:

[0092] The sixth current internal image acquisition module is configured to, during the use of the target electrical appliance, capture a sixth current internal image of a preset acquisition area inside the target electrical appliance based on the preset imaging device. The preset acquisition area includes a food material area, a light strip area, and a background area, and the background area is the area remaining in the preset acquisition area after removing the food material area and the light strip area;

[0093] The fourth current brightness acquisition module is configured to determine a fourth current brightness based on the sixth current internal image;

[0094] The area information fourth acquisition module is configured to perform edge detection on the sixth current internal image to obtain a tenth area information corresponding to the food material area, an eleventh area information corresponding to the light strip area, and a twelfth area information corresponding to the background area;

[0095] The fourth target brightness acquisition module is configured to determine a fourth target brightness based on the tenth area information, the eleventh area information, the twelfth area information, and fourth preset weight information, where the fourth preset weight information includes preset weight information corresponding to the food material area, the light strip area, and the background area respectively;

[0096] The second parameter acquisition sub-module is configured to, when the fourth current brightness and the fourth target brightness indicate that the sixth current internal image is underexposed, acquire the second imaging parameter and the second gear parameter;

[0097] The second adjustment module is configured to adjust the preset imaging device based on the second imaging parameter and adjust the light strip based on the second gear parameter.

[0098] In an alternative embodiment,

[0099] According to a third aspect of the embodiments of the present disclosure, there is provided an electronic device, including: a processor; a memory for storing instructions executable by the processor; wherein, the processor is configured to execute the instructions to implement the method according to any one of the above first aspects.

[0100] According to a fourth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium, when the instructions in the storage medium are executed by a processor of an electronic device, enabling the electronic device to execute the method according to any one of the methods for adjusting the internal illumination of an electrical appliance in the embodiments of the present disclosure.

[0101] According to a fifth aspect of the embodiments of the present disclosure, there is provided a computer program product containing instructions, when it runs on a computer, enabling the computer to execute the method according to any one of the above first aspects.

[0102] The technical solutions provided by the embodiments of the present disclosure at least bring the following beneficial effects:

[0103] According to the state of the light strip switch, the system obtains preset parameters, including different camera parameters and light strip gears in the case of overexposure or underexposure, which helps the system adjust the light strip and the camera device when the state of the light strip switch changes, so as to achieve precise control of the light strip and the camera device at the moment when the light strip switch is turned on or off, optimize the visual output, and provide the desired lighting effect for the user. By responding to the change of the light strip switch state and adjusting the light strip and the camera device according to the preset parameters, the system realizes precise control and optimization of the light strip and the camera device, provides clear images, improves the user experience, and requires less cost.

[0104] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0105] The accompanying drawings herein are incorporated into the specification and constitute a part of this specification, showing embodiments consistent with the present disclosure, and are used together with the specification to explain the principles of the present disclosure and do not constitute an improper limitation to the present disclosure.

[0106] Figure 1 is a flowchart of a method for adjusting the internal illumination of an electrical appliance shown according to an exemplary embodiment;

[0107] Figure 2 is a schematic flow diagram of a process for obtaining a first camera parameter and a first gear parameter shown according to an exemplary embodiment;

[0108] Figure 3 is a schematic flow diagram of a process for performing edge detection on a third current internal image to obtain first region information corresponding to a food ingredient region, second region information corresponding to a light strip region, and third region information corresponding to a background region shown according to an exemplary embodiment;

[0109] Figure 4 is a schematic flow diagram of a process for adjusting a first current gear parameter of a light strip and a first target camera parameter of a preset camera device shown according to an exemplary embodiment;

[0110] Figure 5 is a schematic flow diagram of a process for obtaining a second camera parameter and a second gear parameter shown according to an exemplary embodiment;

[0111] Figure 6 is a block diagram of a device for adjusting the internal illumination of an electrical appliance shown according to an exemplary embodiment;

[0112] Figure 7 is a block diagram of an electronic device for adjusting the internal illumination of an electrical appliance shown according to an exemplary embodiment. Detailed implementation manners

[0113] In order to enable those of ordinary skill in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.

[0114] It should be noted that the terms "first", "second", etc. in the description and claims of the present disclosure and the above-mentioned accompanying drawings are used to distinguish similar objects, and do not necessarily need to be used to describe a specific order or sequence. It should be understood that such used data may be interchanged under appropriate circumstances so that the embodiments of the present disclosure described herein can be implemented in an order different from those illustrated or described herein. The implementation manners described in the following exemplary embodiments do not represent all implementation manners consistent with the present disclosure. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0115] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for display, data for analysis, etc.) involved in the present disclosure are all information and data authorized by the user or fully authorized by all parties.

[0116] Please refer to Figure 1 , Figure 1 which is a flowchart of a method for adjusting the internal illumination of an electrical appliance shown according to an exemplary embodiment. Specifically, the method may include the following steps:

[0117] Step S101, in response to a strip light switch switching instruction for a target electrical appliance, obtain preset parameters that match the strip light switch state corresponding to the strip light switch switching instruction.

[0118] In a specific embodiment, the above strip light switch switching instruction may be an instruction for the indicator strip light to switch from off to on, or the above strip light switch switching instruction may be an instruction for the indicator strip light to switch from on to off.

[0119] In a specific embodiment, the above preset parameters include the preset camera parameters of a preset camera device inside the target electrical appliance and the preset gear parameters of a light strip inside the target electrical appliance. In a specific embodiment, the preset camera parameters include the first camera parameters corresponding to overexposure when the light strip switch state is on or the second camera parameters corresponding to underexposure when the light strip switch state is off. In a specific embodiment, the preset gear parameters include the first gear parameters corresponding to overexposure when the light strip switch state is on or the second gear parameters corresponding to underexposure when the light strip switch state is off. In a specific embodiment, the first camera parameters and the first gear parameters are the camera parameters and gear parameters when the first current internal image of the target electrical appliance currently collected satisfies a first preset condition during the process of adjusting the camera parameters of the preset camera device and the gear parameters of the light strip under overexposure conditions. In a specific embodiment, the second camera parameters and the second gear parameters are the camera parameters and gear parameters when the second current internal image of the target electrical appliance currently collected satisfies a second preset condition during the process of adjusting the camera parameters of the preset camera device and the gear parameters of the light strip under underexposure conditions.

[0120] In a specific embodiment, as Figure 2 shown, the above first camera parameters and the above first gear parameters are obtained by the following method:

[0121] Step S201, based on the preset camera device, photograph a preset acquisition area inside the target electrical appliance to obtain a third current internal image.

[0122] In a specific embodiment, the above preset acquisition area includes a food area, a light strip area, and a background area, and the background area is the area remaining after removing the food area and the light strip area from the preset acquisition area.

[0123] Step S203, based on the third current internal image, determine the first current brightness.

[0124] In a specific embodiment, the above determining the first current brightness based on the third current internal image may be to decompose the third current internal image into a pixel array, and each pixel has three values, respectively representing the color intensities of the red, green, and blue channels. By accessing the RGB channel values of each pixel, obtain the value R of the red channel, the value G of the green channel, and the value B of the blue channel of the pixels of the third current internal image. Calculate the first current brightness through the formula Y = 0.299*R + 0.587*G + 0.114*B.

[0125] Step S205, perform edge detection on the third current internal image to obtain first area information corresponding to the food area, second area information corresponding to the light strip area, and third area information corresponding to the background area.

[0126] In a specific embodiment, the first region information includes the first area information and the first brightness corresponding to the food ingredient region, the second region information includes the second area information and the second brightness corresponding to the light strip region, and the third region information includes the third area information and the third brightness corresponding to the background region.

[0127] In a specific embodiment, as Figure 3 shown, the edge detection of the third current internal image to obtain the first region information corresponding to the food ingredient region, the second region information corresponding to the light strip region, and the third region information corresponding to the background region includes:

[0128] Step S301, perform edge detection on the third current internal image to obtain the first region position information corresponding to the food ingredient region, the second region position information corresponding to the light strip region, and the third region position information corresponding to the background region.

[0129] In a specific embodiment, a food ingredient edge detection network and a light strip edge detection network can be preset to perform food ingredient edge detection and light strip edge detection on the third current internal image respectively. Specifically, taking the food ingredient edge detection network as an example, the third current internal image can be input into the food ingredient edge detection network for food ingredient edge detection to obtain the first region position information. Specifically, the above food ingredient edge detection network is a deep learning network for performing food ingredient edge detection. In an optional embodiment, the above food ingredient edge detection network can be trained based on multiple sample images and the corresponding labeled region position information of each sample image. In a specific embodiment, the above sample images can be images containing food ingredients. In a specific embodiment, the above labeled region position information can be the region position information of the food ingredients in each sample image.

[0130] In a specific embodiment, based on multiple sample images and the corresponding labeled region position information of each sample image, the food ingredient edge detection training of the to-be-trained food ingredient edge detection model to obtain the preset food ingredient edge detection model may include: determining the current sample image from the multiple sample images, inputting the current sample image into the to-be-trained food ingredient edge detection model for food ingredient edge detection to obtain the predicted region position information; determining the food ingredient edge detection loss according to the predicted region position information and the labeled region position information; and training the to-be-trained food ingredient edge detection model based on the food ingredient edge detection loss to obtain the preset food ingredient edge detection model.

[0131] In a specific embodiment, the current sample image can be the training data (partial sample images) of the current training cycle. Specifically, the current sample image can be determined randomly from multiple sample images, or partial sample images that have not participated in model training can be randomly selected from multiple sample images as the current sample image; the position information of the annotation area corresponding to any sample image can be used to indicate the area position information of the ingredients in the sample image.

[0132] In a specific embodiment, determining the ingredient edge detection loss according to the predicted area position information and the annotation area position information can include determining the ingredient edge detection loss of the predicted area position information and the annotation area position information in combination with a preset loss function; specifically, the ingredient edge detection loss can characterize the performance of the current ingredient edge detection model to be trained in detecting the area position information. Specifically, the preset loss function can be set in combination with the actual application.

[0133] In a specific embodiment, training the ingredient edge detection model to be trained based on the ingredient edge detection loss to obtain a preset ingredient edge detection model can include: combining the gradient descent method and the ingredient edge detection loss to update the model parameters of the ingredient edge detection model to be trained, and based on the updated ingredient edge detection model to be trained, repeating the above cycle iteration operation from determining the current sample image in multiple sample images to updating the model parameters of the ingredient edge detection model to be trained until the preset convergence condition is satisfied, and the ingredient edge detection model to be trained corresponding to when the preset convergence condition is satisfied is the preset ingredient edge detection model.

[0134] In a specific embodiment, the preset convergence condition can be set in combination with the actual application. For example, the number of executions of the cycle iteration operation reaches a preset number, the ingredient edge detection loss is less than a specified threshold, etc. Specifically, it can be set in combination with the training speed and model accuracy requirements.

[0135] In a specific embodiment, for the specific refinement of obtaining the second area position information by inputting the third current internal image into the light strip edge detection network for light strip edge detection, reference can be made to the above-mentioned process of inputting the third current internal image into the ingredient edge detection network for ingredient edge detection to obtain the first area position information, which will not be elaborated here.

[0136] Step S303, crop the third current internal image based on the first area position information, the second area position information, and the third area position information to obtain a first area image where the ingredient area is located, a second area image where the light strip area is located, and a third area image where the background area is located.

[0137] In a specific embodiment, the above-mentioned first region image is the region image of the food material region in the third current internal image. The above-mentioned second region image is the region image of the light strip region in the third current internal image. The above-mentioned third region image is the region image of the background region in the third current internal image.

[0138] Step S305: Based on the first region image, determine the first area information and the first brightness. Based on the second region image, determine the second area information and the second brightness. Based on the third region image, determine the third area information and the third brightness.

[0139] In a specific embodiment, the above-mentioned determination of the first area information based on the first region image may be to calculate the area of the contour of the first region image using a function in the image processing library.

[0140] In a specific embodiment, for the specific refinement of the above-mentioned determination of the second area information and the third area information based on the second region image and the third region image respectively, reference may be made to the above-mentioned determination of the first area information based on the first region image, which will not be elaborated here.

[0141] In a specific embodiment, for the specific refinement of the above-mentioned determination of the first brightness, the second brightness, and the third brightness based on the first region image, the second region image, and the third region image respectively, reference may be made to the above-mentioned step S203, which will not be elaborated here.

[0142] Step S207: Based on the first region information, the second region information, the third region information, and the first preset weight information, determine the first target brightness.

[0143] In a specific embodiment, the above-mentioned first preset weight information includes the preset weight information corresponding to the food material region, the light strip region, and the background region respectively. In a specific embodiment, the sum of the preset weight information corresponding to the food material region, the light strip region, and the background region respectively is 1. Optionally, the first preset weight information can be set in advance in combination with the actual application requirements.

[0144] In a specific embodiment, the above-mentioned determination of the first target brightness based on the first region information, the second region information, the third region information, and the first preset weight information may include: Based on the first area information, the first brightness, the second area information, the second brightness, the third area information, the third brightness, the weight of the food material region, the weight of the light strip region, and the weight of the background region, determine the first target brightness. Specifically, the formula for calculating the first target brightness is where α i is the weight of the food material region, β is the weight of the light strip region, γ is the weight of the background region, L i is the first brightness, S i is the first area information, L Lis the second brightness, S L is the second area information, L r is the third brightness, S r is the third area information, L obj is the first target brightness.

[0145] Step S209, when the first current brightness and the first target brightness indicate that the third current internal image is overexposed, adjust the first current gear parameter of the light strip and the first target camera parameter of the preset camera device, and jump to step S201. Based on the preset camera device, photograph the preset acquisition area inside the target electrical appliance to obtain the third current internal image.

[0146] In a specific embodiment, the above first target camera parameters include a first target gain and a first target exposure time. In a specific embodiment, the above first target camera parameters are obtained based on the first target brightness after adjusting the first current gear parameter, the first current brightness after adjusting the first current gear parameter, the first current exposure time of the preset camera device, and the first current gain of the preset camera device.

[0147] In a specific embodiment, when the first current brightness and the first target brightness indicate that the third current internal image is overexposed, adjusting the first current gear parameter of the light strip and the first target camera parameter of the preset camera device may include: when the first current brightness is less than the first target brightness, that is, when the third current internal image is overexposed, adjust the second current gear parameter of the light strip, the second target gain, and the second target exposure time of the preset camera device.

[0148] In a specific embodiment, as Figure 4 shown, adjusting the first current gear parameter of the light strip and the first target camera parameter of the preset camera device includes:

[0149] Step S401, lower the first current gear parameter.

[0150] Step S403, obtain the first current brightness after lowering the first current gear parameter, the first target brightness after lowering the first current gear parameter, the first current gain, and the first current exposure time.

[0151] In a specific embodiment, obtaining the first current brightness after the first current gear parameter is lowered and the first target brightness after the first current gear parameter is lowered may include: determining the first current brightness after the first current gear parameter is lowered and the first target brightness after the first current gear parameter is lowered based on the third current internal image collected after the first current gear parameter is lowered. In a specific embodiment, for the specific refinement of determining the first current brightness after the first current gear parameter is lowered based on the third current internal image collected after the first current gear parameter is lowered, reference may be made to step S203 above, which will not be elaborated here. In a specific embodiment, for the specific refinement of obtaining the first target brightness after the first current gear parameter is lowered based on the third current internal image collected after the first current gear parameter is lowered, reference may be made to step S205 and step S207 above, which will not be elaborated here.

[0152] In a specific embodiment, obtaining the first current gain and the first current exposure time above may be the real-time parameters of a preset camera device. Specifically, the first current gain and the first current exposure time may be directly read.

[0153] Step S405: Adjust the first target camera parameter based on the first current brightness after the first current gear parameter is lowered, the first target brightness after the first current gear parameter is lowered, the first current exposure time, and the first current gain.

[0154] In a specific embodiment, adjusting the first target camera parameter based on the first current brightness after the first current gear parameter is lowered, the first target brightness after the first current gear parameter is lowered, the first current exposure time, and the first current gain may include: lowering the first target exposure time based on the first current brightness after the first current gear parameter is lowered, the first target brightness after the first current gear parameter is lowered, and the first current exposure time, and lowering the first target gain based on the first current brightness after the first current gear parameter is lowered, the first target brightness after the first current gear parameter is lowered, and the first current gain. Specifically, the formula for calculating the first target exposure time is where L obj is the first target brightness, L cur is the first current brightness, t cur is the first current exposure time, and t obj is the first target exposure time. The formula for calculating the first target gain is where L obj is the first target brightness, L cur is the first current brightness, G cur is the first current gain, and G obj is the first target gain.

[0155] In the above embodiments, in the case of overexposure, by adjusting the light strip gear, and based on the obtained current brightness after adjusting the light strip gear and the target brightness after adjusting the light strip gear, the obtained real-time current gain and real-time current exposure time are used to adjust the target gain and target exposure time of the camera, so as to achieve the technical effect of automatic image exposure control and optimization, which can help ensure that the target electrical appliance images can maintain good visibility and image quality in the case of overexposure.

[0156] Step S211, when the first current brightness and the first target brightness indicate that the third current internal image meets the first preset condition, use the current first current gear parameter as the first gear parameter and the current first target camera parameter as the first camera parameter.

[0157] In a specific embodiment, the above first preset condition can be set in combination with actual applications. When the third current internal image meets the first preset condition, the third current internal image is neither underexposed nor overexposed; optionally, when the first current brightness is equal to the first target brightness, it can be determined that the third current internal image meets the first preset condition.

[0158] In a specific embodiment, the third current internal image when meeting the first preset condition is the first current internal image.

[0159] In a specific embodiment, the above step of using the current first current gear parameter as the first gear parameter and the current first target camera parameter as the first camera parameter when the first current brightness and the first target brightness indicate that the third current internal image meets the first preset condition may include: when the first current brightness after reducing the first current gear parameter is equal to the first target brightness, that is, when the third current internal image is neither underexposed nor overexposed, use the first current gear parameter corresponding to the current third current internal image as the first gear parameter and the first target camera parameter corresponding to the current third current internal image as the first camera parameter.

[0160] In the above embodiments, through automated image processing and parameter adjustment, it is ensured that the internal electrical appliance images obtained from the imaging device can achieve the expected visual effects in the case of overexposure.

[0161] In a specific embodiment, the above method further includes:

[0162] When a positioning operation for the first target area in the third current internal image is detected, increase the preset weight information corresponding to the first target area, where the first target area is any one of the food area, the light strip area, and the background area;

[0163] The above step S207 of determining the first target brightness based on the first region information, the second region information, the third region information, and the first preset weight information includes:

[0164] Based on the first region information, the second region information, the third region information, the adjusted preset weight information corresponding to the first target region, and the preset weight information corresponding to other regions, determine the first target brightness, where the other regions are the two regions remaining from the food material region, the light strip region, and the background region excluding the first target region;

[0165] The above step S211 of taking the current first current gear parameter as the first gear parameter and the current first target camera parameter as the first camera parameter when the first current brightness and the first target brightness indicate that the third current internal image meets the first preset condition includes:

[0166] When the first current brightness and the first target brightness indicate that the image of the first target region in the third current internal image meets the first preset condition, take the current first current gear parameter as the first gear parameter and the current first target camera parameter as the first camera parameter.

[0167] In a specific embodiment, the above image of the first target region is the regional image of the first target region in the third current internal image.

[0168] In a specific embodiment, the positioning operation of the first target region in the above third current internal image can be triggered by touch operation methods such as clicking or long-pressing the region where the target region is located in the third current internal image.

[0169] In the above embodiment, by clicking on the target region and adjusting the preset weight information, the system can more accurately locate and enhance the specific target region, thereby optimizing the visual performance of the target region in the image. Using multi-region information and weight adjustment, the system can intelligently determine the brightness level of each region, making the target region more prominent in the overall image and achieving more precise target highlighting and visual optimization.

[0170] In a specific embodiment, as Figure 5 shown, the above second camera parameter and the above second gear parameter are obtained by the following method:

[0171] Step S501, based on a preset camera device, photograph a preset acquisition region inside the target electrical appliance to obtain a fourth current internal image, where the preset acquisition region includes a food material region, a light strip region, and a background region, and the background region is the region remaining from the preset acquisition region excluding the food material region and the light strip region.

[0172] Step S503, based on the fourth current internal image, determine the second current brightness.

[0173] In a specific embodiment, for the specific refinement of step S503 above, refer to step S203 above, which will not be elaborated here.

[0174] Step S505: Perform edge detection on the fourth current internal image to obtain fourth region information corresponding to the food ingredient region, fifth region information corresponding to the light strip region, and sixth region information corresponding to the background region.

[0175] Step S507: Determine the second target brightness based on the fourth region information, fifth region information, sixth region information, and second preset weight information.

[0176] In a specific embodiment, the second preset weight information includes preset weight information corresponding to the food ingredient region, the light strip region, and the background region respectively. In a specific embodiment, the sum of the preset weight information corresponding to the food ingredient region, the light strip region, and the background region respectively is 1. Optionally, the second preset weight information can be preset in combination with actual application requirements.

[0177] In a specific embodiment, for the specific refinement of step S505 and step S507 above, refer to step S205 and step S207 above, which will not be elaborated here.

[0178] Step S509: In the case where the second current brightness and the second target brightness indicate that the fourth current internal image is underexposed, adjust the second current gear parameter of the light strip and the second target camera parameter of the preset camera device, and jump to step S501 to capture the preset acquisition region inside the target electrical appliance based on the preset camera device to obtain the fourth current internal image.

[0179] In a specific embodiment, the above second target camera parameters include a second target gain and a second target exposure time. In a specific embodiment, the above second target camera parameters are obtained based on the second target brightness adjusted by the second current gear parameter, the second current brightness adjusted by the second current gear parameter, the second current exposure time of the preset camera device, and the second current gain of the preset camera device.

[0180] In a specific embodiment, the above adjustment of the second current gear parameter of the light strip and the second target camera parameter of the preset camera device in the case where the second current brightness and the second target brightness indicate that the fourth current internal image is underexposed may include: when the second current brightness is less than the second target brightness, that is, when the fourth current internal image is underexposed, increase the second current gear parameter of the light strip and the second target gain and the second target exposure time of the preset camera device.

[0181] In a specific embodiment, the above-mentioned adjustment of the second current gear parameter of the light strip and the second target camera parameter of the preset camera device includes:

[0182] Increase the second current gear parameter;

[0183] Obtain the fifth current brightness after the second current gear parameter is increased, the fifth target brightness after the second current gear parameter is increased, the second current gain, and the second current exposure time;

[0184] Based on the first current brightness after the second current gear parameter is increased, the second target brightness after the second current gear parameter is increased, the second current exposure time, and the second current gain, increase the second target camera parameter.

[0185] Step S511, when the second current brightness and the second target brightness indicate that the fourth current internal image meets the second preset condition, use the current second current gear parameter as the second gear parameter and the current second target camera parameter as the second camera parameter.

[0186] In a specific embodiment, the above-mentioned second preset condition can be set in combination with the actual application. When the fourth current internal image meets the second preset condition, the fourth current internal image is neither underexposed nor overexposed; optionally, when the second current brightness is equal to the second target brightness, it can be determined that the fourth current internal image meets the second preset condition.

[0187] In a specific embodiment, the fourth current internal image when meeting the second preset condition is the second current internal image.

[0188] In a specific embodiment, the above-mentioned when the second current brightness and the second target brightness indicate that the fourth current internal image meets the second preset condition, using the current second current gear parameter as the second gear parameter and the current second target camera parameter as the second camera parameter may include: when the second current brightness after increasing the first current gear parameter is equal to the second target brightness, that is, when the fourth current internal image is neither underexposed nor overexposed, use the second current gear parameter corresponding to the current fourth current internal image as the second gear parameter, and use the second target camera parameter corresponding to the current fourth current internal image as the second camera parameter.

[0189] In the above embodiment, through automated image processing and parameter adjustment, it is ensured that the internal image of the electrical appliance obtained from the camera device can achieve the expected visual effect in the case of underexposure.

[0190] Step S103, based on the preset camera parameters, adjust the preset camera device, and based on the preset gear parameters, adjust the light strip.

[0191] In a specific embodiment, the above-mentioned preset imaging device may be a camera built in a fixed position inside the target electrical appliance. In a specific embodiment, the above-mentioned light strip may be built in a fixed position inside the target electrical appliance.

[0192] In a specific embodiment, although the light strip and the camera are adjusted well at the moment of turning on the light strip through the above method, so that the light is normal and clear images can be captured, but since the user manually adjusts the light strip or clicks on the target area during the use of the electrical appliance, it will still cause overexposure or underexposure in the images captured during the use of the electrical appliance. To solve this problem, in a specific embodiment, the above method includes:

[0193] During the use of the target electrical appliance, based on the preset imaging device, photograph the preset acquisition area inside the target electrical appliance to obtain a fifth current internal image. The preset acquisition area includes a food area, a light strip area, and a background area. The background area is the area remaining in the preset acquisition area after removing the food area and the light strip area;

[0194] Based on the fifth current internal image, determine the third current brightness;

[0195] Perform edge detection on the fifth current internal image to obtain seventh area information corresponding to the food area, eighth area information corresponding to the light strip area, and ninth area information corresponding to the background area;

[0196] Based on the seventh area information, the eighth area information, the ninth area information, and the third preset weight information, determine the third target brightness. The third preset weight information includes the preset weight information corresponding to the food area, the light strip area, and the background area respectively;

[0197] In the case where the third current brightness and the third target brightness indicate that the fifth current internal image is overexposed, obtain the first imaging parameter and the first gear parameter;

[0198] Based on the first imaging parameter, adjust the preset imaging device, and based on the first gear parameter, adjust the light strip.

[0199] In the above embodiment, by obtaining the internal image of the electrical appliance in real time from the imaging device, it is possible to determine whether the captured image is clearly displayed normally, and obtain parameters in the case of detecting overexposure, and adjust the parameters of the light strip and the imaging device, so that the image obtains the expected visual effect, improves the quality and accuracy of the image, and at the same time improves the user experience.

[0200] In a specific embodiment, the above method further includes:

[0201] During the use of the target electrical appliance, based on a preset imaging device, the preset acquisition area inside the target electrical appliance is photographed to obtain a sixth current internal image. The preset acquisition area includes a food area, a light strip area, and a background area. The background area is the area remaining in the preset acquisition area after removing the food area and the light strip area;

[0202] Based on the sixth current internal image, determine the fourth current brightness;

[0203] Perform edge detection on the sixth current internal image to obtain tenth area information corresponding to the food area, eleventh area information corresponding to the light strip area, and twelfth area information corresponding to the background area;

[0204] Based on the tenth area information, the eleventh area information, the twelfth area information, and the fourth preset weight information, determine the fourth target brightness. The fourth preset weight information includes the preset weight information corresponding to the food area, the light strip area, and the background area respectively;

[0205] In the case where the fourth current brightness and the fourth target brightness indicate that the sixth current internal image is underexposed, obtain the second imaging parameter and the second gear parameter;

[0206] Based on the second imaging parameter, adjust the preset imaging device, and based on the second gear parameter, adjust the light strip.

[0207] In the above embodiment, by obtaining the internal image of the electrical appliance in real time from the imaging device, it is possible to determine whether the captured image is clearly displayed normally, and obtain parameters in the case of detecting underexposure, and adjust the parameters of the light strip and the imaging device to make the image obtain the expected visual effect, improve the quality and accuracy of the image, and at the same time enhance the user experience.

[0208] Figure 6 It is a block diagram of an internal lighting adjustment device of an electrical appliance shown according to an exemplary embodiment. Refer to Figure 6 , the device includes:

[0209] A preset parameter acquisition module 610, configured to respond to a light strip switch switching instruction for the target electrical appliance, and acquire preset parameters that match the light strip switch state corresponding to the light strip switch switching instruction.

[0210] An adjustment module 620, configured to adjust the preset imaging device based on the preset imaging parameter, and adjust the light strip based on the preset gear parameter.

[0211] In an optional embodiment, the above first imaging parameter and the above first gear parameter are obtained by the following module:

[0212] The third current internal image acquisition module is used to capture a preset acquisition area inside the target appliance based on a preset imaging device to obtain a third current internal image. The preset acquisition area includes a food material area, a light strip area, and a background area. The background area is the area remaining in the preset acquisition area after removing the food material area and the light strip area;

[0213] The first current brightness acquisition module is used to determine a first current brightness based on the third current internal image;

[0214] The first area information acquisition module is used to perform edge detection on the third current internal image to obtain first area information corresponding to the food material area, second area information corresponding to the light strip area, and third area information corresponding to the background area;

[0215] The first target brightness acquisition module is used to determine a first target brightness based on the first area information, the second area information, the third area information, and first preset weight information. The first preset weight information includes preset weight information corresponding to the food material area, the light strip area, and the background area respectively;

[0216] The first parameter adjustment module is used to, when the first current brightness and the first target brightness indicate that the third current internal image is overexposed, adjust the first current gear parameter of the light strip and the first target imaging parameter of the preset imaging device, and jump to the step of capturing a preset acquisition area inside the target appliance based on the preset imaging device to obtain a third current internal image. The first target imaging parameter is obtained based on the first target brightness after adjustment of the first current gear parameter, the first current brightness after adjustment of the first current gear parameter, the first current exposure time of the preset imaging device, and the first current gain of the preset imaging device;

[0217] The first parameter acquisition module is used to, when the first current brightness and the first target brightness indicate that the third current internal image meets a first preset condition, use the current first current gear parameter as the first gear parameter and the current first target imaging parameter as the first imaging parameter; and the third current internal image when meeting the first preset condition is the first current internal image.

[0218] In an optional embodiment, the above device further includes:

[0219] The first preset weight information adjustment module is used to, when a positioning operation for a first target area in the third current internal image is detected, increase the preset weight information corresponding to the first target area. The first target area is any one of the food material area, the light strip area, and the background area;

[0220] The above first target brightness acquisition module includes:

[0221] A first target brightness acquisition unit, configured to determine a first target brightness based on first region information, second region information, third region information, adjusted preset weight information corresponding to a first target region, and preset weight information corresponding to other regions, where the other regions are two regions remaining from the food material region, the light strip region, and the background region excluding the first target region;

[0222] The above-mentioned first parameter acquisition module includes:

[0223] A first parameter acquisition unit, configured to use the current first current gear parameter as the first gear parameter and the current first target camera parameter as the first camera parameter when the first current brightness and the first target brightness indicate that the first target region image in the third current internal image satisfies a first preset condition; and the third current internal image when the first preset condition is satisfied is the first current internal image, and the first target region image is the region image of the first target region in the third current internal image.

[0224] In an optional embodiment, the above-mentioned first parameter adjustment module includes:

[0225] A first current gear parameter reduction unit, configured to reduce the first current gear parameter;

[0226] A first data acquisition unit, configured to acquire the first current brightness after the first current gear parameter is reduced, the first target brightness after the first current gear parameter is reduced, the first current gain, and the first current exposure time;

[0227] A first target camera parameter adjustment unit, configured to adjust the first target camera parameter based on the first current brightness after the first current gear parameter is reduced, the first target brightness after the first current gear parameter is reduced, the first current exposure time, and the first current gain.

[0228] In an optional embodiment, the first region information includes a first area information and a first brightness corresponding to the food material region, the second region information includes a second area information and a second brightness corresponding to the light strip region, and the third region information includes a third area information and a third brightness corresponding to the background region.

[0229] In an optional embodiment, the above-mentioned first region information acquisition module includes:

[0230] A region position information acquisition unit, configured to perform edge detection on the third current internal image to obtain a first region position information corresponding to the food material region, a second region position information corresponding to the light strip region, and a third region position information corresponding to the background region;

[0231] An area image acquisition unit, configured to crop a third current internal image based on first area position information, second area position information, and third area position information, so as to obtain a first area image where the food ingredient area is located, a second area image where the light strip area is located, and a third area image where the background area is located;

[0232] An area information acquisition unit, configured to determine first area information and first brightness based on the first area image, determine second area information and second brightness based on the second area image, and determine third area information and third brightness based on the third area image;

[0233] The above-mentioned first target brightness acquisition module includes:

[0234] A first target brightness acquisition subunit, configured to determine a first target brightness based on the first area information, the first brightness, the second area information, the second brightness, the third area information, the third brightness, and first preset weight information.

[0235] In an optional embodiment, the above-mentioned second camera parameter and the above-mentioned second gear parameter are obtained by using the following module:

[0236] A fourth current internal image acquisition module, configured to photograph a preset acquisition area inside the target electrical appliance based on a preset camera device, so as to obtain a fourth current internal image, where the preset acquisition area includes a food ingredient area, a light strip area, and a background area, and the background area is the area remaining after removing the food ingredient area and the light strip area from the preset acquisition area;

[0237] A second current brightness acquisition module, configured to determine a second current brightness based on the fourth current internal image;

[0238] An area information second acquisition module, configured to perform edge detection on the fourth current internal image to obtain fourth area information corresponding to the food ingredient area, fifth area information corresponding to the light strip area, and sixth area information corresponding to the background area;

[0239] A second target brightness acquisition module, configured to determine a second target brightness based on the fourth area information, the fifth area information, the sixth area information, and second preset weight information, where the second preset weight information includes preset weight information corresponding to the food ingredient area, the light strip area, and the background area respectively;

[0240] A second parameter adjustment module, configured to adjust a second current gear parameter of the light strip and a second target imaging parameter of a preset imaging device, and jump to a fourth current internal image acquisition module when the second current brightness and the second target brightness indicate that the fourth current internal image is underexposed. The second target imaging parameter is obtained based on the second target brightness after adjustment of the second current gear parameter, the second current brightness after adjustment of the second current gear parameter, the second current exposure time of the preset imaging device, and the second current gain of the preset imaging device;

[0241] A second parameter acquisition module, configured to use the current second current gear parameter as the second gear parameter and the current second target imaging parameter as the second imaging parameter when the second current brightness and the second target brightness indicate that the fourth current internal image meets a second preset condition; and the fourth current internal image when meeting the second preset condition is the second current internal image.

[0242] In an optional embodiment, the above device further includes:

[0243] A fifth current internal image acquisition module, configured to capture a fifth current internal image of a preset acquisition area inside a target electrical appliance based on a preset imaging device during the use of the target electrical appliance. The preset acquisition area includes a food area, a light strip area, and a background area, and the background area is the area remaining in the preset acquisition area after removing the food area and the light strip area;

[0244] A third current brightness acquisition module, configured to determine a third current brightness based on the fifth current internal image;

[0245] A region information third acquisition module, configured to perform edge detection on the fifth current internal image to obtain seventh region information corresponding to the food area, eighth region information corresponding to the light strip area, and ninth region information corresponding to the background area;

[0246] A third target brightness acquisition module, configured to determine a third target brightness based on the seventh region information, the eighth region information, the ninth region information, and third preset weight information. The third preset weight information includes preset weight information corresponding to the food area, the light strip area, and the background area respectively;

[0247] A first parameter acquisition sub-module, configured to acquire a first imaging parameter and a first gear parameter when the third current brightness and the third target brightness indicate that the fifth current internal image is overexposed;

[0248] A first adjustment module, configured to adjust the preset imaging device based on the first imaging parameter and adjust the light strip based on the first gear parameter.

[0249] In an optional embodiment, the above device further includes:

[0250] The sixth current internal image acquisition module is configured to capture a preset acquisition area inside the target appliance during the use of the target appliance based on a preset camera device to obtain a sixth current internal image. The preset acquisition area includes a food material area, a light strip area, and a background area, and the background area is the area remaining after removing the food material area and the light strip area from the preset acquisition area;

[0251] The fourth current brightness acquisition module is configured to determine a fourth current brightness based on the sixth current internal image;

[0252] The area information fourth acquisition module is configured to perform edge detection on the sixth current internal image to obtain a tenth area information corresponding to the food material area, an eleventh area information corresponding to the light strip area, and a twelfth area information corresponding to the background area;

[0253] The fourth target brightness acquisition module is configured to determine a fourth target brightness based on the tenth area information, the eleventh area information, the twelfth area information, and fourth preset weight information. The fourth preset weight information includes preset weight information corresponding to the food material area, the light strip area, and the background area respectively;

[0254] The second parameter acquisition sub-module is configured to acquire a second camera parameter and a second gear parameter when the fourth current brightness and the fourth target brightness indicate that the sixth current internal image is underexposed;

[0255] The second adjustment module is configured to adjust the preset camera device based on the second camera parameter and adjust the light strip based on the second gear parameter.

[0256] Regarding the device in the above embodiments, the specific manners in which each module performs operations have been described in detail in the embodiments related to the method, and will not be elaborated herein.

[0257] Figure 7 is a block diagram of an electronic device for adjusting internal illumination of an appliance shown according to an exemplary embodiment. The electronic device may be a terminal, and its internal structure diagram may be as shown in Figure 7As shown. The electronic device includes a processor, a memory, a network interface, a display screen, and an input device connected through a system bus. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the electronic device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, it realizes a method for adjusting the internal illumination of an electrical appliance. The display screen of the electronic device can be a liquid crystal display screen or an electronic ink display screen. The input device of the electronic device can be a touch layer covering the display screen, or a button, a trackball, or a touchpad provided on the housing of the electronic device, or an external keyboard, touchpad, or mouse, etc.

[0258] Those skilled in the art can understand that Figure 7 the structure shown in is only a block diagram of some structures related to the solution of the present disclosure, and does not constitute a limitation on the electronic device to which the solution of the present disclosure is applied. The specific electronic device may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0259] In an exemplary embodiment, there is also provided an electronic device, including: a processor; a memory for storing executable instructions of the processor; wherein, the processor is configured to execute the instructions to realize the method for adjusting the internal illumination of an electrical appliance as in the embodiment of the present disclosure.

[0260] In an exemplary embodiment, there is also provided a computer-readable storage medium, when the instructions in the storage medium are executed by the processor of the electronic device, the electronic device can execute the method for adjusting the internal illumination of an electrical appliance in the embodiment of the present disclosure.

[0261] In an exemplary embodiment, there is also provided a computer program product containing instructions, when it runs on a computer, the computer executes the method for adjusting the internal illumination of an electrical appliance in the embodiment of the present disclosure.

[0262] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. This computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, storage, database, or other medium used in the embodiments provided in the present application can include non-volatile and / or volatile memories. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and Rambus dynamic RAM (RDRAM), etc.

[0263] After considering the specification and practicing the invention disclosed herein, those skilled in the art will readily conceive of other embodiments of the present disclosure. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include known common general knowledge or conventional technical means in the technical field not disclosed in the present disclosure. The specification and embodiments are only to be regarded as exemplary, and the true scope and spirit of the present disclosure are pointed out by the following claims.

[0264] It should be understood that the present disclosure is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present disclosure is only limited by the appended claims.

Claims

1. A method for adjusting the internal illumination of an electrical appliance, characterized in that: include: In response to a light strip switch switching instruction for a target electrical appliance, a preset parameter matching the light strip switch state corresponding to the light strip switch switching instruction is obtained, wherein the preset parameter includes a preset camera parameter of a preset camera device inside the target electrical appliance and a preset gear parameter of the light strip inside the target electrical appliance, wherein the preset camera parameter includes a first camera parameter under an overexposure condition corresponding to an on state of the light strip switch or a second camera parameter under an underexposure condition corresponding to an off state of the light strip switch, wherein the preset gear parameter includes a first gear parameter under an overexposure condition corresponding to an on state of the light strip switch or a second gear parameter under an underexposure condition corresponding to an off state of the light strip switch. The state is the second gear parameter under underexposure corresponding to the off state; the first camera parameter and the first gear parameter are the camera parameters and gear parameters when the first current internal image of the target electrical appliance currently collected meets the first preset condition during the process of adjusting the camera parameters of the preset camera device and the gear parameters of the light strip under overexposure; the second camera parameter and the second gear parameter are the camera parameters and gear parameters when the second current internal image of the target electrical appliance currently collected meets the second preset condition during the process of adjusting the camera parameters of the preset camera device and the gear parameters of the light strip under underexposure; Based on the preset camera parameters, the preset camera device is adjusted, and based on the preset gear parameters, the light strip is adjusted.

2. The method according to claim 1, characterized in that: The first camera parameter and the first gear parameter are obtained in the following manner: Based on the preset camera device, a preset acquisition area inside the target appliance is photographed to obtain a third current internal image, wherein the preset acquisition area includes a food area, a light strip area, and a background area, and the background area is the remaining area of ​​the preset acquisition area excluding the food area and the light strip area; Based on the third current internal image, determining a first current brightness; Performing edge detection on the third current internal image to obtain first region information corresponding to the food region, second region information corresponding to the light strip region, and third region information corresponding to the background region; Determine a first target brightness based on the first area information, the second area information, the third area information and first preset weight information, wherein the first preset weight information includes preset weight information corresponding to each of the food area, the light strip area and the background area; In the case where the first current brightness and the first target brightness indicate that the third current internal image is overexposed, adjusting the first current gear parameter of the light strip and the first target camera parameter of the preset camera device, and jumping to the step of photographing the preset acquisition area inside the target electrical appliance based on the preset camera device to obtain the third current internal image, wherein the first target camera parameter is obtained based on the first target brightness adjusted by the first current gear parameter, the first current brightness adjusted by the first current gear parameter, the first current exposure time of the preset camera device, and the first current gain of the preset camera device; When the first current brightness and the first target brightness indicate that the third current internal image satisfies the first preset condition, the current first current gear parameter is used as the first gear parameter, and the current first target camera parameter is used as the first camera parameter; and the third current internal image that satisfies the first preset condition is the first current internal image.

3. The method according to claim 2, characterized in that: The method further comprises: In the case where a positioning operation is detected for a first target area in the third current internal image, increasing the preset weight information corresponding to the first target area, wherein the first target area is any one of the food area, the light strip area and the background area; The determining the first target brightness based on the first area information, the second area information, the third area information and the first preset weight information includes: Determine the first target brightness based on the first area information, the second area information, the third area information, the increased preset weight information corresponding to the first target area, and the preset weight information corresponding to other areas, where the other areas are the food area, the light strip area, and the background area excluding the first target area. The step of using the current first current gear parameter as the first gear parameter and the current first target camera parameter as the first camera parameter when the first current brightness and the first target brightness indicate that the third current internal image satisfies the first preset condition; and the third current internal image that satisfies the first preset condition is the first current internal image comprises: When the first current brightness and the first target brightness indicate that the first target area image in the third current internal image satisfies the first preset condition, the current first current gear parameter is used as the first gear parameter, and the current first target camera parameter is used as the first camera parameter; and the third current internal image that satisfies the first preset condition is the first current internal image, and the first target area image is the area image of the first target area in the third current internal image.

4. The method according to claim 2, characterized in that: The adjusting of the first current gear parameter of the light strip and the first target camera parameter of the preset camera device comprises: Lowering the first current gear parameter; Acquire the first current brightness after the first current gear parameter is adjusted down, the first target brightness after the first current gear parameter is adjusted down, the first current gain, and the first current exposure time; The first target camera parameter is adjusted based on the first current brightness after the first current gear parameter is lowered, the first target brightness after the first current gear parameter is lowered, the first current exposure time, and the first current gain.

5. The method according to claim 2, characterized in that: The first area information includes first area information and first brightness corresponding to the food area, the second area information includes second area information and second brightness corresponding to the light strip area, the third area information includes third area information and third brightness corresponding to the background area, and edge detection is performed on the third current internal image to obtain the first area information corresponding to the food area, the second area information corresponding to the light strip area, and the third area information corresponding to the background area, including: Performing edge detection on the third current internal image to obtain first area position information corresponding to the food area, second area position information corresponding to the light strip area, and third area position information corresponding to the background area; Based on the first area position information, the second area position information and the third area position information, the third current internal image is cropped to obtain a first area image where the food area is located, a second area image where the light strip area is located and a third area image where the background area is located; Determine the first area information and the first brightness based on the first area image, determine the second area information and the second brightness based on the second area image, and determine the third area information and the third brightness based on the third area image; The determining the first target brightness based on the first area information, the second area information, the third area information and the first preset weight information includes: The first target brightness is determined based on the first area information, the first brightness, the second area information, the second brightness, the third area information, the third brightness, and the first preset weight information.

6. The method according to claim 1, characterized in that: The second camera parameter and the second gear parameter are obtained in the following manner: Based on the preset camera device, a preset acquisition area inside the target appliance is photographed to obtain a fourth current internal image, wherein the preset acquisition area includes a food area, a light strip area, and a background area, and the background area is the remaining area of ​​the preset acquisition area excluding the food area and the light strip area; determining a second current brightness based on the fourth current internal image; Performing edge detection on the fourth current internal image to obtain fourth region information corresponding to the food region, fifth region information corresponding to the light strip region, and sixth region information corresponding to the background region; Determine a second target brightness based on the fourth area information, the fifth area information, the sixth area information and the second preset weight information, wherein the second preset weight information includes preset weight information corresponding to each of the food area, the light strip area and the background area; In the case where the second current brightness and the second target brightness indicate that the fourth current internal image is underexposed, adjusting the second current gear parameter of the light strip and the second target camera parameter of the preset camera device, and jumping to the step of photographing the preset acquisition area inside the target electrical appliance based on the preset camera device to obtain the fourth current internal image, wherein the second target camera parameter is obtained based on the second target brightness adjusted by the second current gear parameter, the second current brightness adjusted by the second current gear parameter, the second current exposure time of the preset camera device, and the second current gain of the preset camera device; When the second current brightness and the second target brightness indicate that the fourth current internal image satisfies the second preset condition, the current second current gear parameters are used as the second gear parameters, and the current second target camera parameters are used as the second camera parameters; and the fourth current internal image that satisfies the second preset condition is the second current internal image.

7. The method according to claim 1, characterized in that: The method further comprises: During the use of the target appliance, based on the preset camera device, a preset acquisition area inside the target appliance is photographed to obtain a fifth current internal image, wherein the preset acquisition area includes a food area, a light strip area, and a background area, and the background area is the remaining area of ​​the preset acquisition area excluding the food area and the light strip area; determining a third current brightness based on the fifth current internal image; Performing edge detection on the fifth current internal image to obtain seventh region information corresponding to the food region, eighth region information corresponding to the light strip region, and ninth region information corresponding to the background region; Determine a third target brightness based on the seventh area information, the eighth area information, the ninth area information and third preset weight information, wherein the third preset weight information includes preset weight information corresponding to each of the food area, the light strip area and the background area; When the third current brightness and the third target brightness indicate that the fifth current internal image is overexposed, acquiring the first camera parameter and the first gear parameter; Based on the first camera parameter, the preset camera device is adjusted, and based on the first gear parameter, the light strip is adjusted.

8. The method according to claim 1, characterized in that: The method further comprises: During the use of the target appliance, based on the preset camera device, a preset acquisition area inside the target appliance is photographed to obtain a sixth current internal image, wherein the preset acquisition area includes a food area, a light strip area, and a background area, and the background area is the remaining area of ​​the preset acquisition area excluding the food area and the light strip area; determining a fourth current brightness based on the sixth current internal image; Performing edge detection on the sixth current internal image to obtain tenth region information corresponding to the food region, eleventh region information corresponding to the light strip region, and twelfth region information corresponding to the background region; Determine a fourth target brightness based on the tenth area information, the eleventh area information, the twelfth area information and fourth preset weight information, wherein the fourth preset weight information includes preset weight information corresponding to each of the food area, the light strip area and the background area; When the fourth current brightness and the fourth target brightness indicate that the sixth current internal image is underexposed, acquiring the second imaging parameter and the second gear parameter; Based on the second camera parameter, the preset camera device is adjusted, and based on the second gear parameter, the light strip is adjusted.

9. An internal lighting adjustment device for an electrical appliance, characterized in that: include: A preset parameter acquisition module is used to respond to a light strip switch switching instruction for a target electrical appliance, and obtain preset parameters matching the light strip switch state corresponding to the light strip switch switching instruction, wherein the preset parameters include preset camera parameters of a preset camera device inside the target electrical appliance and preset gear parameters of the light strip inside the target electrical appliance, wherein the preset camera parameters include a first camera parameter under overexposure corresponding to the light strip switch state being on or a second camera parameter under underexposure corresponding to the light strip switch state being off, and wherein the preset gear parameters include a first gear parameter under overexposure corresponding to the light strip switch state being on or a second gear parameter under underexposure corresponding to the light strip switch state being off. The switch state of the light strip is the second gear parameter under underexposure corresponding to the off state; the first camera parameter and the first gear parameter are the camera parameters and gear parameters when the first current internal image of the target electrical appliance currently collected meets the first preset condition during the process of adjusting the camera parameters of the preset camera device and the gear parameters of the light strip under overexposure; the second camera parameter and the second gear parameter are the camera parameters and gear parameters when the second current internal image of the target electrical appliance currently collected meets the second preset condition during the process of adjusting the camera parameters of the preset camera device and the gear parameters of the light strip under underexposure; An adjustment module is used to adjust the preset camera device based on the preset camera parameters, and to adjust the light strip based on the preset gear parameters.

10. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the method for adjusting internal lighting of an electrical appliance as claimed in any one of claims 1 to 8.