Processing method and electronic equipment
By acquiring and analyzing the light distribution information of the environment to be photographed, and adjusting the display parameters of the display device according to the information for filling up light, the problem of poor facial recognition and photography effects of electronic devices in dark environments is solved, and the quality of image acquisition and user experience are improved.
Patent Information
- Application Number
- CN202411546357.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-31
- Publication Date
- 2025-03-18
AI Technical Summary
When existing electronic devices perform facial recognition or taking photos in dark environments, their recognition accuracy is low or the shooting effect is poor, which affects the user experience.
By obtaining the target light distribution information of the environment to be photographed, if a specific condition is met, the matching target display parameters are obtained, and the display device is controlled to display based on these parameters during the image acquisition process to perform fill light.
Improve the quality of image acquisition in dark environments, ensure the recognition accuracy and shooting effect of target images, and improve the user experience.
Smart Images

Figure CN119653249A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a processing method and an electronic device. Background Art
[0002] When existing electronic devices such as computers, tablets or mobile phones perform tasks that require the use of cameras, such as face recognition or taking pictures in dark environments, there are problems such as low recognition accuracy or poor shooting effects, which seriously affects the user experience. Summary of the invention
[0003] The present disclosure provides a processing method and an electronic device to at least solve the above technical problems existing in the prior art.
[0004] According to a first aspect of the present disclosure, a processing method is provided, comprising: in response to an instruction instructing an image acquisition device to acquire a target image, acquiring target light distribution information of an environment to be photographed; if the target light distribution information satisfies a light distribution condition, acquiring target display parameters matching the target light distribution information; and during the process of the image acquisition device acquiring the target image, controlling a display device to display based on the target display parameters.
[0005] In one possible implementation manner, obtaining target light distribution information of the environment to be photographed includes: obtaining first image information of the environment to be photographed acquired by the image acquisition device; and obtaining target light distribution information of the environment to be photographed based on the first image information.
[0006] In one possible implementation manner, the target light distribution information includes first light distribution information of a target object, and the instruction is used to instruct the image acquisition device to acquire a target image including the target object.
[0007] In one possible implementation manner, acquiring a target display parameter that matches the target light distribution information includes: if the first light distribution information of the target object represents that the visible area of the target object satisfies an area threshold, determining that the target display parameter is a first display parameter; if the first light distribution information of the target object represents that the visible area of the target object does not satisfy the area threshold, determining that the target display parameter is a second display parameter.
[0008] In one possible implementation, acquiring the target display parameters that match the target light distribution information includes: if the target light distribution information represents that the color temperature of the environment to be photographed satisfies a color temperature threshold, determining that the target display parameters are display parameters for displaying a first color temperature; if the target light distribution information represents that the color temperature of the environment to be photographed does not satisfy the color temperature threshold, determining that the target display parameters are display parameters for displaying a second color temperature.
[0009] In one possible implementation, the target display parameter is selected from at least one of the following combinations: display brightness, display shape, display color, and display area.
[0010] In one possible implementation manner, the target display parameters include display parameters for characterizing a display shape; and in the process of the image acquisition device acquiring the target image, controlling the display device to display based on the target display parameters includes: in the process of the image acquisition device acquiring the target image, based on the display shape characterized by the target display parameters, controlling the target pixel unit in the display device corresponding to the display shape to display.
[0011] In one possible implementation manner, a processing method further includes: verifying identity information based on a target object included in the target image; or saving the target image as an image file.
[0012] According to a second aspect of the present disclosure, there is provided an electronic device, comprising: a display device, at least one image acquisition device and at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can perform: in response to an instruction instructing the image acquisition device to acquire a target image, acquiring target light distribution information of an environment to be photographed; if the target light distribution information satisfies a light distribution condition, acquiring target display parameters matching the target light distribution information; and in the process of the image acquisition device acquiring the target image, controlling the display device to display based on the target display parameters.
[0013] In one possible implementation, a direction in which at least one of the image acquisition devices acquires images is the same as a display direction of the display device.
[0014] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] The above and other objects, features and advantages of the exemplary embodiments of the present disclosure will become readily understood by reading the detailed description below with reference to the accompanying drawings. In the accompanying drawings, several embodiments of the present disclosure are shown in an exemplary and non-limiting manner, in which:
[0016] In the drawings, the same or corresponding reference numerals represent the same or corresponding parts.
[0017] Figure 1 A schematic diagram showing a process of a processing method according to an embodiment of the present disclosure Figure 1;
[0018] Figure 2 A schematic diagram showing a process of a processing method according to an embodiment of the present disclosure Figure 2 ;
[0019] Figure 3 A schematic diagram showing a process of a processing method according to an embodiment of the present disclosure Figure 3 ;
[0020] Figure 4 A schematic diagram showing a process of a processing method according to an embodiment of the present disclosure Figure 4 ;
[0021] Figure 5 A schematic diagram of a scenario of a processing method according to an embodiment of the present disclosure is shown;
[0022] Figure 6 A schematic diagram of the structure of an electronic device according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0023] In order to make the purpose, features, and advantages of the present disclosure more obvious and easy to understand, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.
[0024] At present, in order to capture images in a dark environment, the flash of the electronic device is generally turned on or the brightness of the electronic device display is increased to provide fill light for the shooting environment. However, the optical information such as the brightness and color temperature of the fill light emitted by these methods is generally set in advance or requires manual adjustment by the user, and cannot change automatically according to changes in the environment.
[0025] Figure 1 A schematic diagram showing a process of a processing method according to an embodiment of the present disclosure Figure 1 ,like Figure 1 As shown, a processing method includes:
[0026] Step S101 , in response to an instruction instructing an image acquisition device to acquire a target image, target light distribution information of an environment to be photographed is acquired.
[0027] In this embodiment, the target image is an image including a target object, and the target object may be a specific person or object. After responding to an instruction instructing the image acquisition device to acquire the target image, in order to ensure that the image acquisition device can acquire the target image that meets the quality conditions, it is necessary to obtain target light distribution information of the environment to be shot. The environment to be shot is the environment around the image acquisition device, and is also the environment where the target object is located. The target light distribution information can characterize the light source illumination conditions of the environment to be shot, such as the brightness and color temperature of the environment to be shot, the light source illumination conditions of the object to be shot, etc.
[0028] In one possible implementation, the instruction to instruct the image acquisition device to acquire the target image is triggered in the following manner: in response to the power-on operation of the electronic device, the instruction to instruct the image acquisition device to acquire the target image is triggered. For example, for an electronic device with a face unlocking function, when the user's power-on operation of the electronic device is sensed, the instruction to instruct the image acquisition device of the electronic device to acquire the target image containing the user's facial information is triggered; in response to an image recognition instruction, the instruction to instruct the image acquisition device to acquire the target image is triggered. For example, when the user triggers a face recognition operation or an object recognition operation, the instruction to instruct the image acquisition device of the electronic device to acquire the target image including the face or the object is triggered; in response to an image acquisition instruction, the instruction to instruct the image acquisition device to acquire the target image is triggered. For example, when the user turns on the camera, the instruction to the image acquisition device to acquire the target image in the surrounding environment is triggered.
[0029] Step S102: if the target light distribution information satisfies the light distribution condition, obtain target display parameters matching the target light distribution information.
[0030] In this embodiment, the light distribution condition indicates that the target light distribution information cannot guarantee that the image acquisition device can acquire the target image that meets the quality condition. For example, if the brightness of the light source irradiating the environment to be photographed shown in the target light distribution information is less than a certain threshold, the image acquisition device cannot acquire a clear target image. Then the target light distribution information meets the light distribution condition. At this time, it is necessary to obtain the target display parameters that match the target light distribution information. The target display parameters are used to instruct the display device of the electronic device to display in accordance with the display mode indicated by the target display parameters, so as to fill in the light of the environment to be photographed and improve the light source irradiation condition of the environment to be photographed. In one embodiment, the target light distribution information is different, and the target display parameters that match the target light distribution information are different.
[0031] In one possible implementation, an initial large model prepared in advance can be trained based on sample light distribution information and sample display parameters that enable an image acquisition device to acquire images that meet quality conditions under the sample light distribution information, so as to obtain a target model that can determine the target display parameters corresponding to the environment to be photographed. When the target light distribution information of the environment to be photographed meets the light distribution conditions, the target light distribution information is input into the target model so that the target model outputs the target display parameters corresponding to the environment to be photographed.
[0032] Step S103: in the process of the image acquisition device acquiring the target image, controlling the display device to display based on the target display parameters.
[0033] In this embodiment, after the target display parameters are obtained, the display device can be controlled to display based on the target display parameters during the process of the image acquisition device acquiring the target image, so as to fill in the light of the environment to be shot. For example, if the electronic device is a mobile phone, the image acquisition device is the front camera of the mobile phone, and the target display parameter represents the display of white light in the center of the mobile phone screen, then in the process of the front camera of the mobile phone acquiring the face image, the center of the mobile phone screen will display white light, thereby increasing the brightness of the environment in front of the front camera, and ensuring that the front camera captures a clear face image.
[0034] In the present disclosure, when an image acquisition device of an electronic device needs to acquire a target image, target light distribution information of the environment to be shot is acquired. If the target light distribution information cannot ensure that the image acquisition device acquires a target image that meets certain quality conditions, target display parameters matching the target light distribution information are acquired. In the process of the image acquisition device acquiring the target image, the display device is controlled to display based on the target display parameters to fill in the light for the environment to be shot. Thus, according to different environments to be shot, the display device is controlled to display different fill lights, so that the fill light effect is effective fill light in the environment to be shot, thereby improving the quality of the target image.
[0035] In another embodiment, the “obtaining target light distribution information of the environment to be photographed” in step S101 includes:
[0036] Acquire first image information of the environment to be photographed acquired by an image acquisition device; and acquire target light distribution information of the environment to be photographed based on the first image information.
[0037] In this embodiment, the image acquisition device for acquiring the first image information of the environment to be photographed includes an image acquisition device for acquiring the target image and other image acquisition devices. For example, in the face unlocking scenario, the image acquisition device for acquiring the target image of the face is generally the front camera of the electronic device. However, the image acquisition device for acquiring the first image information of the environment to be photographed may include the front camera and the rear camera of the electronic device, thereby ensuring the accuracy of the target light distribution information acquired by the image acquisition device. After the image acquisition device acquires the first image information of the environment to be photographed, it can analyze the first image information to determine the color, brightness, color temperature of the pixels in the first image information, and the distribution of different pixels, and determine the target light distribution information of the environment to be photographed based on the pixel information, for example, the average brightness and color temperature of all pixels in the first image information are determined as the brightness and color temperature of the environment to be photographed.
[0038] In one embodiment, accordingly, in step S102, it can be determined that the target light distribution information satisfies the light distribution condition based on the following method: if the average brightness value of all pixels in the first image information is less than a first threshold, then it is determined that the target light distribution information satisfies the light distribution condition; and / or, if the average color temperature value of all pixels in the first image information is less than a second threshold, then it is determined that the target light distribution information satisfies the light distribution condition.
[0039] In another embodiment, the target light distribution information includes first light distribution information of the target object, and the instruction is used to instruct the image acquisition device to acquire a target image containing the target object. The first light distribution information can characterize the clarity of the target object in the first image information acquired by the image acquisition device, and the first light distribution information can be the proportion of pixels in the first image information that can be confirmed to belong to the target object. For example, if the target object is a face, and the first image information acquired by the image acquisition device is identified and processed, if it is determined that the proportion of pixels belonging to the face in the first image information is high, it proves that the quality of the first image information is good and a clearer face can be captured. If it is determined that the proportion of pixels belonging to the face in the first image information is low, it proves that it is difficult for the image acquisition device to capture a clear face.
[0040] In one possible implementation, correspondingly, in step S102, it can also be determined that the target light distribution information meets the light distribution condition based on the following method: if the proportion of pixel points belonging to the target object in the first image information is less than a third threshold, it is determined that the target light distribution information meets the light distribution condition.
[0041] In another embodiment, after "obtaining target display parameters that match the target light distribution information" in step S102, a processing method further includes: adjusting the target display parameters based on the image features of the target object and the fill light mode of the electronic device. The image features of the target object can be stored in the electronic device in advance. For example, if the target object is a user's face, the user's face image can be stored in the electronic device in advance. Based on the user's face image, the user's skin color, facial stereoscopic and other image features can be determined. The target display parameters can be adjusted based on the image features of the user's face. For example, for cold skin tones, the color temperature value in the target display parameters can be appropriately reduced to increase the warm color components in the target display parameters, so that the facial contour and details are more obvious. For warm skin tones, the opposite is true. Alternatively, for users with different face shapes, the display shapes in the target display parameters are different, so that the fill light effect is adapted to the user's face shape. The fill light mode is used to characterize the fill light effect of the electronic device. For example, the user can also set the fill light mode of the electronic device by himself, such as "natural mode", "clear mode", "soft mode", etc. Each mode corresponds to a different combination of color temperature and brightness. After obtaining the target display parameters, the target display parameters can be fine-tuned based on the fill light mode. For example, in the soft mode, the fill light is generally required to be warmer and have lower brightness. Therefore, if the color temperature in the target display parameters is higher, the value of the color temperature in the target display parameters can be appropriately reduced to increase the warm tone component in the target display parameters. If the brightness in the target display parameters is high, the brightness in the target display parameters can be appropriately reduced.
[0042] Figure 2 A schematic diagram showing a process of a processing method according to an embodiment of the present disclosure Figure 2 ,like Figure 2 As shown, a processing method includes:
[0043] Step S201 , in response to an instruction instructing an image acquisition device to acquire a target image, target light distribution information of an environment to be photographed is acquired.
[0044] The specific implementation process of step S201 is similar to that of step S101 and will not be repeated here.
[0045] If the first light distribution information of the target object in the target light distribution information represents that the visible area of the target object meets the area threshold, step S202 is executed to determine that the target display parameter is the first display parameter.
[0046] In this embodiment, if the visible area of the target object meets the area threshold, that is, the proportion of pixels in the first image information that can be confirmed to belong to the target object is small, it proves that the environment to be shot cannot meet the acquisition requirements of the target image, and the target display parameter can be determined as the first display parameter. The display device can provide a large degree of fill light for the environment to be shot based on the first display parameter. For example, the area of the area used for luminescence in the first display parameter is larger, and the brightness value is also larger.
[0047] If the visible area of the target object represented by the first light distribution information of the target object in the target light distribution information does not meet the area threshold, step S203 is executed to determine that the target display parameter is the second display parameter.
[0048] In this embodiment, if the visible area of the target object does not meet the area threshold, that is, the proportion of pixels that can be confirmed as belonging to the target object in the first image information is relatively large, at this time, although the target object can be collected in the environment to be photographed, it usually cannot meet the user's needs. Therefore, the target display parameter can be determined to be the second display parameter, and the display device can perform a small degree of fill light for the environment to be photographed based on the second display parameter. For example, the display shape in the second display parameter can be set to a shape with a small degree of fill light for the environment, such as an "M" shape, and the display shape in the first display parameter can be set to a shape with a large degree of fill light for the environment, such as an "8" shape. The size of the display shape used for emitting light in the second display parameter is smaller than the size of the display shape used for emitting light in the first display parameter, and the brightness value in the second display parameter is also smaller than the brightness value in the first display parameter. Therefore, different target display parameters are determined based on different first light distribution information of the target object, such as different display shapes, different sizes of display shapes, and different display brightness, etc., so that fill light can be performed at the minimum brightness while ensuring that the target image meets the user's needs, reducing consumption and avoiding irritation to the user's eyes.
[0049] Step S204: in the process of the image acquisition device acquiring the target image, controlling the display device to display based on the target display parameters.
[0050] The specific implementation process of step S204 is similar to that of step S103 and will not be repeated here.
[0051] Figure 3 A schematic diagram showing a process of a processing method according to an embodiment of the present disclosure Figure 3 ,like Figure 3 As shown, a processing method includes:
[0052] Step S301 , in response to an instruction instructing an image acquisition device to acquire a target image, target light distribution information of an environment to be photographed is acquired.
[0053] The specific implementation process of step S301 is similar to that of step S101 and will not be repeated here.
[0054] If the target light distribution information indicates that the color temperature of the environment to be photographed satisfies the color temperature threshold, step S302 is executed to determine that the target display parameter is a display parameter for displaying the first color temperature.
[0055] In this embodiment, if the color temperature of the environment to be photographed meets the color temperature threshold, it proves that the color temperature of the environment to be photographed is relatively small and the environment to be photographed is more inclined to warm colors. The target display parameters can be determined as display parameters for displaying the first color temperature, wherein the first color temperature is within the color temperature threshold. When the display device displays based on the target display parameters, the fill light for the environment to be photographed is similar to the environment to be photographed, thereby ensuring the color consistency of the target image subsequently acquired and avoiding excessive contrast.
[0056] If the target light distribution information indicates that the color temperature of the environment to be photographed does not meet the color temperature threshold, step S303 is executed to determine that the target display parameter is a display parameter for displaying a second color temperature.
[0057] In this embodiment, if the color temperature of the environment to be photographed does not meet the color temperature threshold, it proves that the color temperature of the environment to be photographed is relatively large and the environment to be photographed tends to be colder. The target display parameters can be determined as display parameters for displaying the second color temperature, wherein the second color temperature is not within the color temperature threshold. When the display device displays based on the target display parameters, the fill light for the environment to be photographed is similar to the environment to be photographed, thereby ensuring the color consistency of the target image subsequently acquired and avoiding excessive contrast.
[0058] Step S304: in the process of the image acquisition device acquiring the target image, controlling the display device to display based on the target display parameters.
[0059] The specific implementation process of step S304 is similar to that of step S103 and will not be repeated here.
[0060] In another embodiment, the target display parameter is selected from at least one of the following combinations: display brightness, display shape, display color, and display area. The display shape is a shape used for emitting light, such as an "M" shape or an "8" shape; the display area is an area where the display shape is displayed in the display device. In one example, if the target light distribution information of the environment to be photographed shows that the brightness of the environment to be photographed is low, that is, the environment to be photographed is dark, then the value of the display brightness in the target display parameter will be larger, ensuring that the fill light displayed by the display device can increase the brightness of the environment to be photographed to a large extent; if the type of the target object can be determined in the first image information of the environment to be photographed acquired by the image acquisition device, the display shape can be determined based on the type of the target object. For example, if a blurred facial contour can be identified based on the first image information, the display shape is set to an "8" shape, and the "8" shape is more in line with the fill light requirements of the face; if the red light information accounts for a large proportion in the target light distribution information of the environment to be photographed, the display color in the target display parameter will be other colors other than red, so as to avoid the light information of the environment to be photographed being reddish, causing the target image to lose color balance and cover up other colors in the target image; if the first image information of the environment to be photographed acquired by the image acquisition device can determine the position of the target object, the display area can be determined based on the position of the target object. For example, if the target object is located in the center of the display device, the display area is the central area of the display device. Figure 4 A schematic diagram showing a process of a processing method according to an embodiment of the present disclosure Figure 4 ,like Figure 4 As shown, the target display parameters include display parameters for characterizing a display shape, and a processing method includes:
[0061] Step S401 , in response to an instruction instructing an image acquisition device to acquire a target image, target light distribution information of an environment to be photographed is acquired.
[0062] Step S402: if the target light distribution information satisfies the light distribution condition, obtain target display parameters matching the target light distribution information.
[0063] The specific implementation process of step S401-step S402 is similar to that of step S101-step S102, and will not be repeated here.
[0064] Step S403, in the process of the image acquisition device acquiring the target image, based on the display shape represented by the target display parameter, the target pixel unit corresponding to the display shape in the display device is controlled to display.
[0065] In this embodiment, during the process of the image acquisition device acquiring the target image, the target pixel unit corresponding to the display shape in the display device performs light display based on the target display parameters, thereby providing fill light for the environment to be photographed. In one example, based on the display shape and display area in the target display parameters, the target pixel unit corresponding to the display shape on the display device can be determined, and then the light-emitting unit corresponding to the target pixel unit on the display device is controlled to display with optical parameters such as color, color temperature and brightness in the target display parameters, thereby controlling the target pixel unit corresponding to the display shape in the display device to display, wherein the display device can be an organic light-emitting diode display (OLED, Organic Light Emitting Diode) screen.
[0066] Figure 5 A schematic diagram of a processing method according to an embodiment of the present disclosure is shown. Figure 5 As shown, an "8"-shaped display shape is displayed on the mobile phone screen to fill in the light for the shooting environment. The display color of the "8"-shaped display shape is white. When the size of the "8"-shaped display shape is small, the degree of fill in the light for the face is small, such as Figure 5 The shadow on the forehead of the face is larger; when the size of the "8" shape is larger, the degree of fill light on the face is greater, such as Figure 5 The shadow on the forehead of the medium face is smaller. Figure 5 In the display device, only the shape is displayed, which is mostly used in the scenario of face recognition unlocking, in which the face does not need to be displayed on the screen.
[0067] In one embodiment, in addition to Figure 5 In addition to only displaying the display shape on the display device as shown, the display device can also be controlled to display the display shape in the first area based on the target display parameter, and display the image captured by the image acquisition device in other areas except the first area, wherein the first area is a fixed area. This solution is mostly used in selfie scenes, for example, the upper half of the screen is used as the first area to display the display shape, and the lower half of the screen displays the selfie image captured by the image acquisition device.
[0068] In one embodiment, in addition to Figure 5In addition to only displaying the display shape on the display device as shown, the area of the target object in the target image captured by the image acquisition device in the display device can also be determined as the second area, and the second area changes based on the position change of the image acquisition device and the target object; the display device is controlled to display the display shape based on the target display parameters in the third area that has a position association relationship with the second area. This solution is mostly used in face verification scenarios (for example, when an APP needs to perform identity authentication). At this time, not only face recognition is required, but also the face needs to be displayed on the screen, allowing the user to turn his head, blink, etc. At this time, the position of the display shape and the display area can move with the collected face or adapt to the face. For example, the target display parameters do not include determining the display shape and display area, but only include display color, display brightness, display color temperature, etc. The display device determines a certain width range around the face as the display shape for light emission, or determines a certain width range around the specified face frame as the display shape for light emission. During the movement of the face, the display shape will move accordingly.
[0069] In another embodiment, a processing method further includes:
[0070] If the pixel units in the display device cannot emit light independently, the brightness of the display device is adjusted based on the target light distribution information of the environment to be photographed.
[0071] In this embodiment, if the pixel unit in the display device does not have a separate light-emitting unit, the brightness of the display device is adjusted directly based on the target light distribution information of the environment to be photographed. For example, if the target light distribution information shows that the environment to be photographed is dark, the brightness of the display device is increased.
[0072] In another embodiment, a processing method further includes:
[0073] Verify identity information based on the target object contained in the target image; or save the target image as an image file.
[0074] In this embodiment, after the image acquisition device acquires the target image in the environment to be photographed after the fill light based on the target display parameter, the target object in the target image is identified and the identity information of the target object is verified. For example, if the target object is a face, the target image can be recognized and the electronic device can be unlocked based on the face recognition result, so that the stimulation of the fill light to the human eye can be avoided while ensuring that a clear face is captured; the target image can also be directly saved as an image file. For example, in the scenario where the user takes a selfie, after the image acquisition device acquires the user's selfie, the user's selfie can be saved as an image file and stored in the target storage area, so as to ensure the optimal fill light effect in different environments to be photographed and improve the quality of the user's selfie. Therefore, based on the user's usage scenario of the electronic device, the target image is processed differently to meet the user's needs and improve the user experience.
[0075] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device and a readable storage medium.
[0076] Among them, electronic equipment includes:
[0077] A display device, at least one image acquisition device and at least one processor; and a memory in communication with the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute:
[0078] In response to an instruction instructing the image acquisition device to acquire a target image, target light distribution information of the environment to be photographed is acquired; if the target light distribution information satisfies the light distribution condition, target display parameters matching the target light distribution information are acquired; during the process of the image acquisition device acquiring the target image, the display device is controlled to display based on the target display parameters.
[0079] In one possible implementation manner, obtaining target light distribution information of the environment to be photographed includes: obtaining first image information of the environment to be photographed acquired by an image acquisition device; and obtaining target light distribution information of the environment to be photographed based on the first image information.
[0080] In one possible implementation manner, the target light distribution information includes first light distribution information of the target object, and the instruction is used to instruct the image acquisition device to acquire a target image including the target object.
[0081] In one possible implementation, obtaining a target display parameter that matches the target light distribution information includes: if the first light distribution information of the target object represents that the visible area of the target object satisfies an area threshold, determining that the target display parameter is a first display parameter; if the first light distribution information of the target object represents that the visible area of the target object does not satisfy the area threshold, determining that the target display parameter is a second display parameter.
[0082] In one possible implementation, obtaining target display parameters that match the target light distribution information includes: if the target light distribution information represents that the color temperature of the environment to be photographed satisfies a color temperature threshold, determining the target display parameters as display parameters for displaying a first color temperature; if the target light distribution information represents that the color temperature of the environment to be photographed does not satisfy the color temperature threshold, determining the target display parameters as display parameters for displaying a second color temperature.
[0083] In one possible implementation, the target display parameter is selected from at least one of the following combinations: display brightness, display shape, display color, and display area.
[0084] In one possible implementation manner, the target display parameters include display parameters for characterizing a display shape; during the process of the image acquisition device acquiring the target image, controlling the display device to display based on the target display parameters, including: during the process of the image acquisition device acquiring the target image, based on the display shape characterized by the target display parameters, controlling the target pixel unit in the display device corresponding to the display shape to display.
[0085] In one possible implementation, the at least one processor can further execute: verifying identity information based on a target object contained in the target image; or saving the target image as an image file.
[0086] In one possible implementation, the direction in which the at least one image acquisition device acquires images is the same as the display direction of the display device.
[0087] Figure 6 A schematic block diagram of an example electronic device 800 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0088] like Figure 6As shown, the device 800 includes a computing unit 801, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 802 or a computer program loaded from a storage unit 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the device 800 can also be stored. The computing unit 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0089] A number of components in the device 800 are connected to the I / O interface 805, including: an input unit 806, such as a keyboard, a mouse, etc.; an output unit 807, such as various types of displays, speakers, etc.; a storage unit 808, such as a disk, an optical disk, etc.; and a communication unit 809, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 809 allows the device 800 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0090] The computing unit 801 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 801 performs the various methods and processes described above, such as a processing method. For example, in some embodiments, a processing method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 808. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 800 via ROM 802 and / or communication unit 809. When the computer program is loaded into RAM 803 and executed by the computing unit 801, one or more steps of a processing method described above may be performed. Alternatively, in other embodiments, the computing unit 801 may be configured to perform a processing method in any other appropriate manner (e.g., by means of firmware).
[0091] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0092] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0093] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0094] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0095] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0096] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.
[0097] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0098] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present disclosure, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0099] The above is only a specific embodiment of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present disclosure, which should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.
Claims
1. A processing method comprising: In response to an instruction instructing the image acquisition device to acquire a target image, acquiring target light distribution information of the environment to be photographed; If the target light distribution information satisfies the light distribution condition, acquiring target display parameters matching the target light distribution information; During the process of the image acquisition device acquiring the target image, the display device is controlled to display based on the target display parameters.
2. According to the method of claim 1, the step of obtaining target light distribution information of the environment to be photographed comprises: Acquire first image information of the environment to be photographed acquired by the image acquisition device; Based on the first image information, target light distribution information of the environment to be photographed is acquired.
3. The method according to claim 1, wherein the target light distribution information comprises first light distribution information of a target object, and the instruction is used to instruct the image acquisition device to acquire a target image containing the target object.
4. The method according to claim 3, wherein the step of acquiring target display parameters matching the target light distribution information comprises: If the first light distribution information of the target object indicates that the visible area of the target object satisfies the area threshold, determining that the target display parameter is a first display parameter; If the first light distribution information of the target object represents that the visible area of the target object does not meet the area threshold, the target display parameter is determined to be a second display parameter.
5. The method according to claim 1, wherein obtaining target display parameters matching the target light distribution information comprises: If the target light distribution information indicates that the color temperature of the environment to be photographed satisfies a color temperature threshold, determining that the target display parameter is a display parameter for displaying a first color temperature; If the target light distribution information indicates that the color temperature of the environment to be photographed does not meet the color temperature threshold, the target display parameter is determined to be a display parameter for displaying a second color temperature. 6 . The method according to claim 4 , wherein the target display parameter is selected from at least one of the following combinations: display brightness, display shape, display color, and display area.
7. The method according to claim 1, wherein the target display parameter comprises a display parameter for characterizing a display shape; In the process of acquiring the target image by the image acquisition device, controlling the display device to display based on the target display parameter comprises: In the process of the image acquisition device acquiring the target image, based on the display shape represented by the target display parameter, the target pixel unit corresponding to the display shape in the display device is controlled to display.
8. The method according to claim 1, further comprising: Verifying identity information based on a target object included in the target image; or The target image is saved as an image file.
9. An electronic device, comprising: a display device, at least one image acquisition device, and at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to execute: In response to an instruction instructing the image acquisition device to acquire a target image, acquiring target light distribution information of the environment to be photographed; If the target light distribution information satisfies the light distribution condition, acquiring target display parameters matching the target light distribution information; During the process of the image acquisition device acquiring the target image, the display device is controlled to display based on the target display parameters.
10. The electronic device according to claim 9, wherein a direction in which at least one of the image acquisition devices acquires images is the same as a display direction of the display device.