Image processing method and electronic device
By identifying the brightness values of facial features in multi-person portrait images and adjusting the brightness weight of each facial feature, the problem of uneven brightness in multi-person portrait shooting is solved, achieving uniform image brightness adjustment and meeting users' personalized needs.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- LENOVO (BEIJING) LTD
- Filing Date
- 2023-03-27
- Publication Date
- 2026-05-26
AI Technical Summary
When shooting multiple portraits, current technology can only adjust the brightness of individual portraits in the preview screen, resulting in uneven brightness in multiple portraits, with some portraits being too bright or too dark.
By identifying the brightness values of multiple facial features and adjusting the brightness weight of each feature, an image that conforms to the brightness range is generated, thus achieving personalized brightness adjustment.
It achieves uniform brightness in each facial area during group portrait photography, avoiding overexposure or underexposure in some portraits and meeting users' personalized photography needs.
Smart Images

Figure CN116389893B_ABST
Abstract
Description
Technical Field
[0001] This application relates to image processing technology, and more particularly to an image processing method and electronic device. Background Technology
[0002] When taking group portraits, users can only adjust the brightness of individual portraits in the preview screen. However, due to the different positions of the group portraits, adjusting the brightness of individual portraits can result in some portraits in the preview screen being too bright or too dark. Summary of the Invention
[0003] In view of this, embodiments of this application aim to provide an image processing method and an electronic device.
[0004] To achieve the above objectives, the technical solution of this application is implemented as follows:
[0005] According to one aspect of this application, an image processing method is provided, the method comprising:
[0006] A first image is obtained, which is an image obtained by processing the acquired image acquired by the image acquisition unit based on the target exposure parameters;
[0007] If the first image includes facial features, brightness processing is performed on the first image to obtain the second image;
[0008] The facial features are multiple, and the brightness value of the facial region corresponding to each facial feature in the second image is within a certain brightness range.
[0009] In the above scheme, the step of performing brightness processing on the first image to obtain the second image includes:
[0010] Obtain the brightness value for each facial feature;
[0011] If the brightness value of at least one facial feature exceeds the brightness range, a brightness adjustment value for the first image is determined based on the brightness value of each facial feature.
[0012] The first image is processed based on the brightness adjustment value to obtain the second image.
[0013] In the above scheme, determining the brightness adjustment value for the first image based on the brightness value of each facial feature includes:
[0014] Configure the target parameter value for the brightness value of each facial feature; wherein, the target parameter values for the brightness values of at least two facial features are different;
[0015] A brightness adjustment value is determined based on the brightness value of each facial feature and a target parameter value for the brightness value of each facial feature, wherein the brightness adjustment value represents the brightness value of the face in the first image.
[0016] The method in the above scheme further includes:
[0017] The first image is displayed as a preview image;
[0018] The target parameter values for configuring the brightness values of each facial feature include:
[0019] Obtain an adjustment instruction for a first facial region, the adjustment instruction being used to adjust the target parameter value of the first facial region;
[0020] Configure the target parameter value of the first facial region based on the adjustment instruction;
[0021] Based on the target parameter value of the first facial region, the target parameter values of multiple facial regions other than the first facial region are adjusted synchronously.
[0022] In the above scheme, the process of processing the acquired image obtained by the image acquisition unit includes a target processing module; the process of performing brightness processing on the first image includes the target processing module, wherein the target processing module includes a facial brightness reference value, and the target processing module is used to adjust the brightness of the image based on the facial brightness reference value.
[0023] In the above scheme, processing the first image based on the brightness adjustment value to obtain the second image includes:
[0024] The amplitude value is determined based on the brightness adjustment value and the facial brightness reference value;
[0025] Adjustments are made for each pixel in the first image based on the amplitude value.
[0026] According to another aspect of this application, an electronic device is provided, comprising:
[0027] An image acquisition device is used to acquire images of target objects in a target area to obtain acquired images;
[0028] The processor is configured to acquire a first image, the first image being an image obtained by processing the acquired image based on target exposure parameters; and to perform brightness processing on the first image if the first image includes facial features, to obtain a second image; wherein the facial features are multiple, and the brightness value of the facial region corresponding to each facial feature in the second image is within a brightness range.
[0029] In the above scheme, the processor is specifically used to obtain the brightness value of each facial feature; if the brightness value of at least one facial feature exceeds the brightness range, a brightness adjustment value for the first image is determined based on the brightness value of each facial feature; and the first image is processed based on the brightness adjustment value to obtain a second image.
[0030] In the above scheme, the processor is further configured to configure a target parameter value for the brightness value of each facial feature; wherein, the target parameter values for the brightness values of at least two facial features are different; and a brightness adjustment value is determined based on the brightness value of each facial feature and the target parameter value for the brightness value of each facial feature, wherein the brightness adjustment value represents the brightness value of the face in the first image.
[0031] In the above scheme, the processor includes a target processing module;
[0032] The target processing module is used to adjust the brightness of the image based on a facial brightness reference value during the process of processing the acquired image to obtain the first image and / or processing the first image to obtain the second image. Attached Figure Description
[0033] Figure 1 This is a schematic diagram illustrating the flow of the image processing method in this application. Figure 1 ;
[0034] Figure 2 This is a schematic diagram illustrating the flow of the image processing method in this application. Figure 2 ;
[0035] Figure 3 This is a schematic diagram of the structural composition of the electronic device in this application. Figure 1 ;
[0036] Figure 4 This is a schematic diagram of the structural composition of the electronic device in this application. Figure 2 . Detailed Implementation
[0037] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application. Unless otherwise specified, the embodiments and features in the embodiments of this application can be arbitrarily combined with each other. The steps shown in the flowcharts can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowcharts, in some cases, the steps shown or described may be performed in a different order than that shown here.
[0038] The technical solution of this application will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0039] Figure 1 This is a schematic diagram illustrating the flow of the image processing method in this application. Figure 1 This method can be applied to electronic devices with image acquisition units, such as... Figure 1 As shown, the method includes:
[0040] Step 101: Obtain the first image, which is an image obtained by processing the acquired image acquired by the image acquisition unit based on the target exposure parameters;
[0041] Here, the electronic device can acquire images of target objects in the target area through the image acquisition unit, and can determine the target exposure parameters based on the ambient light when the image acquisition unit acquires the image. Based on the target exposure parameters, the acquired image can be processed to obtain a first image.
[0042] Here, after acquiring the captured image, the electronic device can also send the captured image carrying the target exposure parameters to the target processing module of the electronic device. The target processing module is a module that performs portrait brightness calculation. The target processing module has a facial brightness reference value. Based on the facial brightness reference value, the target processing module can determine the brightness adjustment range of the captured image. After adjusting the target exposure parameters of the captured image based on the brightness adjustment range, the first image can be obtained.
[0043] Here, when processing the image acquired by the image acquisition unit, the electronic device can determine the brightness adjustment range based on the target exposure parameters and the facial brightness reference value, and adjust the brightness of each pixel or each facial region in the acquired image based on the range value to obtain the first image.
[0044] Here, when the target processing module processes the acquired image for the first time, the brightness weight of each facial feature is the same, and the target processing module uses the same weight and the brightness value of each facial feature to determine the amplitude value.
[0045] For example, the captured image includes three facial features, A, B, and C. Based on the target exposure parameters, the initial brightness values of A are 90, B is 120, and C is 180. The target processing module of the electronic device has a preset brightness range of 70-200, with a facial brightness baseline value of 160. After acquiring the image, the target processing module can use a weighted average algorithm to sum the brightness of A, B, and C, resulting in: 90*1 / 3 + 120*1 / 3 + 180*1 / 3 = 130. By comparing 130 with 160, it is determined that 130 is 30 less than 160, indicating that the brightness value of the current captured image needs to be increased by 30. The adjusted brightness values of A are 120, B is 150, and C is 210. Then, the first image is generated based on the adjusted brightness values of A, B, and C.
[0046] Alternatively, the processing unit of the electronic device can perform a weighted average calculation of the brightness of facial features, obtain the brightness value of the image, and then send the brightness value of the image to the target processing module of the electronic device. The target processing module then adjusts the brightness of the acquired image based on the height value sent by the processing unit to generate the first image.
[0047] Step 102: If the first image includes facial features, perform brightness processing on the first image to obtain a second image; wherein, there are multiple facial features, and the brightness value of the facial region corresponding to each facial feature in the second image is within a brightness range.
[0048] Here, the electronic device performs portrait processing on the acquired image based on the target exposure parameters to obtain a first image. This first image can also be displayed on the display interface of the electronic device. At this time, the first image can serve as a preview image as a reference for the user to adjust the image brightness.
[0049] Here, upon obtaining a first image, the electronic device can also identify facial features within that image. If there are multiple facial features in the first image, the brightness value of each feature can be acquired, and each feature's brightness value can be compared to a preset brightness range. If the comparison result indicates that the brightness value of each facial feature is within the preset brightness range, the first image is determined to meet the exposure conditions, and the first image is output. If the comparison result indicates that the brightness value of at least one facial feature exceeds the brightness range, the first image is determined to not meet the exposure conditions. A brightness adjustment value is determined based on the brightness value of each facial feature, and the magnitude of brightness adjustment for the first image is determined based on this adjustment value and a facial brightness reference value. Adjustments are made to each pixel or facial region in the first image based on this magnitude to obtain a second image. In the second image, the brightness value of the facial region corresponding to each facial feature is within the preset brightness range, and the second image is output.
[0050] Continuing with the example above, suppose the first image contains three facial features (i.e., a human figure): A, B, and C. The brightness value of A is 120, B's is 150, and C's is 210. The target processing module of the electronic device filters the brightness values of A, B, and C within a preset brightness range of 70-200. It can be determined that the brightness values of A and B are within the preset range, while C's brightness value of 210 exceeds the range, indicating that the facial area of C will experience overexposure. In this case, the target processing module can configure the target parameter value (i.e., the brightness weight of the brightness value in the entire image) for the brightness value of each facial feature, where at least two facial features have different target parameter values. Based on the brightness value of each facial feature and its target parameter value, a brightness adjustment value is determined for the first image. This brightness adjustment value represents the brightness value of the face in the first image.
[0051] In one implementation, the electronic device can receive an adjustment instruction for a first facial region, which is used to adjust the target parameter value of the first facial region; based on the adjustment instruction, the target processing module can be controlled to configure the target parameter value of the first facial region. For example, the target parameter value of the first facial region can be updated to a first target value.
[0052] Here, when the electronic device controls the target processing module to configure the target parameter value of the first facial region, the target processing module can also synchronously adjust the target parameter values of other facial regions in multiple facial regions of the first image, excluding the first facial region, based on the target parameter value of the first facial region, so that the brightness value of each facial feature after adjustment is within the preset brightness range, avoiding the problem of overexposure or underexposure of some portraits.
[0053] Continuing the example above, for instance, the electronic device adjusts the weight of C from one-third to one-half based on the user's adjustment instruction. Simultaneously, it adjusts the weights of A and B from one-third to one-quarter respectively. Then, after calculating the weighted average of the adjusted brightness values of A, B, and C, we get: 120*1 / 4 + 150*1 / 4 + 210*1 / 2 = 172.5. By comparing 172.5 with the target brightness value of 160, we determine that 172.5 is 12.5 greater than 160. This indicates that the brightness values of A, B, and C need to be reduced by 12.5 respectively. After adjusting the brightness range, the brightness values of A, B, and C are 107.5, 137.5, and 197.5 respectively. Then, the brightness values of A, B, and C are filtered within the preset brightness range of 70-200. It can be determined that the brightness values of A, B, and C are all within the preset brightness range. At this point, a second image can be generated based on the adjusted brightness values of A, B, and C. In this way, in the image acquisition of multiple portraits, the problem of overexposure or underexposure of some facial areas of the portraits in the image can be avoided due to different ambient light or skin tones.
[0054] Alternatively, the processing unit of the electronic device can perform a weighted average calculation of the brightness of facial features, and send the resulting image brightness value to the target processing module of the electronic device. The target processing module then adjusts the brightness of the first image based on the height value sent by the processing unit to generate the second image.
[0055] The image processing method provided in this application is a scheme that allows users to freely adjust the brightness weight of each facial feature in the preview image of a multi-person portrait. By adjusting the brightness weight of a certain facial area, the user's personalized photography needs can be met, and the problem of overexposure or underexposure of some facial areas in the portrait can be avoided.
[0056] Figure 2 This is a schematic diagram illustrating the flow of the image processing method in this application. Figure 2 ,like Figure 2 As shown, the method includes:
[0057] Step 201, Start image acquisition;
[0058] Step 202: Determine whether there are multiple facial features in the acquired image;
[0059] Here, facial feature recognition technology can be used to identify facial features in the acquired image. If multiple facial features are identified, proceed to step 203; if only one facial feature is identified, proceed to step 210.
[0060] Step 203: Calculate the weighted average of each facial feature to obtain the brightness value of each facial feature in the acquired image;
[0061] Here, each facial feature is weighted and averaged using an initial brightness weight, and these initial brightness weights are the same.
[0062] Step 204: Determine if the brightness value of any facial features exceeds the preset brightness range;
[0063] If yes, proceed to step 205; otherwise, proceed to step 206.
[0064] Step 205: Adjust the initial weight values of each facial feature;
[0065] Step 206: Determine if there is an adjustment instruction for the first facial region;
[0066] If yes, proceed to step 207; otherwise, proceed to step 208.
[0067] Step 207: Adjust the weight of the brightness values of each facial feature according to the portrait weight value set by the user;
[0068] Step 208: Send the weighted average brightness value of the facial features to the portrait calculation module for brightness calculation to obtain the final image exposure.
[0069] Step 209: The user takes a photo.
[0070] Step 210: Send the brightness value of the largest facial feature in the image to the portrait calculation module for brightness calculation.
[0071] Here, after step 210 is completed, proceed to step 209.
[0072] Figure 3 This is a schematic diagram of the structural composition of the electronic device in this application. Figure 1 ,like Figure 3 As shown, the electronic device includes:
[0073] Image acquisition unit 301 is used to acquire images of target objects in a target area to obtain acquired images;
[0074] Processor 302 is configured to acquire a first image, which is an image obtained by processing the acquired image based on target exposure parameters. It is also configured to perform brightness processing on the first image if the first image includes facial features, to obtain a second image; wherein the facial features are multiple, and the brightness value of the facial region corresponding to each facial feature in the second image is within a certain brightness range.
[0075] Here, the electronic device can be a mobile phone, computer, game console, tablet device, personal digital assistant, or other terminal.
[0076] In a preferred embodiment, the processor 302 is specifically configured to obtain the brightness value of each facial feature; if the brightness value of at least one facial feature exceeds the brightness range, determine a brightness adjustment value for the first image based on the brightness value of each facial feature; and process the first image based on the brightness adjustment value to obtain a second image.
[0077] In a preferred embodiment, the processor 302 is further configured to configure a target parameter value for the brightness value of each facial feature; wherein, the target parameter values for the brightness values of at least two facial features are different; and a brightness adjustment value is determined based on the brightness value of each facial feature and the target parameter value for the brightness value of each facial feature, wherein the brightness adjustment value represents the brightness value of the face in the first image.
[0078] In a preferred embodiment, the processor 302 further includes a target processing module 3021;
[0079] The target processing module 3021 is used to adjust the image brightness based on a facial brightness reference value during the process of processing the acquired image. It is also used to adjust the image brightness based on the facial brightness reference value during the process of brightness processing the first image.
[0080] In a preferred embodiment, the processor 302 is further configured to determine an amplitude value based on the brightness adjustment value and the facial brightness reference value, and to adjust the brightness of each pixel or each facial region in the first image based on the amplitude value.
[0081] In a preferred embodiment, the electronic device further includes: a display 303;
[0082] The display 303 is used to display a first image and a second image, wherein the first image can be used as a preview image and the second image can be used as a target image.
[0083] In a preferred embodiment, the processor 302 is further configured to obtain an adjustment instruction for a first facial region, the adjustment instruction being used to adjust the target parameter value of the first facial region; configure the target parameter value of the first facial region based on the adjustment instruction; and simultaneously adjust the target parameter values of facial regions other than the first facial region in multiple facial regions based on the target parameter value of the first facial region.
[0084] In a preferred embodiment, the electronic device further includes a memory 304 for storing a computer program capable of running on the processor 302, at least one network interface 305, and a user interface 306. The various components of the electronic device are coupled together via a bus system 307. It is understood that the bus system 307 is used to implement communication between these components. In addition to a data bus, the bus system 307 also includes a power bus, a control bus, and a status signal bus. However, for clarity, in… Figure 3 The general designated all buses as Bus System 307.
[0085] The user interface 306 may include a keyboard, mouse, trackball, click wheel, buttons, touchpad, or touch screen.
[0086] It is understood that memory 304 can be volatile memory or non-volatile memory, or both. Non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), ferromagnetic random access memory (FRAM), flash memory, magnetic surface memory, optical disc, or compact disc read-only memory (CD-ROM); magnetic surface memory can be disk storage or magnetic tape storage. Volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), SyncLink Dynamic Random Access Memory (SLDRAM), and Direct Rambus Random Access Memory (DRRAM).The memory 304 described in the embodiments of this application is intended to include, but is not limited to, these and any other suitable types of memory.
[0087] In this embodiment, the memory 304 is used to store various types of data to support the operation of the electronic device. Examples of this data include: any computer program used to operate on the electronic device, such as the operating system 3041 and application program 3042; contact data; phonebook data; messages; pictures; audio, etc. The operating system 3041 contains various system programs, such as the framework layer, core library layer, driver layer, etc., used to implement various basic services and handle hardware-based tasks. The application program 3042 may contain various applications, such as a media player, browser, etc., used to implement various application services. Programs implementing the methods of this embodiment may be included in the application program 3042.
[0088] In the above embodiments of this application, the processor 302 may be an integrated circuit chip with signal processing capabilities. It may also be a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the embodiments of this application can be directly manifested as execution by a hardware decoding processor, or execution by a combination of hardware and software modules in the decoding processor. The software modules may be located in a storage medium, specifically memory 304. The processor 302 can also read information from memory 304 and, in conjunction with its hardware, complete the steps of the aforementioned method.
[0089] In an exemplary embodiment, the electronic device may be implemented by one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers (MCUs), microprocessors, or other electronic components to perform the aforementioned method.
[0090] Figure 4 This is a schematic diagram of the structural composition of the electronic device in this application. Figure 2 ,like Figure 4 As shown, the electronic device includes:
[0091] Acquisition unit 401 is used to acquire images of target objects in the target area and obtain acquired images;
[0092] The acquisition unit 402 is used to acquire a first image, which is an image obtained by processing the acquired image acquired by the image acquisition unit based on the target exposure parameters;
[0093] Processing unit 403 is configured to perform brightness processing on the first image if the first image includes facial features, in order to obtain a second image;
[0094] The facial features are multiple, and the brightness value of the facial region corresponding to each facial feature in the second image is within a certain brightness range.
[0095] In a preferred embodiment, the acquisition unit 402 is further configured to acquire the brightness value of each facial feature;
[0096] The processing unit 403 is further configured to determine a brightness adjustment value for the first image based on the brightness value of each facial feature if the brightness value of at least one facial feature exceeds the brightness range.
[0097] The acquisition unit 402 is specifically used to process the first image based on the brightness adjustment value to obtain the second image.
[0098] In a preferred embodiment, the electronic device further includes a configuration unit 404 for configuring target parameter values for the brightness values of each facial feature; wherein, the target parameter values for the brightness values of at least two facial features are different.
[0099] The processing unit 403 is used to determine a brightness adjustment value based on the brightness value of each facial feature and a target parameter value of the brightness value of each facial feature, wherein the brightness adjustment value represents the brightness value of the face in the first image.
[0100] In a preferred embodiment, the electronic device further includes: a display unit 404 for displaying the first image, wherein the first image serves as a preview image;
[0101] The acquisition unit 402 is further configured to acquire an adjustment instruction for the first facial region, the adjustment instruction being used to adjust the target parameter value of the first facial region;
[0102] Configuration unit 404 is further configured to configure target parameter values for the first facial region based on the adjustment instruction; and is further configured to synchronously adjust target parameter values for facial regions other than the first facial region in multiple facial regions based on the target parameter values of the first facial region.
[0103] In a preferred embodiment, the configuration unit 404 is also used to adjust the magnitude of image brightness based on a facial brightness reference value.
[0104] In a preferred embodiment, the processing unit 403 is further configured to determine an amplitude value based on the brightness adjustment value and the facial brightness reference value;
[0105] The configuration unit 404 is also configured to adjust each pixel on the first image based on the amplitude value.
[0106] It should be noted that the image processing capabilities of the electronic device provided in the above embodiments are only illustrated by the division of the above-described program modules. In practical applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device can be divided into different program modules to complete all or part of the processing described above. Furthermore, the electronic device provided in the above embodiments and the image processing method embodiments provided above belong to the same concept, and their specific implementation processes are detailed in the method embodiments, which will not be repeated here.
[0107] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple units or components can be combined, or integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the various components shown or discussed can be through some interfaces, and the indirect coupling or communication connection between devices or units can be electrical, mechanical, or other forms.
[0108] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the units may be selected to achieve the purpose of this embodiment according to actual needs.
[0109] The methods disclosed in the several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.
[0110] The features disclosed in the several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.
[0111] The features disclosed in the several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method or device embodiments.
[0112] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. An image processing method, the method comprising: A first image is obtained, which is an image obtained by processing the acquired image acquired by the image acquisition unit based on the target exposure parameters; If the first image includes facial features, obtain the brightness value of each facial feature; If the brightness value of at least one facial feature exceeds the brightness range, brightness processing is performed on each pixel in the first image based on the brightness value of each facial feature to obtain a second image; The facial features are multiple, and the brightness value of the facial region corresponding to each facial feature in the second image is within the brightness range.
2. The method according to claim 1, wherein if the brightness value of at least one facial feature exceeds the brightness range, brightness processing is performed on each pixel of the first image based on the brightness value of each facial feature to obtain a second image, comprising: If the brightness value of at least one facial feature exceeds the brightness range, a brightness adjustment value for the first image is determined based on the brightness value of each facial feature. The first image is processed based on the brightness adjustment value to obtain the second image.
3. The method according to claim 2, wherein determining the brightness adjustment value for the first image based on the brightness value of each facial feature includes: Configure the target parameter value for the brightness value of each facial feature; wherein, the target parameter values for the brightness values of at least two facial features are different; A brightness adjustment value is determined based on the brightness value of each facial feature and a target parameter value for the brightness value of each facial feature, wherein the brightness adjustment value represents the brightness value of the face in the first image.
4. The method according to claim 3, further comprising: The first image is displayed as a preview image; The target parameter values for configuring the brightness values of each facial feature include: Obtain an adjustment instruction for a first facial region, the adjustment instruction being used to adjust the target parameter value of the first facial region; Configure the target parameter value of the first facial region based on the adjustment instruction; Based on the target parameter value of the first facial region, the target parameter values of multiple facial regions other than the first facial region are adjusted synchronously.
5. The method according to claim 2, wherein the process of processing the acquired image obtained by the image acquisition unit includes a target processing module; the process of performing brightness processing on the first image includes the target processing module, wherein, The target processing module includes a facial brightness reference value, and the target processing module is used to adjust the image brightness by a certain amount based on the facial brightness reference value.
6. The method according to claim 5, wherein the first image is processed based on the brightness adjustment value to obtain a second image, comprising: The amplitude value is determined based on the brightness adjustment value and the facial brightness reference value; Adjustments are made for each pixel in the first image based on the amplitude value.
7. An electronic device, comprising: An image acquisition device is used to acquire images of target objects in a target area to obtain acquired images; A processor is configured to acquire a first image, wherein the first image is an image obtained by processing the acquired image based on target exposure parameters; And for obtaining the brightness value of each facial feature if the first image includes facial features; If the brightness value of at least one facial feature exceeds the brightness range, brightness processing is performed on each pixel in the first image based on the brightness value of each facial feature to obtain a second image; wherein there are multiple facial features, and the brightness value of the facial region corresponding to each facial feature in the second image is within the brightness range.
8. The electronic device of claim 7, wherein the processor is specifically configured to, if the brightness value of at least one facial feature exceeds the brightness range, determine a brightness adjustment value for the first image based on the brightness value of each facial feature; and process the first image based on the brightness adjustment value to obtain a second image.
9. The electronic device according to claim 8, wherein the processor is further configured to configure target parameter values for the brightness values of each facial feature; wherein, At least two facial features have different target parameter values for brightness. A brightness adjustment value is determined based on the brightness value of each facial feature and the target parameter value of the brightness value of each facial feature, the brightness adjustment value representing the brightness value of the face in the first image.
10. The electronic device according to claim 8, wherein the processor includes a target processing module; The target processing module is used to adjust the brightness of the image based on a facial brightness reference value during the process of processing the acquired image to obtain the first image and / or processing the first image to obtain the second image.