Exposure parameter adjustment method, device, storage medium and electronic device

By dynamically adjusting the weight value and exposure parameters of the light meter, the problem that the fixed weight value light meter in the prior art cannot adapt to picture changes, and the image formation quality and exposure effect of the image are improved.

CN115037883BActive Publication Date: 2024-11-12GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202210481753.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-05
Publication Date
2024-11-12
Estimated Expiration
2042-05-05

AI Technical Summary

Technical Problem

In the existing automatic exposure control scheme, the fixed weight value light meter is difficult to adapt to changes in the picture content, resulting in normal exposure in areas with high weight value, but in areas with too low weight value it is easy to underexposed or overexposure, affecting image quality. .

Method used

By acquiring the image data collected by the image sensor, the target area is extracted based on the preset sample area set, and the light meter weight value and exposure parameters are dynamically adjusted according to the position information of the target area to ensure normal exposure of the image.

Benefits of technology

Improve the image imaging quality, ensure normal exposure can be achieved in different shooting scenes, avoid underexposed or overexposed, and improve shooting effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115037883B_ABST
    Figure CN115037883B_ABST
Patent Text Reader

Abstract

The present application discloses an exposure parameter adjustment method, device, storage medium and electronic device, wherein the method comprises: obtaining first image data collected by an image sensor, extracting a target area in the first image data based on a set area set, the set area set being a set of sample areas pre-set in different shooting scenes, obtaining a light meter weight value corresponding to the target area based on the position information of the target area in the first image data, and adjusting the exposure parameters of the image sensor based on the first image data and the light meter weight value. With the present application, the light meter weight value and the exposure parameters of the image sensor are dynamically adjusted according to the target area in the captured image during the image capture process to achieve normal exposure of the captured image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to an exposure parameter adjustment method, device, storage medium and electronic device. Background Art

[0002] Automatic exposure is the default setting of many digital cameras. In this exposure mode, the camera will automatically control the shooting exposure. The user does not need to do anything at all. The camera can automatically set the exposure parameters according to the intensity of the light reflected back from the scene. The exposure parameters are mainly used to adjust the overall brightness of the subject. If the subject is too dim, the exposure parameters can be adjusted to increase the brightness.

[0003] Light metering is an important step in measuring appropriate exposure parameters. Only by obtaining the correct exposure parameters through light metering can you take satisfactory pictures. Summary of the invention

[0004] The embodiments of the present application provide an exposure parameter adjustment method, device, storage medium and electronic device, which can dynamically adjust the light meter weight value and the exposure parameter of the image sensor according to the target area in the captured image during the image capture process to achieve normal exposure of the captured image. The technical solution is as follows:

[0005] In a first aspect, an embodiment of the present application provides a method for adjusting exposure parameters, the method comprising:

[0006] Acquire first image data collected by an image sensor, and extract a target area from the first image data based on a set area set, where the set area set is a set of sample areas pre-set in different shooting scenes;

[0007] Based on the position information of the target area in the first image data, obtaining a light meter weight value corresponding to the target area;

[0008] An exposure parameter of the image sensor is adjusted based on the first image data and the light meter weight value.

[0009] In a second aspect, an embodiment of the present application provides an exposure parameter adjustment device, the device comprising:

[0010] A target region acquisition module, used to acquire first image data collected by an image sensor, and extract a target region from the first image data based on a set region set, wherein the set region set is a set of sample regions pre-set in different shooting scenes;

[0011] a light meter calculation module, configured to obtain a light meter weight value corresponding to the target area based on position information of the target area in the first image data;

[0012] An exposure parameter adjustment module is used to adjust the exposure parameter of the image sensor based on the first image data and the light meter weight value.

[0013] In a third aspect, an embodiment of the present application provides a computer storage medium, wherein the computer storage medium stores a plurality of instructions, wherein the instructions are suitable for being loaded by a processor and executing the above-mentioned method steps.

[0014] In a fourth aspect, an embodiment of the present application provides an electronic device, which may include: a processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the above-mentioned method steps.

[0015] In one or more embodiments of the present application, when shooting an image, the first image data collected by the image sensor is obtained, and the target area is extracted from the first image data based on the set area set, and the light meter weight value corresponding to the target area is obtained based on the position information of the target area in the first image data, and the exposure parameters of the image sensor are adjusted based on the first image data and the light meter weight value. With the present application, the light meter weight value and the exposure parameters of the image sensor are dynamically adjusted according to the target area in the captured image during the image shooting process, so as to achieve normal exposure of the captured image based on the adjusted exposure parameters and improve the imaging quality of the captured image. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art 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 drawings can be obtained based on these drawings without paying creative work.

[0017] Figure 1 A schematic diagram of a flow chart of an exposure parameter adjustment method provided in an embodiment of the present application;

[0018] Figure 2 A schematic diagram of a flow chart of an exposure parameter adjustment method provided in an embodiment of the present application;

[0019] Figure 3 An example schematic diagram of extracting a target area provided in an embodiment of the present application;

[0020] Figure 4 An example schematic diagram of an image area division and a light meter provided in an embodiment of the present application;

[0021] Figure 5 A schematic diagram of a flow chart of an exposure parameter adjustment method provided in an embodiment of the present application;

[0022] Figure 6 A schematic diagram of the structure of an exposure parameter adjustment device provided in an embodiment of the present application;

[0023] Figure 7 A schematic diagram of the structure of an exposure parameter adjustment module provided in an embodiment of the present application;

[0024] Figure 8 A schematic diagram of the structure of an exposure parameter adjustment device provided in an embodiment of the present application;

[0025] Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

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

[0027] In the description of the present application, it should be understood that the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In the description of the present application, it should be noted that, unless otherwise clearly specified and limited, "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood in specific circumstances. In addition, in the description of the present application, unless otherwise specified, "multiple" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B, which can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are an "or" relationship.

[0028] Automatic exposure is the default setting of many digital cameras. In this exposure mode, the camera will automatically control the shooting exposure. The user does not need to do anything at all. The camera can automatically set the exposure parameters according to the intensity of the light reflected back from the scene. The exposure parameters are mainly used to adjust the overall brightness of the subject. If the subject is too dim, the exposure parameters can be adjusted to increase the brightness.

[0029] Light metering is an important step in measuring appropriate exposure parameters. Only by obtaining the correct exposure parameters through light metering can you take satisfactory pictures.

[0030] In the mainstream automatic exposure control schemes in the prior art, most of them measure the light of the captured image based on a light meter with a fixed weight value, without considering the changes in the picture content. Normal exposure is easy to achieve in the metering area with a higher weight value, while underexposure or overexposure is easy to be achieved in the metering area with a too low weight value.

[0031] Based on this, the present application proposes an exposure parameter adjustment method. When shooting an image, firstly, the first image data collected by the image sensor is obtained, and the target area is extracted from the first image data based on the set area set, and the light meter weight value corresponding to the target area is obtained based on the position information of the target area in the first image data, and the exposure parameters of the image sensor are adjusted based on the first image data and the light meter weight value. With the present application, the light meter weight value and the exposure parameters of the image sensor are dynamically adjusted according to the target area in the captured image during the image shooting process, so as to achieve normal exposure of the captured image based on the adjusted exposure parameters and improve the imaging quality of the captured image.

[0032] The following is a detailed description in conjunction with specific embodiments. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims. The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily follow the steps shown. For example, some steps are parallel and do not have a strict logical order, so the actual execution order is variable.

[0033] See also Figure 1 , is a flow chart of an exposure parameter adjustment method provided in an embodiment of the present application. In a specific embodiment, the exposure parameter adjustment method can be applied to an exposure parameter adjustment device or an electronic device equipped with an exposure parameter adjustment device. The specific process of this embodiment will be described below by taking the execution subject as an electronic device as an example. Figure 2 The process shown is described in detail, and the exposure parameter adjustment method may specifically include the following steps:

[0034] S102, acquiring first image data collected by an image sensor, and extracting a target area from the first image data based on a set area set, where the set area set is a set of sample areas preset in different shooting scenes;

[0035] Specifically, when shooting an image, the image sensor collects first image data within the viewing range, and detects whether the first image data contains a preset target area in the set area set. If so, the corresponding target area in the first image data is extracted.

[0036] The first image data is preview image data collected by the image sensor within the viewing range of the camera.

[0037] In one or more embodiments of the present application, the set area set is a set of sample areas pre-set in different shooting scenes, and is used for adaptively adjusting the weight value in the light meter used when shooting the image based on the sample area in the image when the user shoots an image if the image contains the sample area preset in the set area set, so as to improve the imaging quality of the final captured image. For example, the set area set may include sample areas such as the sky area, grass area, lake area, and sunset area.

[0038] In one or more embodiments of the present application, an image sensor collects first image data within the camera's field of view, and then performs format conversion processing on the first image data to obtain second image data in the first image format, and then detects a target area set in a set of set areas in the second image data based on a deep learning regional segmentation model, and when the target area is detected, the target area is segmented and extracted from the second image data. For example, if the second image data contains a sky area and a non-sky area, and the sky area belongs to the target area in the set of set areas, the sky area in the second image data is segmented and extracted based on the regional segmentation model.

[0039] S104, acquiring a light meter weight value corresponding to the target area based on the position information of the target area in the first image data;

[0040] Specifically, after the target area is extracted from the first image data, the weight value of each area in the light meter is adjusted according to the position information of the target area in the first image data.

[0041] It should be noted that the light meter includes multiple identical rectangular areas, each of which has a corresponding weight value, and rectangular areas with different weight values ​​have different light metering results. In one or more embodiments of the present application, different light meter adjustment strategies are pre-set for different target areas, and the weight values ​​of each rectangular area in the light meter can be adjusted according to the light meter adjustment strategy corresponding to the target area and the position information to improve the accuracy of light metering.

[0042] For example, the target area is the sky area, and the light meter adjustment strategy corresponding to the sky area is that the closer to the center of the sky area, the larger the weight value. Then, based on the position information of the sky area in the first image, the weight value of the corresponding rectangular area in the light meter can be adjusted to that the closer to the center of the sky area, the larger the weight value.

[0043] S106: Adjust the exposure parameter of the image sensor based on the first image data and the light meter weight value.

[0044] Specifically, after adjusting the light meter weight value of the light meter, the first image data is metered using the adjusted light meter weight value to obtain the average brightness of the first image data, and the preset target brightness of the first image data is obtained, and the exposure parameters corresponding to the image sensor are adjusted based on the average brightness and the target brightness.

[0045] In one or more embodiments of the present application, after adjusting the exposure parameters corresponding to the image sensor, the method further includes: using the adjusted exposure parameters to control the image sensor to collect third image data. The third image data is image data collected by the image sensor within the framing range of the camera.

[0046] In an embodiment of the present application, firstly, the first image data collected by the image sensor is obtained, and the target area is extracted from the first image data based on the set area set, and the light meter weight value corresponding to the target area is obtained based on the position information of the target area in the first image data, and the exposure parameters of the image sensor are adjusted based on the first image data and the light meter weight value. With the present application, the light meter weight value and the exposure parameters of the image sensor are dynamically adjusted according to the target area in the captured image during the image capture process, so as to achieve normal exposure of the captured image based on the adjusted exposure parameters and improve the imaging quality of the captured image.

[0047] See also Figure 2 , is a flow chart of an exposure parameter adjustment method provided in an embodiment of the present application. Figure 2 As shown, the exposure parameter adjustment method may include the following steps:

[0048] S202, acquiring first image data collected by an image sensor;

[0049] Specifically, the first image data is preview image data collected by the image sensor within the viewing range of the camera.

[0050] S204, performing format conversion processing on the first image data using the first image format to obtain second image data;

[0051] S206, using the set region set and extracting the target region from the second image data based on the region segmentation model;

[0052] It should be noted that the first image data captured by the image sensor is the original data converted from the light source signal into a digital signal, which is not convenient for the region segmentation model to detect the target area. Therefore, after the image sensor captures the first image data, the first image data is format converted to obtain the second image data in the first image format, and then the region segmentation model is used to detect whether the second image data contains the target area belonging to the set area set, and the detected target area is segmented and extracted from the second image data.

[0053] In one or more embodiments of the present application, the first image data collected by the image sensor may be in a Raw format, and the second image data may be in a Yuv format.

[0054] In one or more embodiments of the present application, the first image format of the second image data may also be other feasible image formats, such as RGB format, jpg format, etc. This is not specifically limited in the embodiments of the present application.

[0055] In one or more embodiments of the present application, the target area may be a sky area, the second image data includes a sky area and a non-sky area, and the sky area in the second image data is segmented and extracted based on a regional segmentation model.

[0056] See also Figure 3 , is an example schematic diagram of extracting a target area provided in an embodiment of the present application. Figure 3 As shown, the second image data shown contains a sky area and a non-sky area after detection, wherein the area above the dotted line is the detected sky area, and the area below the dotted line is the detected non-sky area. The sky area belongs to the target area in the set area set, and therefore the sky area is extracted from the second image data to obtain the target area shown.

[0057] In one or more embodiments of the present application, the region segmentation model may be a neural network model based on deep learning, which may detect a target region belonging to a set region set in the second image data, and segment and extract the target region in the second image data.

[0058] It should be noted that any neural network model mentioned in one or more embodiments of the present application can be trained on the basic model using sample data before executing this solution. Among them, the basic model has the same input, output and internal logic design as the neural network model, but the convolution kernel parameters of the basic model are preset. Through the training of sample data, the convolution kernel parameters of the basic model are continuously adjusted and trained, so that the prediction results output by the basic model tend to the real results. When the difference between the two is less than the preset threshold, the basic model trained at this time is used as the neural network model to complete the model training process.

[0059] It should be noted that the aforementioned model training process can be completed in advance. When the present solution is specifically implemented, there is no need to repeat the model training process, so as to save processing steps and time and improve processing efficiency. Of course, the aforementioned model training process can be repeated before executing step S206, and the embodiment of the present invention has no special limitation on this.

[0060] The region segmentation model involved in the embodiments of the present application may include but is not limited to: a convolutional neural network model (Convolutional Neural Networks, CNN).

[0061] S208, obtaining a light meter adjustment strategy corresponding to the target area;

[0062] Specifically, a corresponding light meter adjustment strategy is preset for each area in the set area set, and after the target area is extracted from the second image data, the light meter adjustment strategy corresponding to the target area is searched and obtained.

[0063] For example, the target area is a sky area, and the light meter adjustment strategy corresponding to the sky area may be that the closer to the center of the sky area, the greater the weight value.

[0064] S210, adjusting the initial light meter weight value based on the light meter adjustment strategy and the position information of the target area to obtain a light meter weight value corresponding to the target area;

[0065] Specifically, the weight values ​​corresponding to each rectangular area in the light meter are adjusted according to the light meter adjustment strategy and position information corresponding to the target area to obtain the adjusted light meter weight values.

[0066] It can be understood that the light meter weight value obtained by adjusting the target area can improve the light metering accuracy of the first image data.

[0067] S212, calculating an average brightness corresponding to the first image data based on the first image data and a light meter weight value;

[0068] Specifically, the first image data is divided into regions based on an image signal processor to obtain at least two regions, and the regional brightness of each region is calculated, and the average brightness corresponding to the first image data is calculated based on the brightness of each region and a light meter weight value.

[0069] It is worth noting that the number of regions divided by the first image data corresponds one-to-one to the number of rectangular regions in the light meter and is the same, that is, each region divided by the first image data has a corresponding weight value in the light meter.

[0070] See also Figure 4 , is an example schematic diagram of an image area division and a light meter provided in an embodiment of the present application. Figure 4 As shown, the image area division schematic diagram divides the first image data into multiple small rectangular areas, and the light meter in the light metering diagram also includes multiple rectangular areas, and each rectangular area has its corresponding weight value, and each rectangular area in the light meter corresponds one to one to each rectangular area obtained by dividing the first image data.

[0071] In one or more embodiments of the present application, after performing region division processing on the first image data based on an image signal processor to obtain at least two regions, the regional brightness of each region can be calculated as follows: the brightness value of each pixel point in each region is obtained respectively, and the average value of the brightness value of each pixel point in a single region is used as the regional brightness of the region.

[0072] In one or more embodiments of the present application, the average brightness corresponding to the first image data is calculated based on the brightness of each area and the light meter weight value. The average brightness can be obtained by summing the product of the brightness of each area and the weight value of the corresponding area, and then dividing the sum by the number of areas.

[0073] S214, obtaining a target brightness corresponding to the first image data;

[0074] In one or more embodiments of the present application, the target brightness corresponding to the first image data may be a brightness value preset according to user preference. After the average brightness corresponding to the first image data is obtained according to the adjusted light meter weight value, the target brightness corresponding to the first image data is obtained.

[0075] Optionally, the target brightness corresponding to the first image data can also be based on the scene recognition model to identify the scene category of the first image data, and then the scene recognition model gives the corresponding target brightness according to the scene category of the first image data. The scene recognition model can be a neural network model based on deep learning.

[0076] S216: Adjust the exposure parameters of the image sensor based on the average brightness and the target brightness.

[0077] Specifically, if the average brightness of the first image data is less than the target brightness, the exposure parameters of the image sensor are adjusted to increase the exposure; if the average brightness of the first image data is greater than the target brightness, the exposure parameters of the image sensor are adjusted to reduce the exposure; if the average brightness of the first image data is equal to the target brightness, there is no need to adjust the exposure parameters of the image sensor.

[0078] It should be noted that if the average brightness of the first image data is lower than the target brightness, it indicates that after adjusting the light meter weight value according to the target area, the first image data collected by the image sensor is underexposed, resulting in insufficient brightness value. In this case, the exposure parameters of the image sensor are adjusted in the direction of increasing the exposure to ensure that the image sensor can be normally exposed when collecting the next frame of image data using the adjusted exposure parameters.

[0079] If the average brightness of the first image data is greater than the target brightness, it indicates that after adjusting the light meter weight value according to the target area, the first image data collected by the image sensor is overexposed, resulting in a brightness value of the first image data that is too high. In this case, the exposure parameters of the image sensor are adjusted in the direction of reducing the exposure to ensure that normal exposure is achieved when the adjusted exposure parameters are used to control the image sensor to collect the next frame of image data.

[0080] If the average brightness of the first image data is equal to the target brightness, it indicates that after adjusting the light meter weight value according to the target area, the first image data collected by the image sensor is normally exposed. There is no need to adjust the exposure parameters of the image sensor, and continue to use the original exposure parameters to control the image sensor to collect the next frame of image data.

[0081] In an embodiment of the present application, a target area belonging to a set area set is extracted from the first image data collected by the image sensor, and a light meter weight value is adjusted according to a light meter adjustment strategy corresponding to the target area. The first image data is then metered using the adjusted light meter weight value to obtain an average brightness of the first image data. Finally, the exposure parameters of the image sensor are adjusted according to the average brightness and the target brightness corresponding to the first image data, so that the next frame of image data can be normally exposed and the imaging quality of the captured image is improved.

[0082] See also Figure 5 , is a flow chart of an exposure parameter adjustment method provided in an embodiment of the present application. Figure 5 As shown, the exposure parameter adjustment method may include the following steps:

[0083] S302, acquiring first image data collected by an image sensor;

[0084] Specifically, for step S302, please refer to the description of step S202 in another embodiment, which will not be repeated here.

[0085] S304, performing format conversion processing on the first image data using the first image format to obtain second image data;

[0086] Specifically, for step S304, please refer to the description of step S204 in another embodiment, which will not be repeated here.

[0087] S306, using the set region set and extracting the target region from the second image data based on the region segmentation model;

[0088] Specifically, for step S306, please refer to the description of step S206 in another embodiment, which will not be repeated here.

[0089] S308, obtaining a light meter adjustment strategy corresponding to the target area;

[0090] Specifically, for step S308, please refer to the description of step S208 in another embodiment, which will not be repeated here.

[0091] S310, adjusting the initial light meter weight value based on the light meter adjustment strategy and the position information of the target area to obtain the light meter weight value corresponding to the target area;

[0092] Specifically, for step S310, please refer to the description of step S210 in another embodiment, which will not be repeated here.

[0093] S312, calculating an average brightness corresponding to the first image data based on the first image data and a light meter weight value;

[0094] Specifically, for step S312, please refer to the description of step S212 in another embodiment, which will not be repeated here.

[0095] S314, obtaining a target brightness corresponding to the first image data;

[0096] Specifically, for step S314, please refer to the description of step S214 in another embodiment, which will not be repeated here.

[0097] S316, adjusting exposure parameters of the image sensor based on the average brightness and the target brightness;

[0098] Specifically, for step S316, please refer to the description of step S216 in another embodiment, which will not be repeated here.

[0099] S318, in response to the shooting instruction, controlling the image sensor to collect third image data based on the adjusted exposure parameter;

[0100] S320: Perform format conversion processing on the third image data using the second image format to obtain fourth image data.

[0101] It can be understood that steps S302 to S316 are a process that is cyclically executed before the user issues a shooting instruction, that is, the exposure parameter controls the image sensor to collect the first image data, and then adjusts the light meter weight value based on the target area in the first image data, calculates the average brightness of the first image data based on the adjusted light meter weight value, adjusts the exposure parameters based on the average brightness of the first image data and the preset target brightness of the first image data, and then uses the adjusted exposure parameters to control the image sensor to collect the next frame of image data, and so on and so forth, dynamically adjusting the light meter weight value and exposure parameters according to the changes of each frame of image data collected by the image sensor, so as to always ensure that the image data collected by the image sensor based on the adjusted exposure parameters can be normally exposed.

[0102] Specifically, in step S318 to step S320, in response to a shooting instruction issued by the user, the image sensor is controlled based on the adjusted exposure parameters to collect third image data within the camera's field of view at the current moment, and then the third image data is format converted to obtain fourth image data in the second image format.

[0103] In one or more embodiments of the present application, the user issues a shooting command by clicking a shooting button, and in response to the shooting command, the image sensor is controlled based on the adjusted exposure parameters to collect third image data within the camera's framing range at the current moment, and the third image data is image data in Raw format, and finally the third image data in Raw format is converted into fourth image data in jpg format. The fourth image data is the captured image obtained by shooting.

[0104] In an embodiment of the present application, a target area belonging to a set area set is extracted from the first image data captured by the image sensor, and a light meter weight value is adjusted according to a light meter adjustment strategy corresponding to the target area. Then, the first image data is metered using the adjusted light meter weight value, and the average brightness of the first image data is calculated. Finally, the exposure parameters of the image sensor are adjusted according to the average brightness and the target brightness corresponding to the first image data to ensure that the next frame of image data can be normally exposed. When a shooting instruction is received, the image sensor is controlled to capture the third image data based on the adjusted exposure parameters. Finally, the third image data is format-converted to obtain fourth image data of the second image format, thereby improving the imaging quality of the captured image.

[0105] The following will be combined with the attached Figure 6 , the exposure parameter adjustment device provided in the embodiment of the present application is introduced in detail. It should be noted that the attached Figure 6 An exposure parameter adjustment device for executing the present application Figure 1 , Figure 2 and Figure 5For the convenience of explanation, only the part related to the embodiment of the present application is shown. For the specific technical details not disclosed, please refer to the present application. Figure 1 , Figure 2 and Figure 5 The embodiment shown.

[0106] See also Figure 6 , is a schematic diagram of the structure of an exposure parameter adjustment device provided in an embodiment of the present application. Figure 6 As shown, the exposure parameter adjustment device 1 can be implemented as all or part of the terminal device through software, hardware or a combination of both. According to some embodiments, the exposure parameter adjustment device 1 includes a target area acquisition module 11, a light meter calculation module 12, and an exposure parameter adjustment module 13, specifically including:

[0107] A target region acquisition module 11 is used to acquire first image data collected by an image sensor, and extract a target region from the first image data based on a set region set, where the set region set is a set of sample regions pre-set in different shooting scenes;

[0108] A light meter calculation module 12, configured to obtain a light meter weight value corresponding to the target area based on the position information of the target area in the first image data;

[0109] The exposure parameter adjustment module 13 is used to adjust the exposure parameter of the image sensor based on the first image data and the light meter weight value.

[0110] Optionally, the target area acquisition module 11 is specifically used to:

[0111] Performing format conversion processing on the first image data using the first image format to obtain second image data;

[0112] A set region set is adopted, and a target region is extracted from the second image data based on a region segmentation model.

[0113] Optionally, the light meter calculation module 12 is specifically used for:

[0114] Acquire a light meter adjustment strategy corresponding to the target area;

[0115] An initial light meter weight value is adjusted based on the light meter adjustment strategy and the position information of the target area to obtain a light meter weight value corresponding to the target area.

[0116] Optional, see Figure 7 , is a schematic diagram of the structure of an exposure parameter adjustment module provided in an embodiment of the present application. Figure 7 As shown, the exposure parameter adjustment module 13 includes:

[0117] An average brightness calculation unit 131, configured to calculate an average brightness corresponding to the first image data based on the first image data and the light meter weight value;

[0118] A target brightness acquisition unit 132, configured to acquire a target brightness corresponding to the first image data;

[0119] The exposure parameter adjustment unit 133 is configured to adjust the exposure parameter of the image sensor based on the average brightness and the target brightness.

[0120] Optionally, the average brightness calculation unit 131 is specifically used to:

[0121] Performing region division processing on the first image data based on an image signal processor to obtain at least two regions, and calculating the regional brightness of each region;

[0122] The average brightness corresponding to the first image data is calculated based on the brightness of each area and the light meter weight value.

[0123] Optionally, the target brightness acquisition unit 132 is specifically configured to:

[0124] identifying a scene category of the first image data based on a scene recognition model;

[0125] Obtain a target brightness corresponding to the scene category.

[0126] Optional, see Figure 8 , is a schematic diagram of the structure of an exposure parameter adjustment device provided in an embodiment of the present application. Figure 8 As shown, the exposure parameter adjustment device further includes:

[0127] An image capturing module 14, configured to control the image sensor to capture third image data based on the adjusted exposure parameters in response to a capturing instruction;

[0128] The format conversion module 15 is used to perform format conversion processing on the third image data by adopting the second image format to obtain fourth image data.

[0129] In an embodiment of the present application, a target area belonging to a set area set is extracted from the first image data captured by the image sensor, and a light meter weight value is adjusted according to a light meter adjustment strategy corresponding to the target area. Then, the first image data is metered using the adjusted light meter weight value, and the average brightness of the first image data is calculated. Finally, the exposure parameters of the image sensor are adjusted according to the average brightness and the target brightness corresponding to the first image data to ensure that the next frame of image data can be normally exposed. When a shooting instruction is received, the image sensor is controlled to capture the third image data based on the adjusted exposure parameters. Finally, the third image data is format-converted to obtain fourth image data of the second image format, thereby improving the imaging quality of the captured image.

[0130] It should be noted that, when the exposure parameter adjustment device provided in the above embodiment executes the exposure parameter adjustment method, only the division of the above functional modules is used as an example for illustration. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the exposure parameter adjustment device provided in the above embodiment and the exposure parameter adjustment method embodiment belong to the same concept, and the embodiment and implementation process thereof are detailed in the method embodiment, which will not be repeated here.

[0131] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0132] The present application also provides a computer storage medium, which can store multiple instructions, and the instructions are suitable for being loaded and executed by a processor as described above. Figure 1-Figure 5 The exposure parameter adjustment method of the embodiment shown in the figure can be specifically implemented by referring to Figure 1-Figure 5 The specific description of the illustrated embodiment will not be repeated here.

[0133] The present application also provides a computer program product, which stores at least one instruction, and the at least one instruction is loaded and executed by the processor as described above. Figure 1-Figure 7 The exposure parameter adjustment method of the embodiment shown in the figure can be specifically implemented by referring to Figure 1-Figure 7 The specific description of the illustrated embodiment will not be repeated here.

[0134] Please refer to Fig. 9 , which shows a block diagram of the structure of an electronic device provided by an exemplary embodiment of the present application. The electronic device in the present application may include one or more of the following components: a processor 110, a memory 120, an input device 130, an output device 140, and a bus 150. The processor 110, the memory 120, the input device 130, and the output device 140 may be connected via the bus 150.

[0135] The processor 110 may include one or more processing cores. The processor 110 uses various interfaces and lines to connect various parts of the entire electronic device, and executes various functions and processes data of the terminal 100 by running or executing instructions, programs, code sets or instruction sets stored in the memory 120, and calling data stored in the memory 120. Optionally, the processor 110 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 110 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user pages, and applications; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 110, but may be implemented separately through a communication chip.

[0136] The memory 120 may include a random access memory (RAM) or a read-only memory (ROM). Optionally, the memory 120 includes a non-transitory computer-readable medium (Non-Transitory Computer-Readable Storage Medium). The memory 120 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc. The operating system may be an Android system, including a system deeply developed based on the Android system, an IOS system developed by Apple, including a system deeply developed based on the IOS system or other systems.

[0137] The memory 120 can be divided into an operating system space and a user space. The operating system runs in the operating system space, and native and third-party applications run in the user space. In order to ensure that different third-party applications can achieve good operating results, the operating system allocates corresponding system resources to different third-party applications. However, the requirements for system resources in different application scenarios in the same third-party application are also different. For example, in the local resource loading scenario, the third-party application has higher requirements for disk reading speed; in the animation rendering scenario, the third-party application has higher requirements for GPU performance. The operating system and third-party applications are independent of each other, and the operating system often cannot perceive the current application scenario of the third-party application in a timely manner, resulting in the operating system being unable to perform targeted system resource adaptation according to the specific application scenario of the third-party application.

[0138] In order for the operating system to distinguish the specific application scenarios of third-party applications, it is necessary to open up data communication between third-party applications and the operating system so that the operating system can obtain the current scenario information of third-party applications at any time, and then perform targeted system resource adaptation based on the current scenario.

[0139] The input device 130 is used to receive input commands or data, and includes but is not limited to a keyboard, a mouse, a camera, a microphone, or a touch device. The output device 140 is used to output commands or data, and includes but is not limited to a display device and a speaker. In one example, the input device 130 and the output device 140 can be combined, and the input device 130 and the output device 140 are touch screen displays.

[0140] The touch display screen can be designed as a full screen, a curved screen or a special-shaped screen. The touch display screen can also be designed as a combination of a full screen and a curved screen, or a combination of a special-shaped screen and a curved screen, which is not limited in the embodiments of the present application.

[0141] In addition, those skilled in the art will appreciate that the structure of the electronic device shown in the above drawings does not constitute a limitation on the electronic device, and the electronic device may include more or fewer components than shown, or combine certain components, or arrange the components differently. For example, the electronic device also includes a radio frequency circuit, an input unit, a sensor, an audio circuit, a wireless fidelity (WiFi) module, a power supply, a Bluetooth module and other components, which will not be described in detail here.

[0142] exist Fig. 9 In the electronic device shown, the processor 110 can be used to call the exposure parameter adjustment program stored in the memory 120, and specifically perform the following operations:

[0143] Acquire first image data collected by an image sensor, and extract a target area from the first image data based on a set area set, where the set area set is a set of sample areas pre-set in different shooting scenes;

[0144] Based on the position information of the target area in the first image data, obtaining a light meter weight value corresponding to the target area;

[0145] An exposure parameter of the image sensor is adjusted based on the first image data and the light meter weight value.

[0146] In one embodiment, when the processor 110 extracts the target area from the first image data based on the set area set, the processor 110 specifically performs the following operations:

[0147] Performing format conversion processing on the first image data using the first image format to obtain second image data;

[0148] A set region set is adopted, and a target region is extracted from the second image data based on a region segmentation model.

[0149] In one embodiment, when the processor 110 executes the step of acquiring the light meter weight value corresponding to the target area based on the position information of the target area in the first image data, the processor 110 specifically performs the following operations:

[0150] Acquire a light meter adjustment strategy corresponding to the target area;

[0151] An initial light meter weight value is adjusted based on the light meter adjustment strategy and the position information of the target area to obtain a light meter weight value corresponding to the target area.

[0152] In one embodiment, when the processor 110 performs the step of adjusting the exposure parameter of the image sensor based on the first image data and the light meter weight value, the processor 110 specifically performs the following operations:

[0153] Calculate the average brightness corresponding to the first image data based on the first image data and the light meter weight value;

[0154] Acquire a target brightness corresponding to the first image data;

[0155] The exposure parameter of the image sensor is adjusted based on the average brightness and the target brightness.

[0156] In one embodiment, when the processor 110 calculates the average brightness corresponding to the first image data based on the first image data and the light meter weight value, the processor 110 specifically performs the following operations:

[0157] Performing region division processing on the first image data based on an image signal processor to obtain at least two regions, and calculating the regional brightness of each region;

[0158] The average brightness corresponding to the first image data is calculated based on the brightness of each area and the light meter weight value.

[0159] In one embodiment, when the processor 110 executes the step of acquiring the target brightness corresponding to the first image data, the processor 110 specifically performs the following operations:

[0160] identifying a scene category of the first image data based on a scene recognition model;

[0161] Obtain a target brightness corresponding to the scene category.

[0162] In one embodiment, the processor 110 further performs the following operations:

[0163] In response to the shooting instruction, controlling the image sensor to collect third image data based on the adjusted exposure parameter;

[0164] The third image data is format converted using the second image format to obtain fourth image data.

[0165] In an embodiment of the present application, a target area belonging to a set area set is extracted from the first image data captured by the image sensor, and a light meter weight value is adjusted according to a light meter adjustment strategy corresponding to the target area. Then, the first image data is metered using the adjusted light meter weight value, and the average brightness of the first image data is calculated. Finally, the exposure parameters of the image sensor are adjusted according to the average brightness and the target brightness corresponding to the first image data to ensure that the next frame of image data can be normally exposed. When a shooting instruction is received, the image sensor is controlled to capture the third image data based on the adjusted exposure parameters. Finally, the third image data is format-converted to obtain fourth image data of the second image format, thereby improving the imaging quality of the captured image.

[0166] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only storage memory, or a random access memory, etc.

[0167] The above disclosure is only the preferred embodiment of the present application, which certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.

Claims

1. A method for adjusting exposure parameters, characterized in that: The method comprises: Acquire first image data collected by an image sensor, and extract a target area from the first image data based on a set area set, wherein the set area set is a set of sample areas pre-set in different shooting scenes, and a corresponding light meter adjustment strategy is pre-set for each area in the set area set; Acquire a light meter adjustment strategy corresponding to the target area; Adjusting an initial light meter weight value of the light meter based on the light meter adjustment strategy and the position information of the target area to obtain a light meter weight value, wherein the light meter includes a plurality of identical rectangular areas, and each rectangular area corresponds to a weight value; An exposure parameter of the image sensor is adjusted based on the first image data and the light meter weight value.

2. The method according to claim 1, characterized in that The extracting the target area from the first image data based on the set area set includes: Performing format conversion processing on the first image data using the first image format to obtain second image data; Based on the set region set, a target region is extracted from the second image data using a region segmentation model.

3. The method according to claim 1, characterized in that The adjusting the exposure parameter of the image sensor based on the first image data and the light meter weight value includes: Calculate the average brightness corresponding to the first image data based on the first image data and the light meter weight value; Acquire a target brightness corresponding to the first image data; The exposure parameter of the image sensor is adjusted based on the average brightness and the target brightness.

4. The method according to claim 3, characterized in that The calculating the average brightness corresponding to the first image data based on the first image data and the light meter weight value includes: Performing region division processing on the first image data based on an image signal processor to obtain at least two regions, and calculating the regional brightness of each region; The average brightness corresponding to the first image data is calculated based on the brightness of each area and the light meter weight value.

5. The method according to claim 3, characterized in that: The acquiring the target brightness corresponding to the first image data comprises: identifying a scene category of the first image data based on a scene recognition model; Obtain a target brightness corresponding to the scene category.

6. The method according to claim 1, characterized in that The method further comprises: In response to the shooting instruction, controlling the image sensor to collect third image data based on the adjusted exposure parameter; The third image data is format converted using the second image format to obtain fourth image data.

7. An exposure parameter adjustment device, characterized in that: The device comprises: a target area acquisition module, used to acquire first image data collected by an image sensor, and extract a target area from the first image data based on a set area set, wherein the set area set is a set of sample areas pre-set in different shooting scenes, and a corresponding light meter adjustment strategy is pre-set for each area in the set area set; A light meter calculation module, used for obtaining a light meter adjustment strategy corresponding to the target area; Adjusting an initial light meter weight value of the light meter based on the light meter adjustment strategy and the position information of the target area to obtain a light meter weight value, wherein the light meter includes a plurality of identical rectangular areas, and each rectangular area corresponds to a weight value; An exposure parameter adjustment module is used to adjust the exposure parameter of the image sensor based on the first image data and the light meter weight value.

8. A 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 6 are implemented.

9. An electronic device, characterized in that: include: A processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the steps of the method as claimed in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Automatic face exposure method and device, shooting equipment and storage medium

    CN110691199A

  • Image exposure control method and system, readable storage medium and camera equipment

    CN111225162A

  • Exposure control method, device and movable platform

    CN111742545A

  • Exposure control method and device, terminal equipment and storage medium

    CN112073645A

  • Automatic exposure method, device, equipment and storage medium

    CN114257738A