Exposure processing method and device, electronic equipment and readable storage medium
By calculating the exposure amount of the corresponding area of the field angle of each camera in a multi-camera electronic device and determining the exposure parameters, the problem of achieving multi-camera exposure consistency is solved, and exposure consistency and image quality improvement without hardware cost are achieved.
Patent Information
- Application Number
- CN202510355231.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-24
- Publication Date
- 2025-05-13
AI Technical Summary
In multi-camera electronics, achieving exposure consistency of multiple cameras without adding additional hardware costs is a challenge.
By acquiring the initial image data of each camera, determining the area data corresponding to its field of view angle, and calculating the exposure amount of each area, and then determining the exposure parameters of each camera to achieve consistency of field of view angle alignment and exposure effect.
The exposure consistency of multiple cameras can be achieved without increasing hardware costs, ensuring consistent shooting effects under different field of view angles, and improving image quality and shooting experience.
Smart Images

Figure CN119996831A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of imaging technology, and in particular to an exposure processing method, device, electronic device, computer-readable storage medium, and computer program product. Background Art
[0002] With the rapid development of Internet technology and camera technology, the shooting function of electronic devices has become more and more popular. Many electronic devices are equipped with multiple cameras to achieve better shooting performance and adapt to shooting in more scenes. When an electronic device is shooting, the process of light from the object passing through the lens to the sensor is called exposure, and the exposure directly affects the quality of the captured image.
[0003] In traditional technology, when shooting with multiple cameras at the same time, a synchronization signal generator is used to provide a unified trigger signal for the multiple cameras so that all cameras start and end exposure at the same time, which increases additional hardware costs. Summary of the invention
[0004] The embodiments of the present application provide an exposure processing method, device, electronic device, and computer-readable storage medium, which can reduce hardware costs and achieve exposure consistency of multiple cameras.
[0005] In a first aspect, the present application provides an exposure processing method, which is applied to an electronic device, wherein the electronic device includes a first camera and a second camera, wherein a first field of view angle of the first camera is greater than a second field of view angle of the second camera; the method includes:
[0006] Determine, according to the initial image data acquired by the first camera, first area data corresponding to the first field of view angle and second area data corresponding to the second field of view angle;
[0007] Determining a first exposure amount of the first area data and a second exposure amount of the second area data;
[0008] Determining an exposure parameter of the first camera according to the first exposure amount and the second exposure amount;
[0009] The first camera is controlled to perform exposure according to the exposure parameter of the first camera.
[0010] In a second aspect, the present application further provides an exposure processing device, comprising:
[0011] A region data determination module, used to determine first region data corresponding to a first field of view angle and second region data corresponding to a second field of view angle according to initial image data acquired by the first camera;
[0012] An exposure determination module, used to determine a first exposure of the first area data and a second exposure of the second area data;
[0013] an exposure parameter determination module, configured to determine an exposure parameter of the first camera according to the first exposure amount and the second exposure amount;
[0014] The exposure control module is used to control the first camera to perform exposure according to the exposure parameters of the first camera.
[0015] In a third aspect, the present application further provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the exposure processing method provided in the first aspect are implemented.
[0016] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the exposure processing method provided in the first aspect are implemented.
[0017] In a fifth aspect, the present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the exposure processing method provided in the first aspect.
[0018] The above-mentioned exposure processing method, device, electronic device, computer-readable storage medium and computer program product determine the first area data corresponding to the first field of view angle and the second area data corresponding to the second field of view angle according to the initial image data obtained by the first camera, respectively determine the first exposure amount corresponding to the first area data and the second exposure amount corresponding to the second area data, determine the exposure parameters of the first camera according to the first exposure amount and the second exposure amount, and control the first camera to expose according to the exposure parameters of the first camera, so as to align the field of view angles corresponding to different cameras, and then determine the image data of different areas after the field of view angles are aligned, and determine the exposure parameters of the camera corresponding to the larger field of view angle according to the exposure amount corresponding to the image data of different areas, so that the camera with the larger field of view angle can have an exposure effect that is more consistent with the camera with the smaller field of view angle after being exposed according to the corresponding exposure parameters, thereby achieving the consistency of the exposure effects of cameras corresponding to different field of view angles without increasing additional hardware costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0020] Figure 1 is a schematic flow chart of an exposure processing method in some embodiments;
[0021] Figure 2 A schematic diagram of aligning image data captured by cameras with different field of view angles in some embodiments;
[0022] Figure 3 A schematic diagram of a process for determining exposure parameters of a main camera in some embodiments;
[0023] Figure 4 is a schematic diagram of a flow chart for determining a fusion ratio in some embodiments;
[0024] Figure 5 A schematic diagram of a process for determining exposure parameters of a wide-angle camera in some embodiments;
[0025] Figure 6 A schematic diagram of a process for determining exposure parameters of a telephoto camera in some embodiments;
[0026] Figure 7 is a structural block diagram of an exposure processing device in one embodiment;
[0027] Figure 8 FIG. 4 is a diagram showing the internal structure of an electronic device in one embodiment. DETAILED DESCRIPTION
[0028] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0029] For application scenarios where electronic devices include multiple cameras, in order to make the exposure effects of multiple cameras as consistent as possible, the hardware synchronization-based solutions in traditional technologies include synchronization signal generator-based and hardware timestamp alignment. Based on the synchronization signal generator, it means that a unified trigger signal is provided to multiple cameras through an external synchronization signal generator to determine that all cameras start and end exposure at the same time to achieve exposure time synchronization. However, this method will increase the hardware cost and complexity of the system. For example, in some multi-camera camera systems, it is necessary to add a high-quality synchronization signal generator and complex wiring to connect each camera, which not only increases the hardware cost, but also may increase the volume and weight of the system. It is not suitable for some application scenarios with high requirements for portability and cost. In addition, cameras of different models or brands may have compatibility and adaptation issues with the synchronization signal generator. Even if they belong to different product lines of the same brand, the hardware interface and electrical characteristics may be different, resulting in the inability to directly use a unified synchronization signal for control, and additional adaptation and debugging work is required. In actual applications, as time goes by, the ambient temperature changes, and the characteristics of the hardware itself, the clock signal may deviate, thus affecting exposure consistency. For scenes that require extremely high exposure synchronization accuracy, such as high-speed imaging in scientific experiments, it may not meet the requirements. Hardware timestamp alignment is to add an accurate timestamp to the image data of each camera. In post-processing, the images taken by different cameras are aligned through the timestamp to achieve the conversion of exposure time, which is easy to increase the post-processing cost.
[0030] The software synchronization solution can include grayscale histogram matching and machine learning and deep learning-based implementation. Grayscale histogram matching refers to calculating the grayscale histogram of images taken by different cameras, and then adjusting the exposure time to make the grayscale histograms of each image as similar as possible. For example, by changing parameters such as exposure time and exposure gain, the overall brightness distribution of the image can be made consistent, thereby achieving exposure consistency. This method is sensitive to changes in image content and lighting conditions. If the light intensity, color distribution, etc. in the shooting scene change, it may cause differences in grayscale histograms, thereby affecting the adjustment effect of exposure time. The method based on machine learning and deep learning refers to using machine learning or deep learning algorithms to learn the mapping relationship between images taken by different cameras, and then automatically adjust the exposure time based on this relationship. For example, a deep learning model such as a convolutional neural network can be used to input multiple camera image pairs to automatically learn and predict the exposure adjustment parameters required for each camera to achieve exposure consistency. However, this method requires a lot of computing resources for model training and image data processing, which will result in slow system operation and poor real-time performance, and cannot meet some application scenarios with high real-time requirements. In addition, a large amount of labeled data is needed to train the model to learn the mapping relationship between different camera images. Obtaining these labeled data often takes a lot of time and manpower costs. In practical applications, it may be necessary to continuously update and expand the data to adapt to different scenarios and conditions. Otherwise, the generalization ability of the model may be limited, resulting in a decrease in the accuracy of exposure time conversion.
[0031] In response to the above-mentioned technical problems, an embodiment of the present application provides an exposure processing method, which aligns the field of view angles corresponding to different cameras, and determines the exposure parameters according to the exposure amounts corresponding to the image data of different areas after the alignment. This can achieve exposure consistency between multiple cameras without increasing hardware costs.
[0032] The exposure processing method provided in the embodiment of the present application can be applied to an electronic device including multiple cameras. Among them, the electronic device can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car devices, projection devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The head-mounted device can be a virtual reality (VR) device, an augmented reality (AR) device, smart glasses, etc. It should be noted that the electronic device can be a terminal or a server.
[0033] In some exemplary embodiments, Figure 1As shown, an exposure processing method is provided, which is applied to an electronic device, the electronic device includes a first camera and a second camera, the first field of view angle of the first camera is greater than the second field of view angle of the second camera, and the exposure processing method includes the following steps 102 to 108. Among them:
[0034] Step 102: determining first area data corresponding to a first field of view angle and second area data corresponding to a second field of view angle according to initial image data acquired by a first camera.
[0035] The field of view (FOV) refers to the angle range that a camera can capture or present. Different types of cameras usually have different corresponding field of view angles. The larger the field of view angle, the wider the scene coverage and the shorter the focal length; the smaller the field of view angle, the farther the shooting distance and the longer the focal length. Accordingly, the first field of view angle refers to the scene range that the first camera can capture, and the second field of view angle refers to the scene range that the second camera can capture. The first field of view angle is greater than the second field of view angle, which means that the scene range captured by the first camera is greater than the scene range captured by the second camera.
[0036] The initial image data refers to the image data collected by the image sensor without being processed by the image processing process, that is, the initial image data is raw domain data. The first area data refers to the image data within the first field of view angle range in the initial image data acquired by the first camera, and the second area data refers to the image data within the second field of view angle range in the initial image data acquired by the first camera. In some exemplary embodiments, the first area data may also refer to the image data corresponding to the target subject within the first field of view angle range in the initial image data acquired by the first camera, and correspondingly, the second area data refers to the image data corresponding to the target subject within the second field of view angle range in the initial image data acquired by the first camera. Among them, the target subject can be any shooting subject in the shooting picture, for example, the target subject can be a person, plant, animal or scenery in the shooting picture.
[0037] Exemplarily, before the electronic device takes pictures, the field of view angles corresponding to different cameras may be aligned to determine the coordinates of the smaller field of view angle in the larger field of view angle, that is, to determine the position of the imaging image corresponding to the smaller field of view angle in the imaging image corresponding to the larger field of view angle. For example, different cameras may be used to shoot the same scene to obtain different imaging images, and the different imaging images may be aligned, so that the coordinates of the imaging image of the camera corresponding to the smaller field of view angle on the imaging image of the camera corresponding to the larger field of view angle may be determined. For example, the coordinates of the corresponding imaging image may be determined by the vertex position of the imaging image. Then, the first area data may be the image data of the area where the imaging image corresponding to the larger field of view angle is located, and the second area data may be the image data of the area where the imaging image corresponding to the smaller field of view angle is located.
[0038] Exemplarily, after aligning the field of view of the first camera with the field of view of the second camera, in the initial image data acquired by the first camera, the image data of the area corresponding to the field of view of the first camera is used as the first area data, and the image data of the area corresponding to the field of view of the second camera is used as the second area data. The first camera may be any one of an ultra-wide-angle camera, a wide-angle camera, a telephoto camera, or an ultra-telephoto camera, and the second camera may also be any one of an ultra-wide-angle camera, a wide-angle camera, a telephoto camera, or an ultra-telephoto camera. For example, the first camera is an ultra-wide-angle camera, and the second camera may be any one of a wide-angle camera, a telephoto camera, or an ultra-telephoto camera; or, the first camera is a wide-angle camera, and the second camera may be any one of a telephoto camera or an ultra-telephoto camera; or, the first camera is a telephoto camera, and the second camera is an ultra-telephoto camera.
[0039] In an exemplary embodiment, the electronic device further includes a third camera, and a third field of view of the third camera is greater than the first field of view of the first camera. Figure 2As shown, the electronic device includes camera A, camera B and camera C, the field of view of camera A is greater than that of camera B, and the field of view of camera B is greater than that of camera C, that is, the first camera may be camera B, the second camera may be camera C, and the third camera may be camera A. Before calculating the exposure parameters of the camera, the same scene may be photographed by camera A, camera B and camera B respectively, and image data A 202, image data B 204 and image data C 206 may be obtained correspondingly, and image data A 202, image data B 204 and image data C 206 may be aligned, that is, image data A 202, image data B 204 and image data C 206 may be placed in the same image coordinate system, which may be an image coordinate system corresponding to any one of image data A, image data B and image data C, or a newly established image coordinate system. Then, the vertex coordinates of image data A 202, image data B 204 and image data C 206 may be determined in sequence. That is, the area formed by the vertex coordinates of the A image data 202 can represent the field of view of the A camera, the area formed by the vertex coordinates of the B image data 204 can represent the field of view of the B camera, and the area formed by the vertex coordinates of the C image data 204 can represent the field of view of the C camera. In the process of calculating the exposure parameters of the B camera, the image data of the area corresponding to the field of view of the B camera can be used as the first area data in the initial image data obtained by the B camera, and the image data of the area corresponding to the field of view of the C camera can be used as the second area data; in the process of calculating the exposure parameters of the A camera, the image data of the area corresponding to the field of view of the A camera can be used as the first area data in the initial image data obtained by the A camera, and the image data of the area corresponding to the field of view of the B camera can be used as the second area data, and so on.
[0040] Step 104: determine a first exposure value of the first region data and a second exposure value of the second region data.
[0041] The exposure refers to the amount of light received by the image sensor during the shooting process. The first exposure is used to characterize the amount of light received corresponding to the first area data. The second exposure is used to characterize the amount of light received corresponding to the second area data.
[0042] Exemplarily, the corresponding exposure amount can be determined based on the brightness information of the image data. For example, the image data is grayed to obtain gray image data, the mean pixel value in the gray image data is calculated, and the exposure amount of the corresponding image data is characterized by the ratio between the mean pixel value and the maximum gray value of the pixel. The image data in this example can be replaced with the first area data or the second area data to obtain the first exposure amount corresponding to the first area data and the second exposure amount corresponding to the second area data. It should be noted that the method for calculating the first exposure amount or the second exposure amount is not limited to that shown in this example, and can also be calculated using other exposure amount calculation methods.
[0043] Step 106: Determine an exposure parameter of the first camera according to the first exposure amount and the second exposure amount.
[0044] The exposure parameters refer to parameters for exposure, and exposure is performed according to the exposure parameters to obtain a corresponding exposure image. The exposure parameters may include, for example, exposure time, exposure gain, etc.
[0045] Exemplarily, the first exposure amount and the second exposure amount may be fused to obtain a target exposure amount, and corresponding exposure parameters may be determined according to the target exposure amount. For example, the exposure parameters corresponding to the target exposure amount may be determined according to the corresponding relationship between the exposure amount and the exposure parameters, and the exposure parameters may be output.
[0046] Step 108: Control the first camera to perform exposure according to the exposure parameter of the first camera.
[0047] After the exposure parameters of the first camera are obtained, the first camera may be controlled to perform exposure in a subsequent shooting process according to the exposure parameters.
[0048] In an actual application scenario, the exposure parameters of the first camera can be determined by obtaining the initial image data of the current frame obtained by the first camera, and the first camera can be controlled to perform exposure in the process of obtaining the initial image data of the next frame according to the exposure parameters. That is, the exposure parameters of the next frame of initial image data can be determined correspondingly by the initial image data of the previous frame, and the exposure parameters matching the shooting environment can be determined for each frame of initial image data.
[0049] In the above-mentioned exposure control method, by determining the first area data corresponding to the first field of view angle and the second area data corresponding to the second field of view angle according to the initial image data obtained by the first camera, the first exposure amount corresponding to the first area data and the second exposure amount corresponding to the second area data are respectively determined, and the exposure parameters of the first camera are determined according to the first exposure amount and the second exposure amount. The first camera is controlled to expose according to the exposure parameters of the first camera, so that the field of view angles corresponding to different cameras can be aligned, and then the image data of different areas after the field of view angles are aligned are determined. According to the exposure amount corresponding to the image data of different areas, the exposure parameters of the camera corresponding to the larger field of view angle are determined, so that the camera with the larger field of view angle can have an exposure effect that is more consistent with the camera with the smaller field of view angle after being exposed according to the corresponding exposure parameters, thereby achieving the consistency of the exposure effects of cameras corresponding to different field of view angles without increasing additional hardware costs.
[0050] In some embodiments, step 106 of determining the exposure parameter of the first camera according to the first exposure value and the second exposure value includes:
[0051] A target exposure is determined according to the first exposure and the second exposure; and an exposure parameter of the first camera is determined according to the target exposure.
[0052] For example, the first exposure and the second exposure may be weightedly fused to obtain a target exposure, and then the exposure parameter of the first camera may be determined according to the target exposure. The weight of the weighted fusion may be determined according to the first image quality control parameter corresponding to the first camera and the second image quality control parameter corresponding to the second camera.
[0053] Exemplarily, a correspondence between the exposure amount and the exposure parameter may be established in advance, and the exposure parameter corresponding to the target exposure amount may be determined according to the correspondence between the exposure amount and the exposure parameter, that is, the exposure parameter of the first camera.
[0054] In this embodiment, by determining the target exposure amount based on the first exposure amount of the first area data and the second exposure amount of the second area data, and determining the exposure parameters of the first camera based on the target exposure amount, it is possible to accurately determine the exposure parameters of the first camera based on the exposure amounts corresponding to the first area data and the second area data, so that the exposure effect of the first camera is consistent with the exposure effect of the second camera.
[0055] In some embodiments, determining a target exposure according to the first exposure and the second exposure includes:
[0056] Determine a target fusion ratio; fuse the first exposure and the second exposure according to the target fusion ratio to obtain a target exposure.
[0057] The target fusion ratio is used to characterize the fusion weight of the target exposure obtained by fusing the first exposure and the second exposure. The target fusion ratio can be preset. For example, the target fusion ratio can be set to 0.6, 0.7 or 0.75 based on experience. The target fusion ratio can also be determined based on image quality control parameters. The image quality control parameters refer to parameters that affect the quality of the image, such as brightness and color. The image quality control parameters include, for example, at least one of the lux index, ambient brightness, dynamic range compression gain or color temperature.
[0058] Exemplarily, the first camera generates a first image quality control parameter during shooting, and correspondingly, the second camera generates a second image quality control parameter during shooting, and the target fusion ratio can be determined based on the first image quality control parameter and the second image quality control parameter.
[0059] In one example, the first exposure and the second exposure may be weighted and fused according to the target fusion ratio to obtain the target exposure. That is, the target fusion ratio may be used as the weighted weight of the first exposure, and the difference between 1 and the target fusion ratio may be used as the weighted weight of the second exposure. For example, if the target fusion ratio is R, the target exposure E may be obtained according to the following formula (1).
[0060] E=R*E1+(1-R)*E2 Formula (1)
[0061] Wherein, E1 represents the first exposure amount, and E2 represents the second exposure amount.
[0062] In this embodiment, the target exposure is obtained by fusing the first exposure and the second exposure according to the fusion ratio. The exposure corresponding to the first area data and the second area data can be comprehensively considered according to the target fusion ratio to obtain more accurate exposure parameters of the first camera.
[0063] In some embodiments, determining a target fusion ratio includes:
[0064] Acquire at least one first image quality control parameter corresponding to the first camera and at least one second image quality control parameter corresponding to the second camera; determine a parameter relationship value according to the first image quality control parameter and the second image quality control parameter; determine a target fusion ratio according to at least one parameter relationship value.
[0065] The first image quality control parameter refers to the image quality control parameter corresponding to the first camera, and the second image quality control parameter refers to the image quality control parameter corresponding to the second camera. The first image quality control parameter or the second image quality control parameter may include one or more. For example, the first image quality control parameter may include at least one of the lux index, ambient brightness, dynamic range compression gain, or color temperature corresponding to the first camera, and the second image quality control parameter includes at least one of the lux index, ambient brightness, dynamic range compression gain, or color temperature corresponding to the second camera. The parameter relationship value is used to characterize the mathematical relationship between the first image quality control parameter and the second image quality control parameter.
[0066] Exemplarily, the electronic device obtains at least one first image quality control parameter corresponding to the first camera and at least one second image quality control parameter corresponding to the second camera, determines a parameter relationship value based on the first image quality control parameter and the corresponding second image quality control parameter, and then determines a target fusion ratio based on the determined parameter relationship value. A parameter relationship value can be determined based on a first image quality control parameter and a corresponding second image quality control parameter. The first image quality control parameter and the corresponding second image quality control parameter refer to the same image quality control parameter corresponding to different cameras.
[0067] In an actual application scenario, the electronic device obtains multiple first image quality control parameters corresponding to the first camera and multiple second image quality control parameters corresponding to the second camera, determines parameter relationship values according to the corresponding first image quality control parameters and second image quality control parameters, and then determines the target fusion ratio according to the multiple parameter relationship values. Among them, the corresponding relationship between one or more parameter relationship values and the fusion ratio can be pre-set, and the target fusion ratio is determined according to the corresponding relationship.
[0068] In this embodiment, by determining corresponding parameter relationship values according to at least one first image quality control parameter corresponding to the first camera and at least one second image quality control parameter corresponding to the second camera, and determining the target fusion ratio according to at least one parameter relationship value, it is possible to determine the target fusion ratio through at least one image quality control parameter, and to improve the accuracy of the target fusion ratio.
[0069] In some embodiments, determining the parameter relationship value according to the first image quality control parameter and the second image quality control parameter includes:
[0070] The ratio between the first image quality control parameter and the corresponding second image quality control parameter is used as the parameter relationship value; or, the parameter relationship value is determined based on the product of the first image quality control parameter and the second image quality control parameter; or, the parameter relationship value is determined based on the sum of the first image quality control parameter and the second image quality control parameter.
[0071] In an exemplary embodiment, the ratio between each first image quality control parameter and the corresponding second image quality control parameter is used as a parameter relationship value. It should be noted that the first image quality control parameter and the second image quality control parameter for determining the parameter relationship value are the same image quality control parameter. Generally, several image quality control parameters are included, and the corresponding number of parameter relationship values are included. Exemplarily, if the first image quality control parameter corresponding to the first camera includes LuxIndex1 (lux index), DrcGain1 (dynamic range compression gain) and Luma1 (brightness), and the second image quality control parameter corresponding to the second camera includes LuxIndex2, DrcGain2 and Luma2, then the corresponding parameter relationship value is LuxRatio (lux ratio) = LuxIndex1 / LuxIndex2, DrcRatio (dynamic range compression gain ratio) = DrcGain1 / DrcGain2, LumaRatio (brightness ratio) = Luma1 / Luma2, that is, the parameter relationship value includes LuxRatio, DrcRatio and LumaRatio.
[0072] In an exemplary embodiment, the product of the first image quality control parameter and the second image quality control parameter may be used as a parameter relationship value. Alternatively, the product of the first image quality control parameter and the second image quality control parameter and the product of a preset coefficient may be used as a parameter relationship value. The preset coefficient may be set or changed according to the actual application scenario. For example, if the first image quality control parameter and the second image quality control parameter in the above example are taken as an example, the parameter relationship value may include LuxIndex1*LuxIndex2, DrcGain1*DrcGain2 and Luma1*Luma2, or the parameter relationship value may include K*LuxIndex1*LuxIndex2, K*DrcGain1*DrcGain2 and K*Luma1*Luma2, where K is a preset coefficient.
[0073] In an exemplary embodiment, the sum of the first image quality control parameter and the second image quality control parameter may be calculated, and the ratio of the first image quality control parameter to the sum may be used as the parameter relationship value. Alternatively, the ratio of the second image quality control parameter to the sum may be used as the parameter relationship value. For example, if the first image quality control parameter and the second image quality control parameter in the above example are taken as examples, the parameter relationship values may include LuxIndex1 / (LuxIndex1+LuxIndex2), DrcGain1 / (DrcGain1+DrcGain2), and Luma1 / (Luma1+Luma2). Alternatively, the parameter relationship values include LuxIndex2 / (LuxIndex1+LuxIndex2), DrcGain2 / (DrcGain1+DrcGain2), and Luma2 / (Luma1+Luma2).
[0074] In this embodiment, by determining the parameter relationship value based on the ratio, product or sum between the first image quality control parameter and the second image quality control parameter, the parameter relationship value can be fully determined based on the image quality control parameters corresponding to the first area data and the second area data, thereby improving the accuracy of the parameter relationship value and further improving the exposure consistency of the first camera and the second camera.
[0075] In some exemplary embodiments, determining a target fusion ratio according to at least one parameter relationship value includes:
[0076] A target fusion ratio is determined according to a corresponding relationship between the parameter relationship value and the fusion ratio and at least one parameter relationship value.
[0077] Among them, a correspondence between the parameter relationship value and the fusion ratio is preset, and the correspondence can be a correspondence between one parameter relationship value and one fusion ratio, or a correspondence between multiple parameter relationship values and one fusion ratio. That is, the correspondence between the parameter relationship value and the fusion ratio is a one-to-one or many-to-one correspondence. For the correspondence between multiple parameter relationship values and one fusion ratio, the relationship value intervals of other parameter relationship values can be determined in sequence according to the relationship value interval of the first parameter relationship value, and the corresponding fusion ratio can be determined according to the relationship value interval of the last parameter relationship value.
[0078] Exemplarily, if the parameter relationship value includes one, the target fusion ratio corresponding to the parameter relationship value is determined according to the correspondence between the parameter relationship value and the fusion ratio. If the parameter relationship value includes multiple, the target fusion ratio corresponding to the multiple parameter relationship values is determined according to the correspondence between the multiple parameter relationship values and the fusion ratio.
[0079] In this embodiment, the target fusion ratio can be determined quickly and conveniently according to the corresponding relationship between the parameter relationship value and the fusion ratio, and at least one parameter relationship value, thereby improving the efficiency of determining the target fusion ratio.
[0080] In some exemplary embodiments, the parameter relationship value includes a first parameter relationship value and a second parameter relationship value; and determining a target fusion ratio according to at least one parameter relationship value includes:
[0081] Determine a first fusion ratio based on the correspondence between the parameter relationship value and the fusion ratio and the first parameter relationship value; determine a second fusion ratio based on the correspondence between the parameter relationship value and the fusion ratio and the second parameter relationship value; wherein the number of corresponding parameter relationship values in the first parameter relationship value and the second parameter relationship value is different; determine a target fusion ratio based on the first fusion ratio and the second fusion ratio.
[0082] The first parameter relationship value refers to the parameter relationship value of the first quantity, and the second parameter relationship value refers to the parameter relationship value of the second quantity. The first quantity and the second quantity are different.
[0083] Exemplarily, based on the correspondence between the parameter relationship value and the fusion ratio, a first fusion ratio corresponding to the first parameter relationship value and a second fusion ratio corresponding to the second parameter relationship value can be determined, and then the product of the first fusion ratio and the second fusion ratio is used as the target fusion ratio.
[0084] In an exemplary embodiment, the third fusion ratio corresponding to the third parameter relationship value can be determined according to the corresponding relationship between the parameter relationship value and the fusion ratio. The third parameter relationship value refers to the parameter relationship value of the third quantity, and the third quantity is different from the first quantity or the second quantity. Then the product of the first fusion ratio, the second fusion ratio and the third fusion ratio is used as the target fusion ratio. It should be noted that, by analogy, the corresponding fusion ratio can also be determined according to more numbers of parameter relationship values, and then the product of the fusion ratios according to different numbers of parameter relationship values is used as the target fusion ratio, which will not be listed one by one here.
[0085] In actual application scenarios, the process of determining the target fusion ratio according to the corresponding relationship between the parameter relationship value and the fusion ratio can also be called the trigger process. The number of parameter relationship values corresponds to the number of trigger levels. For example, if the parameter relationship value is 2, it corresponds to a secondary trigger, and if the parameter relationship value is 3, it corresponds to a tertiary trigger. Exemplarily, if the parameter relationship value includes LuxRatio (lux ratio), DrcRatio (Dynamic Range Compression Gain Ratio, dynamic range compression gain ratio) and LumaRatio (brightness ratio), the first-level trigger can be LuxRatio, the second-level trigger can be DrcRatio, and the third-level trigger can be LumaRatio, or the first-level trigger can be DrcRatio, the second-level trigger can be LuxRatio, and the third-level trigger can be LumaRatio, or the first-level trigger can be LumaRatio, the second-level trigger can be LuxRatio, and the third-level trigger can be LumaRatio, or the first-level trigger can be LumaRatio, the second-level trigger can be LuxRatio, and the third-level trigger can be DrcRatio, etc. In other words, there is no restriction on the order of triggers. Even for triggers of different orders, as long as the parameter relationship values corresponding to the triggers are the same, the target fusion ratio finally determined is also the same. After performing three levels of triggers in sequence, the target fusion ratio can be determined. Alternatively, if the parameter relationship values include LuxRatio, DrcRatio, LumaRatio and color temperature, that is, four parameter relationship values, four levels of triggers can be performed to determine the first fusion ratio. You can also select one, two or three of the four parameter relationship values to perform corresponding triggers to obtain the second fusion ratio, and then determine the target fusion ratio based on the first fusion ratio and the second fusion ratio.
[0086] In this embodiment, a first fusion ratio corresponding to a first parameter relationship value is determined according to the correspondence between the parameter relationship value and the fusion ratio, and a second fusion ratio corresponding to a second parameter relationship value is determined. A target fusion ratio is determined according to the first fusion ratio and the second fusion ratio, and the target fusion ratio is determined jointly by fusion ratios determined by a plurality of numbers of parameter relationship values, thereby improving the accuracy of the target fusion ratio.
[0087] In some embodiments, the above method further comprises:
[0088] Determine a third exposure amount corresponding to the initial image data acquired by the second camera; determine an exposure parameter of the second camera according to the third exposure amount; and control the second camera to perform exposure according to the exposure parameter of the second camera.
[0089] The third exposure value refers to the exposure value of the initial image data acquired by the second camera. The initial image data acquired by the second camera is image data that has not been processed by the image processing flow, that is, raw domain data.
[0090] Exemplarily, the initial image data collected by the second camera is obtained, and the exposure amount of the initial image data collected by the second camera is calculated to obtain the third exposure amount. For example, the initial image data collected by the second camera can be grayed to obtain corresponding gray image data, and the ratio of the pixel mean value to the maximum pixel value in the gray image data is used as the third exposure amount. According to the corresponding relationship between the exposure amount and the exposure parameter, the exposure parameter corresponding to the third exposure amount is determined, that is, the exposure parameter of the second camera is obtained, and exposure can be performed according to the exposure parameter of the second camera to obtain the exposure image of the second camera.
[0091] In actual application scenarios, the first camera can be an ultra-wide-angle camera, and accordingly, the second camera is a wide-angle camera, a telephoto camera, or an ultra-telephoto camera; or, the first camera is a wide-angle camera, and accordingly, the second camera is a telephoto camera or an ultra-telephoto camera; or, the first camera is a telephoto camera, the second camera is an ultra-telephoto camera, and so on.
[0092] Exemplarily, after the first camera is exposed using the exposure parameters of the first camera, first image data can be obtained, and after the second camera is exposed using the exposure parameters of the second camera, second image data can be obtained. The first image data and the second image data can be fused to obtain the final captured image data. Since the exposure effects of the first image data and the second image data are consistent, the fused image data will not show obvious fusion traces, such as brightness differences or color faults, thereby improving the visual quality of the image.
[0093] In this embodiment, by determining the exposure parameters of the second camera according to the third exposure amount corresponding to the initial image data obtained by the second camera, and controlling the second camera to expose according to the exposure parameters of the second camera, it is possible to achieve exposure consistency between the first camera and the second camera in the same scene, that is, no matter which camera is used to shoot, images with the same exposure effect can be obtained, thereby improving the shooting experience.
[0094] In some embodiments, the electronic device further includes a third camera, and a third field of view of the third camera is greater than the first field of view of the first camera; the above method further includes:
[0095] According to the initial image data obtained by the third camera, the third area data corresponding to the third field of view angle and the fourth area data corresponding to the first field of view angle are determined; the fourth exposure amount of the third area data and the fifth exposure amount of the fourth area are determined; according to the fourth exposure amount and the fifth exposure amount, the exposure parameters of the third camera are determined; according to the exposure parameters of the third camera, the third camera is controlled to expose.
[0096] The initial image data acquired by the third camera is image data collected by the third camera and not processed by the image processing flow, and the initial image data acquired by the third camera is raw data. The third field of view angle is the field of view angle corresponding to the third camera.
[0097] Exemplarily, when the first field of view angle and the second field of view angle are aligned, the third field of view angle can be aligned with the first field of view angle, so that the image data corresponding to the third field of view angle in the initial image data acquired by the third camera can be used as the third area data, and the image data corresponding to the first field of view angle can be used as the fourth area data, and the exposure of the third area data is determined as the fourth exposure, and the exposure of the fourth area data is determined as the fifth exposure. According to the target fusion weight, the fourth exposure and the fifth exposure are weightedly fused to obtain the weighted exposure, and the exposure parameters of the third camera are determined according to the weighted exposure. Among them, the target fusion weight can be determined with reference to the determination method of the target fusion ratio in the above embodiment, that is, the target fusion weight can be a preset fusion weight, and can also be determined according to the third image quality control parameter corresponding to the third camera and the first image quality control parameter corresponding to the first camera.
[0098] In actual application scenarios, the third camera may be an ultra-wide-angle camera, the first camera may be a wide-angle camera, and the second camera may be a telephoto camera; or, the third camera is a wide-angle camera, the first camera is a telephoto camera, and the second camera is an ultra-telephoto camera; or, the third camera is an ultra-wide-angle camera, the first camera is a wide-angle camera, and the second camera is an ultra-telephoto camera; or, the third camera is an ultra-wide-angle camera, the first camera is a telephoto camera, and the second camera is an ultra-telephoto camera, etc.
[0099] In an exemplary embodiment, the corresponding initial image data is obtained through the first camera, the second camera and the third camera respectively, and the first area data corresponding to the first field of view angle and the second area data corresponding to the second field of view angle are determined according to the initial image data obtained by the first camera, and the first exposure amount of the first area data and the second exposure amount of the second area data are determined, and the exposure parameters of the first camera are determined according to the first exposure amount and the second exposure amount; the third area data corresponding to the third field of view angle and the fourth area data corresponding to the first field of view angle are determined according to the initial image data obtained by the third camera, and the fourth exposure amount of the third area data and the fifth exposure amount of the fourth area data are determined, and the exposure parameters of the third camera are determined according to the fourth exposure amount and the fifth exposure amount; the third exposure amount corresponding to the initial image data obtained by the second camera is determined, and the exposure parameters of the second camera are determined according to the third exposure amount. Then, the first camera can be controlled to be exposed according to the exposure parameters of the first camera, the second camera can be controlled to be exposed according to the exposure parameters of the second camera, and the third camera can be controlled to be exposed according to the exposure parameters of the third camera, so as to achieve the consistency of the exposure effects of the first camera, the second camera and the third camera.
[0100] In this embodiment, by aligning the field of view angles of the three cameras, exposure consistency of the three cameras can be achieved, so that the three images taken by the three cameras for the same scene have the same brightness and color, thereby achieving three-camera exposure consistency.
[0101] In an exemplary embodiment, the electronic device further includes a fourth camera, and the fourth field of view of the fourth camera is greater than the third field of view of the third camera. According to the initial image data acquired by the fourth camera, the fifth area data corresponding to the fourth field of view and the sixth area data corresponding to the third field of view can be determined, the sixth exposure of the fifth area and the seventh exposure of the sixth area data can be determined, and the exposure parameters of the fourth camera can be determined according to the sixth exposure and the seventh exposure. According to the exposure parameters of the fourth camera, the fourth camera is controlled to be exposed. Among them, the process of determining the exposure parameters of the fourth camera can be implemented with reference to the logic of determining the exposure parameters of the first camera in the above embodiment. It can be achieved that in a four-camera environment, four images with the same brightness and color can be obtained by shooting the same scene, and the exposure consistency of the four cameras can be achieved.
[0102] In some embodiments, the above method further comprises:
[0103] Acquire first image data obtained by exposing the first camera according to the exposure parameters of the first camera, acquire second image data acquired by the second camera, and acquire third image data obtained by exposing the third camera according to the exposure parameters of the third camera; fuse the first image data, the second image data, and the third image data to obtain target image data.
[0104] The second image data may be obtained by exposing the second camera using the exposure parameters determined after the field of view angle is aligned, that is, the exposure parameters of the second camera are determined according to the exposure amount of the initial image data acquired by the second camera, and then the second image data is acquired according to the exposure parameters of the second camera. The second image data may also be obtained by exposing using other exposure parameters.
[0105] In actual application scenarios, for the same shooting scene, the first camera is exposed according to the exposure parameters of the first camera to obtain first image data, the second camera is exposed according to the exposure parameters of the second camera to obtain second image data, and the third camera is exposed according to the exposure parameters of the third camera to obtain third image data. The first image data, the second image data and the third image data are fused to obtain target image data.
[0106] In this embodiment, the first camera is exposed according to the exposure parameters of the first camera to obtain the first image data, the second camera is exposed according to the exposure parameters of the third camera to obtain the third image data, and the third camera is exposed according to the exposure parameters of the third camera to obtain the third image data. First image data, second image data and third image data with consistent exposure effect can be obtained, and the image data with consistent exposure effect are fused, which can reduce the artifact phenomenon caused by image fusion and avoid the situation where obvious brightness difference or color fault occurs in the stitching area, so that the transition of the stitched image is natural and consistent with the effect taken by the same camera, thereby improving the visual quality of the image and improving the shooting experience.
[0107] In some exemplary embodiments, the electronic device includes a first camera, a second camera, and a third camera, and the exposure processing method is described by taking the first camera as a wide-angle camera, the second camera as a main camera, and the third camera as a telephoto camera as an example. The field of view of the wide-angle camera is greater than the field of view of the main camera, and the field of view of the main camera is greater than the field of view of the telephoto camera. The main camera can be a camera corresponding to a zoom ratio of 1x.
[0108] The exposure parameter determination process of the main camera is as follows: Figure 3As shown, the electronic device obtains the first initial image data collected by the main camera, the first initial image data is raw data, and the image data corresponding to the field of view of the main camera in the first initial image data is used as the main camera stats (first area data), and the image data corresponding to the field of view of the telephoto camera in the first initial image data is used as the telephoto stats (second area data). The main camera stats are subjected to grayscale histogram statistics and brightness calculation to obtain ExpIndex1 (first exposure), and the telephoto stats are subjected to grayscale histogram statistics and brightness calculation to obtain ExpIndex2 (second exposure). ExpIndex1 and ExpIndex2 are input into the Blend module to obtain the first target exposure, and the first target exposure is converted into exposure time ExpTime and exposure gain ExpGain output to obtain the exposure parameters of the main camera, that is, the exposure parameters include exposure time and exposure gain.
[0109] Among them, the Blend module merges ExpIndex1 and ExpIndex2 through the fusion ratio (BlendRatio) to obtain Final_ExpIndex. The flow chart of determining the fusion ratio is as follows Figure 4 As shown, the electronic device obtains LuxIndex (lux index) _ExpIndex1 corresponding to the main camera, LuxIndex_ExpIndex2 corresponding to the telephoto camera, DrcGain (dynamic range compression gain) _Expindex1 corresponding to the main camera, DrcGain_Expindex2 corresponding to the telephoto camera, Luma (brightness) _Expindex1 corresponding to the main camera, and Luma_Expindex2 corresponding to the telephoto camera. Then, the ratio between the first image quality control parameter corresponding to the main camera and the second image quality control parameter corresponding to the telephoto camera is used as the parameter relationship value, as shown in the following formula (2).
[0110] Formula (2)
[0111] Among them, LuxRatio (lux rate), DrcRatio (dynamic range compression gain rate), and LumaRatio (brightness rate) represent parameter relationship values.
[0112] Figure 4Ratio_list in is used to indicate a parameter table of three-level triggers, where the first-level trigger can be LuxRatio, the second-level trigger can be DrcRatio, and the third-level trigger can be LumaRatio. That is, the first-level trigger interval where the calculated LuxRatio is located can be determined first, the second-level trigger interval where DrcRatio is located can be determined in the first-level trigger interval, the third-level trigger interval where LumaRatio is located can be determined in the second-level trigger interval, and the fusion ratio (i.e., the target fusion ratio) can be determined according to the third-level trigger interval.
[0113] ExpIndex1 and ExpIndex2 can be weightedly fused through BlendRatio to obtain Final_ExpIndex, as shown in the following formula (3).
[0114] Formula (3)
[0115] The exposure parameter determination process of the wide-angle camera is as follows: Figure 5 As shown, the electronic device obtains the second initial image data collected by the wide-angle camera, the second initial image data is raw data, and the image data corresponding to the field angle of the wide-angle camera in the second initial image data is used as the wide-angle stats (third area data), and the image data corresponding to the field angle of the main camera in the second initial image data is used as the main camera stats (fourth area data). The grayscale histogram statistics and brightness calculation are performed on the wide-angle stats to obtain ExpIndex4 (fourth exposure), and the grayscale histogram statistics and brightness calculation are performed on the telephoto stats to obtain ExpIndex5 (fifth exposure). ExpIndex4 and ExpIndex5 are input into the Blend module to obtain the second target exposure, and the second target exposure is converted into the exposure time ExpTime and the exposure gain ExpGain output, that is, the exposure parameters of the wide-angle camera are obtained.
[0116] The exposure parameter determination process of the telephoto camera is as follows: Figure 6 As shown, the electronic device obtains the third initial image data collected by the telephoto camera, where the third initial image data is raw data, and uses the third initial image data as telephoto stats. Grayscale histogram statistics and brightness calculation are performed on the telephoto stats to obtain ExpIndex3 (third exposure amount). The third exposure amount is converted into exposure time ExpTime and exposure gain ExpGain outputs, thereby obtaining the exposure parameters of the telephoto camera.
[0117] In this embodiment, by aligning the field of view of the three cameras and determining the exposure parameters of each camera based on the aligned field of view, the exposure consistency between the multiple cameras can be improved, so that the multiple images taken for the same scene have similar brightness and color performance and similar exposure effects. If multiple images with consistent exposure are fused, the artifacts at the splicing during the image fusion process can be reduced, and the phenomenon of large brightness differences or color faults in the splicing area can be avoided, so that the transition of the spliced image is natural and the visual quality of the image is improved. In addition, the exposure consistency of different cameras can ensure that the user can maintain a stable exposure effect no matter which camera is used for shooting, or zoom operations between different cameras, thereby improving the shooting experience.
[0118] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0119] Based on the same inventive concept, the embodiment of the present application also provides an exposure processing device for implementing the above-mentioned exposure processing method. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above-mentioned method, so the specific limitations in one or more exposure processing device embodiments provided below can refer to the limitations of the exposure processing method above, and will not be repeated here.
[0120] In an exemplary embodiment, Figure 7 As shown, an exposure processing device 700 is provided, comprising: a region data determination module 702, an exposure amount determination module 704, an exposure parameter determination module 706 and an exposure control module 708, wherein:
[0121] The region data determination module 702 is used to determine first region data corresponding to the first field of view angle and second region data corresponding to the second field of view angle according to the initial image data acquired by the first camera;
[0122] An exposure determination module 704, configured to determine a first exposure of the first region data and a second exposure of the second region data;
[0123] An exposure parameter determination module 706, configured to determine an exposure parameter of the first camera according to the first exposure amount and the second exposure amount;
[0124] The exposure control module 708 is used to control the first camera to perform exposure according to the exposure parameters of the first camera.
[0125] In some embodiments, the exposure parameter determination module 706 is further configured to determine a target exposure according to the first exposure and the second exposure; and determine an exposure parameter of the first camera according to the target exposure.
[0126] In some embodiments, the exposure parameter determination module 706 is further used to determine a target fusion ratio; the first exposure amount and the second exposure amount are fused according to the target fusion ratio to obtain a target exposure amount.
[0127] In some embodiments, the exposure parameter determination module 706 is also used to obtain at least one first image quality control parameter corresponding to the first camera and at least one second image quality control parameter corresponding to the second camera; determine a parameter relationship value based on the first image quality control parameter and the second image quality control parameter; and determine a target fusion ratio based on at least one parameter relationship value.
[0128] In some embodiments, the exposure parameter determination module 706 is further used to use the ratio between the first image quality control parameter and the corresponding second image quality control parameter as the parameter relationship value; or, to determine the parameter relationship value based on the product of the first image quality control parameter and the second image quality control parameter; or, to determine the parameter relationship value based on the sum of the first image quality control parameter and the second image quality control parameter.
[0129] In some embodiments, the exposure parameter determination module 706 is further configured to determine a target fusion ratio according to a correspondence between the parameter relationship value and the fusion ratio and at least one parameter relationship value.
[0130] In some embodiments, the parameter relationship value includes a first parameter relationship value and a second parameter relationship value; the exposure parameter determination module 706 is also used to determine the first fusion ratio based on the correspondence between the parameter relationship value and the fusion ratio and the first parameter relationship value; determine the second fusion ratio based on the correspondence between the parameter relationship value and the fusion ratio and the second parameter relationship value; the number of corresponding parameter relationship values in the first parameter relationship value and the second parameter relationship value is different; determine the target fusion ratio based on the first fusion ratio and the second fusion ratio.
[0131] In some embodiments, the above-mentioned exposure processing device 700 also includes a second camera exposure processing module, which is used to determine a third exposure amount corresponding to the initial image data obtained by the second camera; determine the exposure parameters of the second camera according to the third exposure amount; and control the second camera to expose according to the exposure parameters of the second camera.
[0132] In some embodiments, the electronic device also includes a third camera, and the third field of view angle of the third camera is greater than the first field of view angle of the first camera; the above-mentioned exposure processing device 700 also includes a third camera exposure processing module, which is used to determine the third area data corresponding to the third field of view angle and the fourth area data corresponding to the first field of view angle according to the initial image data acquired by the third camera; determine the fourth exposure amount of the third area data and the fifth exposure amount of the fourth area; determine the exposure parameters of the third camera according to the fourth exposure amount and the fifth exposure amount; and control the third camera to expose according to the exposure parameters of the third camera.
[0133] In some embodiments, the above-mentioned exposure processing device 700 also includes an image fusion module, which is used to obtain first image data obtained by the first camera through exposure according to the exposure parameters of the first camera, obtain second image data collected by the second camera, and obtain third image data obtained by the third camera through exposure according to the exposure parameters of the third camera; the first image data, the second image data and the third image data are fused to obtain target image data.
[0134] Each module in the above-mentioned exposure processing device can be implemented in whole or in part by software, hardware or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in an electronic device in the form of hardware, or can be stored in a memory in an electronic device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.
[0135] In an exemplary embodiment, an electronic device is provided. The electronic device may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 8As shown. The electronic device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the electronic device is used to exchange information between the processor and an external device. The communication interface of the electronic device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (Near Field Communication, NFC) or other technologies. When the computer program is executed by the processor, an exposure processing method is implemented. The display unit of the electronic device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the electronic device casing, or an external keyboard, touchpad or mouse.
[0136] Those skilled in the art will understand that Figure 8 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0137] In an exemplary embodiment, an electronic device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps of the exposure processing method in the above embodiment when executing the computer program.
[0138] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the exposure processing method in the above embodiment are implemented.
[0139] In one embodiment, a computer program product is provided, including a computer program, which implements the steps of the exposure processing method in the above embodiment when executed by a processor.
[0140] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0141] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0142] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0143] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. An exposure processing method, characterized in that: Applied to an electronic device, the electronic device includes a first camera and a second camera, a first field of view angle of the first camera is greater than a second field of view angle of the second camera; the method includes: Determine, according to the initial image data acquired by the first camera, first area data corresponding to the first field of view angle and second area data corresponding to the second field of view angle; Determining a first exposure amount of the first area data and a second exposure amount of the second area data; Determining an exposure parameter of the first camera according to the first exposure amount and the second exposure amount; The first camera is controlled to perform exposure according to the exposure parameter of the first camera.
2. The method according to claim 1, characterized in that The determining, according to the first exposure amount and the second exposure amount, an exposure parameter of the first camera includes: Determining a target exposure amount according to the first exposure amount and the second exposure amount; An exposure parameter of the first camera is determined according to the target exposure.
3. The method according to claim 2, characterized in that The step of determining a target exposure amount according to the first exposure amount and the second exposure amount includes: determining a target fusion ratio; The first exposure and the second exposure are fused according to the target fusion ratio to obtain a target exposure.
4. The method according to claim 3, characterized in that The determining of the target fusion ratio comprises: Acquire at least one first image quality control parameter corresponding to the first camera, and at least one second image quality control parameter corresponding to the second camera; determining a parameter relationship value according to the first image quality control parameter and the second image quality control parameter; A target fusion ratio is determined according to at least one of the parameter relationship values.
5. The method according to claim 4, characterized in that The determining the parameter relationship value according to the first image quality control parameter and the second image quality control parameter includes: taking a ratio between the first image quality control parameter and the corresponding second image quality control parameter as a parameter relationship value; Alternatively, determining a parameter relationship value according to a product of the first image quality control parameter and the second image quality control parameter; Alternatively, the parameter relationship value is determined according to the sum of the first image quality control parameter and the second image quality control parameter.
6. The method according to claim 4, characterized in that Determining a target fusion ratio according to at least one of the parameter relationship values includes: A target fusion ratio is determined according to the corresponding relationship between the parameter relationship value and the fusion ratio and at least one of the parameter relationship values.
7. The method according to claim 4, characterized in that The parameter relationship value includes a first parameter relationship value and a second parameter relationship value; Determining a target fusion ratio according to at least one of the parameter relationship values includes: Determining a first fusion ratio according to a correspondence between the parameter relationship value and the fusion ratio and the first parameter relationship value; determining a second fusion ratio according to a corresponding relationship between the parameter relationship value and the fusion ratio and a second parameter relationship value; the number of corresponding parameter relationship values in the first parameter relationship value and the second parameter relationship value is different; A target fusion ratio is determined according to the first fusion ratio and the second fusion ratio.
8. The method according to claim 1, characterized in that The method further comprises: Determining a third exposure value corresponding to the initial image data acquired by the second camera; Determining exposure parameters of the second camera according to the third exposure amount; The second camera is controlled to perform exposure according to the exposure parameter of the second camera.
9. The method according to any one of claims 1 to 8, characterized in that The electronic device further includes a third camera, and a third field of view angle of the third camera is greater than a first field of view angle of the first camera; and the method further includes: Determining, according to the initial image data acquired by the third camera, third area data corresponding to the third field of view angle and fourth area data corresponding to the first field of view angle; determining a fourth exposure value of the third area data and a fifth exposure value of the fourth area; Determining an exposure parameter of the third camera according to the fourth exposure amount and the fifth exposure amount; According to the exposure parameter of the third camera, the third camera is controlled to perform exposure.
10. The method according to claim 9, characterized in that The method further comprises: Acquire first image data obtained by exposing the first camera according to the exposure parameters of the first camera, acquire second image data acquired by the second camera, and acquire third image data obtained by exposing the third camera according to the exposure parameters of the third camera; The first image data, the second image data and the third image data are fused to obtain target image data.
11. An exposure processing device, characterized in that: The device comprises: A region data determination module, used to determine first region data corresponding to a first field of view angle and second region data corresponding to a second field of view angle according to initial image data acquired by the first camera; An exposure determination module, used to determine a first exposure of the first area data and a second exposure of the second area data; an exposure parameter determination module, configured to determine an exposure parameter of the first camera according to the first exposure amount and the second exposure amount; The exposure control module is used to control the first camera to perform exposure according to the exposure parameters of the first camera.
12. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 10 are implemented.
13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 10 are implemented.
14. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 10 are implemented.