Exposure adjustment method and device, equipment and storage medium
By acquiring and using the target weight set for metering, dynamically adjusting the exposure amount of the image, solving the problem of poor exposure processing in the prior art, and achieving a more accurate and reasonable exposure effect.
Patent Information
- Application Number
- CN202510186147.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-19
- Publication Date
- 2025-05-27
AI Technical Summary
In the prior art, in the exposure processing of images or videos, the metering method with a fixed weight ratio is usually adopted, which leads to the exposed pictures being overexposed or underexposed, resulting in poor exposure effects.
By obtaining the target weight set of the current frame image, metering is performed based on the target weight set, the target brightness is obtained, and the exposure amount of the next frame image is determined based on the target brightness, the reference brightness and the current exposure amount of the current frame image.
By dynamically adjusting the exposure amount, the image is avoided by overexposed or underexposed, and the accuracy and rationality of the exposure effect are improved.
Smart Images

Figure CN120050534A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present application relate to image processing technology, including but not limited to an exposure adjustment method, device, equipment, and storage medium. Background Art
[0002] During the process of performing exposure processing on images, videos, etc., it is usually necessary to first perform photometry and determine the exposure amount used during exposure based on the photometry result, so as to achieve exposure.
[0003] In the related art, during the process of performing photometry, the commonly adopted solution is to perform exposure processing on an image or video by setting a fixed weight ratio, which may result in overexposure or underexposure of the obtained exposed picture, that is, the exposure effect is poor. Summary of the Invention
[0004] In view of this, the exposure adjustment method, device, equipment, and storage medium provided by the embodiments of the present application can avoid overexposure or underexposure of the exposed image. The exposure adjustment method, device, equipment, and storage medium provided by the embodiments of the present application are implemented as follows:
[0005] On the one hand, an embodiment of the present application provides an exposure adjustment method, including:
[0006] Obtain a target weight set of the current frame image, where the target weight set includes photometry weights corresponding to multiple different regions of the current frame image. Among them, the multiple different regions include a target photometry region and other regions, and the photometry weight corresponding to the target photometry region is greater than the photometry weight of other regions. The target photometry region is determined according to the focus distance of the current frame image;
[0007] Based on the target weight set, perform photometry processing on the current frame image to obtain the target brightness of the current frame image;
[0008] Determine the exposure amount of the next frame image according to the target brightness, reference brightness, and current exposure amount of the current frame image.
[0009] On the other hand, an embodiment of the present application further provides an exposure adjustment device, including: a weight determination module, a photometry module, and an exposure module;
[0010] The weight determination module is configured to obtain a target weight set of the current frame image, where the target weight set includes photometry weights corresponding to multiple different regions of the current frame image. Among them, the multiple different regions include a target photometry region and other regions, and the photometry weight corresponding to the target photometry region is greater than the photometry weight of other regions. The target photometry region is determined according to the focus distance of the current frame image;
[0011] A photometric module, configured to perform photometric processing on a current frame image based on a set of target weights to obtain the target brightness of the current frame image;
[0012] An exposure module, configured to determine the exposure amount of a next frame image according to the target brightness, the reference brightness, and the current exposure amount of the current frame image.
[0013] The computer device provided by an embodiment of the present application includes a memory and a processor. The memory stores a computer program that can run on the processor, and when the processor executes the program, the method of the embodiment of the present application is implemented.
[0014] The computer-readable storage medium provided by an embodiment of the present application stores a computer program thereon, and when the computer program is executed by a processor, the method provided by the embodiment of the present application is implemented.
[0015] In the exposure adjustment method, device, equipment, and storage medium provided by an embodiment of the present application, a set of target weights of a current frame image can be obtained, and photometric processing can be performed on the current frame image based on the set of target weights to obtain the target brightness of the current frame image; furthermore, the exposure amount of a next frame image can be determined according to the target brightness, the reference brightness, and the current exposure amount of the current frame image. Among them, the set of target weights includes photometric weights corresponding to multiple different regions of the current frame image. The multiple different regions include a target photometric region and other regions. The photometric weight corresponding to the target photometric region is greater than that of other regions, and the target photometric region is determined according to the focusing distance of the current frame image. The target photometric region can be more accurately determined through the focusing distance, and then photometric processing can be performed according to the photometric weight of the higher target photometric region, and a more appropriate and accurate target brightness can be obtained. Thus, the exposure amount of the next frame image can be more accurately and reasonably determined, avoiding overexposure or underexposure problems of the next frame image. Description of the Drawings
[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0017] Figure 1 It is a schematic diagram of an application scenario provided in an embodiment of the present application;
[0018] Figure 2 It is a schematic flowchart of the exposure adjustment method provided in an embodiment of the present application;
[0019] Figure 3 It is a schematic diagram of the result of the region division of the current frame image provided in an embodiment of the present application;
[0020] Figure 4 Another schematic flowchart of the exposure adjustment method provided in the embodiments of the present application;
[0021] Figure 5 Another schematic flowchart of the exposure adjustment method provided in the embodiments of the present application;
[0022] Figure 6 Schematic diagram of the determination result of the target photometric region provided in the embodiments of the present application;
[0023] Figure 7 Another schematic diagram of the determination result of the target photometric region provided in the embodiments of the present application;
[0024] Figure 8 Another schematic flowchart of the exposure adjustment method provided in the embodiments of the present application;
[0025] Figure 9 Another schematic flowchart of the exposure adjustment method provided in the embodiments of the present application;
[0026] Figure 10 Overall flowchart of the exposure adjustment method provided in the embodiments of the present application;
[0027] Figure 11 Schematic diagram of the structure of the exposure adjustment device provided in the embodiments of the present application;
[0028] Figure 12 Schematic diagram of the structure of the computer device provided in the embodiments of the present application. Detailed implementation manners
[0029] To make the objectives, technical solutions, and advantages of the embodiments of the present application clearer, the following will further describe the specific technical solutions of the present application in detail with reference to the accompanying drawings in the embodiments of the present application. The following embodiments are used to illustrate the present application, but are not intended to limit the scope of the present application.
[0030] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those of ordinary skill in the technical field to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0031] In the following descriptions, reference is made to "some embodiments" which describe a subset of all possible embodiments. However, it can be understood that "some embodiments" can be the same subset or different subsets of all possible embodiments and can be combined with each other without conflict.
[0032] It should be noted that the terms "first", "second", and "third" involved in the embodiments of the present application are used to distinguish similar or different objects, and do not represent a specific order for the objects. Understandably, "first", "second", and "third" can be interchanged in a specific order or sequence when allowed, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.
[0033] In the process of performing exposure processing on an image or a video frame in a video, it is usually necessary to first perform photometry, and then determine the exposure amount used during exposure based on the photometry result. Then, during the shooting of the next image or the next video frame, exposure can be achieved based on this exposure amount, thereby completing the shooting.
[0034] In the related art, in the process of performing photometry, the commonly adopted solution is to set a fixed weight ratio to perform exposure processing on different regions of an image or a video. For example, the weight of the central position is set high, and the weight of the surrounding regions is set low, etc.
[0035] However, in the actual application process, for scenarios where the key area is not in the center of the picture or the key area is smaller than the photometry range, such as when shooting small plants and animals, when the plants and animals are outside the photometry range, the weights of the plants and animals in the photometry are insufficient, resulting in inaccurate photometry for shooting these plants and animals. This will lead to overexposure or underexposure in the obtained exposed pictures, resulting in poor exposure effects for these images or videos.
[0036] To solve the above problems existing in the related art, an exposure adjustment method is provided in the embodiments of the present application. The actual application scenario of this exposure adjustment method will be explained below.
[0037] Figure 1 For the schematic diagram of the application scenario provided in the embodiments of the present application, please refer to Figure 1 , this scenario may include: a shooting device 110, a target object 120.
[0038] Among them, the shooting device 110 can be a device used for taking pictures or videos, and may include but are not limited to a mobile phone with a shooting function, a wearable device with a shooting function (such as a smart watch, a smart bracelet, smart glasses, etc.), a tablet computer with a shooting function, a notebook computer with a shooting function, a vehicle-mounted terminal with a shooting function, a PC (Personal Computer, personal computer) with a shooting function, a camera, etc. The functions implemented by this method can be realized by a processor in this device calling program code. Of course, the program code can be stored in a computer storage medium. It can be seen that this device includes at least a processor and a storage medium.
[0039] It should be noted that the target object 120 can be an object to be photographed in this scene. For example, it can be a person, a plant, an animal, or other objects, etc. There is no specific limitation here, and corresponding settings can be made according to actual photographing requirements.
[0040] In one embodiment, the shooting lens of the shooting device 110 can be directed towards the target object 120, so as to achieve the shooting of the target object 120.
[0041] It should be noted that in actual applications, the target object 120 in this scene can be one or more. In addition to the target object 120 in this scene, there can also be other non-target objects, and there is no specific limitation here.
[0042] Next, the implementation process of the exposure adjustment method provided in the embodiments of the present application will be explained based on this application scenario.
[0043] Figure 2 For the flow schematic diagram of the exposure adjustment method provided in the embodiments of the present application, please refer to Figure 2 , the method includes:
[0044] S210: Obtain the target weight set of the current frame image.
[0045] It should be noted that the execution subject of this method can be Figure 1 the shooting device shown in, or it can also be other electronic devices communicatively connected to the shooting device. For example, the shooting device can obtain the image, and other electronic devices can implement the execution of this method. There is no specific limitation here.
[0046] Optionally, the current frame image can refer to an image that has been exposed. For example, during the process of taking a photo or recording a video by the shooting device, the image displayed on the shooting interface can be the current frame image, and the exposure amount of the next frame image that has not been displayed can be determined based on the currently displayed current frame image.
[0047] Among them, the target weight set includes the photometric weights corresponding to multiple different regions of the current frame image. The multiple different regions include the target photometric region and other regions, and the photometric weight corresponding to the target photometric region is greater than the photometric weights of other regions.
[0048] In one embodiment, the target weight set may include multiple photometric weights. For example, if it includes one target photometric region and one other region, it may include two photometric weights, representing the photometric weights of the target photometric region and the other region respectively; if it includes one target photometric region and multiple other regions, it may include multiple photometric weights, representing the photometric weights of the target photometric region and each other region respectively; if it includes multiple target photometric regions and one other region, it may include multiple photometric weights, representing the photometric weights of each target photometric region and the other region respectively; if it includes multiple target photometric regions and multiple other regions, it may include multiple photometric weights, representing the photometric weights of each target photometric region and each other region respectively.
[0049] It should be noted that in multiple different regions, each region can be a target photometric region or another region, which is not specifically limited here and can be identified according to the actual shooting situation.
[0050] In one embodiment, the target photometric region can be determined according to the focusing distance of the current frame image.
[0051] Among them, the focusing distance of the current frame image refers to the calibrated distance obtained after converting the physical distance from the lens of the shooting device to the target object, and this focusing distance can be obtained by the shooting device during the shooting process.
[0052] It should be noted that after determining the focusing distance of the current frame image, it is possible to determine whether each region is a target photometric region based on the relationship between each region and the focusing distance. If so, this region can be set as the target photometric region; if not, this region can be set as another region.
[0053] After determining each region, the photometric weight of each region can be calculated respectively. This photometric weight can be determined based on the type of the region or based on the relationship between this region and the focusing distance, which is not specifically limited here.
[0054] After obtaining the photometric weights of each region, the set of these photometric weights can be used as the target weight set of the current frame image.
[0055] S220: Based on the target weight set, perform photometric processing on the current frame image to obtain the target brightness of the current frame image.
[0056] Optionally, after determining the target weight set, it is possible to perform photometric processing on the current frame image based on the photometric weight of each region, so as to calculate the target brightness of the current frame image.
[0057] It should be noted that the metering weights of each region can be used to identify the importance of the influence when metering in that region. The greater the metering weight of each metering region, the greater the influence of that region during metering.
[0058] In one embodiment, the weighted brightness of each region can be determined based on the metering weight of each region and the brightness of each region. Further, the weighted brightness of each region can be averaged to obtain the target brightness of the overall current frame image.
[0059] S230: Determine the exposure amount of the next frame image based on the target brightness, the reference brightness, and the current exposure amount of the current frame image.
[0060] It should be noted that the target brightness can be calculated in the aforementioned step S220. The reference brightness can be a preset brightness value in the shooting device, or a variable brightness value adjusted according to factors such as the environment, without specific limitation here. The current exposure amount of the current frame image can be the parameter of the exposure amount used when exposing the current frame, and the exposure amount of the next frame image can be determined by adjusting based on the current exposure amount.
[0061] It should be noted that during the process of shooting the next frame image, exposure can be performed according to the exposure amount of the next frame image to obtain the corresponding image.
[0062] In the exposure adjustment method provided by the embodiments of the present application, a target weight set of the current frame image can be obtained, and based on the target weight set, metering processing is performed on the current frame image to obtain the target brightness of the current frame image; furthermore, the exposure amount of the next frame image can be determined according to the target brightness, the reference brightness, and the current exposure amount of the current frame image. Among them, the target weight set includes the metering weights corresponding to multiple different regions of the current frame image. The multiple different regions include the target metering region and other regions. The metering weight of the target metering region is greater than that of other regions. The target metering region is determined according to the focusing distance of the current frame image. The target metering region can be determined more accurately through the focusing distance. Furthermore, metering processing can be performed according to the metering weight of the target metering region with a higher weight, and a more appropriate and accurate target brightness can be obtained, so that the exposure amount of the next frame image can be determined more accurately and reasonably, avoiding overexposure or underexposure problems in the next frame image.
[0063] In one embodiment, obtaining the target weight set of the current frame image includes: setting the metering weights of the target metering region and other regions according to the difference between the depths of multiple different regions and the focusing distance to obtain the target weight set.
[0064] It should be noted that in the process of obtaining the target weight set of the current frame image, for the photometric weight of each region, it can be determined according to the difference between the depth of the region and the focusing distance.
[0065] After obtaining the current frame image, a depth image corresponding to the current frame image can be obtained. The depth image can represent the depth of each position in the image, that is, the calibrated distance obtained after the physical distance from the position to the location of the shooting device is converted.
[0066] In one embodiment, the greater the difference between the depth of each region and the focusing distance, the smaller the weight of the region; the smaller the difference between the depth of each region and the focusing distance, the greater the weight of the region.
[0067] In another embodiment, the weight of the region where the difference between the depth of the region and the focusing distance is greater than or equal to the preset difference threshold can be set as the first photometric weight, and the weight of the region where the difference between the depth of the region and the focusing distance is less than the preset difference threshold can be set as the second photometric weight, where the second photometric weight can be greater than the first photometric weight.
[0068] The depth of the region can be the average value of the depths of all pixel points in the region.
[0069] For each region, the weight of the region can be set according to the difference between the depth of the region and the focusing distance.
[0070] In the exposure adjustment method provided by the embodiments of the present application, the photometric weights of the target photometric region and other regions can be set according to the differences between the depths and the focusing distances of multiple different regions, and a target weight set is obtained. Among them, by determining the difference between the depth and the focusing distance of each region, the photometric weights of each region can be determined more accurately and reasonably, so that the photometric weight of each region corresponds to the depth of the region, and a target weight set associated with the region depth is obtained.
[0071] Next, one feasible implementation manner for dividing the current frame image provided in the embodiments of the present application will be explained.
[0072] Figure 3 For the schematic diagram of the result of the region division of the current frame image provided in the embodiments of the present application, please refer to Figure 3 , the current frame image can be divided into multiple preset division regions, and each preset division region can be a target photometric region or other regions.
[0073] Among them, the multiple different regions include multiple preset division regions obtained by dividing the current frame image according to a preset division method.
[0074] In one embodiment, a corresponding preset partitioning method can be selected according to the length and width of the current frame image, so as to achieve the regional partitioning of the current frame image. For example, the current frame image can be partitioned in a horizontal partitioning manner and a vertical partitioning manner.
[0075] For example, please refer to Figure 3 , the current frame image can be partitioned into M×N blocks, where there can be M tiles in each horizontal row and N tiles in each vertical column. Each tile can represent a preset partitioning region. For example: M = 64, N = 48.
[0076] In one embodiment, the target metering region is a target partitioning region among multiple preset partitioning regions where the difference between the depth and the focusing distance is less than or equal to a threshold, and the other regions are the remaining partitioning regions among the multiple preset partitioning regions except the target partitioning region.
[0077] It should be noted that the target metering region is determined from multiple preset partitioning regions. Among them, the target metering region can be a preset partitioning region where the difference between the depth and the focusing distance is less than or equal to the threshold; the other regions can be preset partitioning regions where the difference between the depth and the focusing distance is greater than the threshold.
[0078] In the exposure adjustment method provided by the embodiments of the present application, the multiple different regions include multiple preset partitioning regions obtained by partitioning the current frame image according to a preset partitioning method. The target metering region is a target partitioning region among the multiple preset partitioning regions where the difference between the depth and the focusing distance is less than or equal to the threshold, and the other regions are the remaining partitioning regions among the multiple preset partitioning regions except the target partitioning region. By setting the preset partitioning regions, the weight of each preset partitioning region in the current frame image can be determined, so that the target metering region and the other regions can be determined more accurately, and the metering weights of each region can be calculated more comprehensively and accurately.
[0079] Next, one feasible implementation process of the exposure adjustment method provided in the embodiments of the present application will be explained.
[0080] Figure 4 For another schematic flowchart of the exposure adjustment method provided in the embodiments of the present application, please refer to Figure 4 , according to the differences between the depths and the focusing distances of the multiple different regions, set the metering weights of the target metering region and the other regions, including:
[0081] S410: Set the metering weight of each preset partitioning region according to the magnitude relationship of the difference between the depth and the focusing distance of each preset partitioning region.
[0082] Among them, the smaller the difference between the depth of the preset partitioning region and the focusing distance, the greater the metering weight of the preset partitioning region.
[0083] It should be noted that after obtaining the above-mentioned multiple preset divided regions, the depth of each preset divided region can be determined, and the metering weight can be set according to the difference between the depth of each preset divided region and the focusing distance.
[0084] Optionally, one of the calculation methods for setting the metering weight of the preset divided region is as follows:
[0085] In one embodiment, according to the magnitude relationship of the difference between the depth of each preset divided region and the focusing distance, the metering weight of each preset divided region is set, including: obtaining the ratio of the difference corresponding to each preset divided region to the reference difference, where the reference difference is the difference between the maximum depth and the minimum depth among the multiple preset divided regions; setting the metering weight of each preset divided region according to the difference between the weight sum value and the ratio.
[0086] The above process can be expressed by the following formula:
[0087]
[0088] Among them, i refers to the i-th region among them, refers to the metering weight of the i-th region, and the coefficient 1 is the weight sum value, is the depth of the i-th region, D AF is the focusing distance, D block_MAX is the maximum depth among the multiple preset divided regions, D block_MIN the minimum depth among the multiple preset divided regions.
[0089] Among them, each region can refer to the preset divided region.
[0090] Based on the above formula, the metering weight of each preset divided region can be calculated.
[0091] It should be noted that since the difference between the depth of the target metering region and the focusing distance is small, the metering weight corresponding to the target metering region is large; correspondingly, since the difference between the depth of other regions and the focusing distance is large, the metering weight corresponding to other regions is small.
[0092] In the exposure adjustment method provided by the embodiments of the present application, the metering weight of each preset divided region can be set according to the magnitude relationship of the difference between the depth of each preset divided region and the focusing distance. Specifically, the ratio of the difference corresponding to each preset divided region to the reference difference can be obtained, where the reference difference is the difference between the maximum depth and the minimum depth among the multiple preset divided regions; the metering weight of each preset divided region is set according to the difference between the weight sum value and the ratio. Among them, the metering weight of each preset divided region can be accurately determined by the ratio of the difference corresponding to each preset divided region to the reference difference.
[0093] It should be noted that, in the above process of calculating the photometric weight, the depth of each preset divided area is used. Now, the implementation process of determining the depth of each preset divided area provided in the embodiments of the present application will be explained.
[0094] Figure 5 Another schematic flowchart of the exposure adjustment method provided in the embodiments of the present application is shown in Figure 5 , before setting the photometric weight of each preset divided area according to the magnitude relationship between the depth of each preset divided area and the focusing distance, the method further includes:
[0095] S510: Determine the depth of each pixel point in each preset divided area.
[0096] It should be noted that the depth of each pixel point in the image can be obtained through the depth image corresponding to the current frame image. Based on the division rule of the preset divided area, the pixel points belonging to each preset divided area can be determined, and then the depth of these pixel points can be obtained.
[0097] S520: Use the average value of the depths of all pixel points in the same preset divided area as the depth of the corresponding preset divided area.
[0098] It should be noted that after obtaining the depth of each pixel point in the preset divided area, the average value of the depths of these pixel points can be calculated to obtain the depth of the preset divided area. The specific calculation formula is as follows:
[0099]
[0100] where A is the total number of pixel points in each preset divided area, j is the jth pixel point among them, is the depth of the jth pixel point, is the depth of the preset divided area.
[0101] The depth of the preset divided area can be calculated through the above formula.
[0102] In the exposure adjustment method provided in the embodiments of the present application, the depth of each pixel point in each preset divided area can be determined; the average value of the depths of all pixel points in the same preset divided area is used as the depth of the corresponding preset divided area. Among them, by determining the average value of the depths of all pixel points in each preset divided area, the depth of each preset divided area can be accurately determined, and then the weight calculation can be more accurate.
[0103] It should be noted that determining the target metering area and other areas from the preset divided area according to the difference between the depth and the focusing distance is only one feasible implementation method. In the actual implementation process, the target metering area or other areas can also be determined according to other methods.
[0104] In one embodiment, the target metering area is an area including the focusing position of the current frame image, and the other area is the remaining area of the current frame image except the focusing position.
[0105] It should be noted that the focusing position is determined according to the focusing distance. For example: according to the depth image, the area composed of the set of pixel points with pixel depth equal to the focusing distance can be used as the focusing area, and the central position of this focusing area can be the focusing position.
[0106] Exemplarily, the above-mentioned focusing area can be used as the target metering area, and the remaining area outside the focusing area can be used as the above-mentioned other area.
[0107] It should be noted that there are multiple ways to determine the target metering area according to the focusing position. The above taking the focusing area as an example is only one of the examples, and specifically, multiple ways can be adopted to implement it.
[0108] In one embodiment, the target metering area is composed of the area where the target object is located, and the area where the target object is located is obtained after image recognition of the current frame image, and the focusing position is in the area where the target object is located.
[0109] Optionally, by performing image recognition on the current frame image, multiple objects in the current frame image can be determined, such as: people, animals, plants, etc. Then, according to the positions or proportions of these objects in the current frame image, the target object can be determined, where the focusing position can be in the area where the target object is located, and the area where the target object is located can be used as the target metering area.
[0110] Figure 6 For the schematic diagram of the determination result of the target metering area provided in the embodiments of the present application, please refer to Figure 6 , Figure 6 The target metering area shown in is composed of multiple pixel blocks.
[0111] Among them, the target metering area is composed of the target pixel block corresponding to the focusing position and the set of multiple associated pixel blocks.
[0112] The target pixel block can be a pixel block corresponding to the focusing position, and the depth of each pixel in this pixel block is equal to the focusing distance.
[0113] Each associated pixel block is adjacent to the target pixel block or other associated pixel blocks among multiple associated pixel blocks, and the pixel difference between the associated pixel block and the target pixel block or other associated pixel blocks among multiple associated pixel blocks is less than a preset threshold value.
[0114] Figure 6 As shown in Figure 6 , the target photometric region is composed of a set consisting of the target pixel block and multiple associated pixel blocks. A photometric weight can be set for the target photometric region, and a photometric weight can be set for other regions. Among them, the photometric weight of the target photometric region is greater than the photometric weight of other regions.
[0115] Figure 7 For another schematic diagram of the determination result of the target photometric region provided in the embodiment of the present application, please refer to Figure 7 , Figure 7 As shown in Figure 7 , the target photometric region is composed of multiple preset divided regions.
[0116] Among them, the target photometric region is composed of a set of multiple preset divided regions corresponding to the focus position.
[0117] It has been previously explained that the focus position is the central position of the focus region. The multiple preset divided regions corresponding to the focus position can be the preset divided regions that overlap with the focus region.
[0118] For example: If the focus region overlaps with five preset divided regions, these five preset divided regions can be used as the multiple preset divided regions corresponding to the focus position; or, according to the overlapping area of each preset divided region, the preset divided regions with an overlapping area greater than 50% can be used as the multiple preset divided regions corresponding to the focus position.
[0119] Figure 7 The method adopted in Figure 7 is to use the preset divided regions that overlap as the multiple preset divided regions corresponding to the focus position. In the actual implementation process, other methods can also be used to determine the multiple preset divided regions corresponding to the focus position.
[0120] It should be noted that in the actual implementation process, any one of the above multiple methods can be used to determine the target photometric region and other regions, and specific limitations are not made here.
[0121] In the exposure adjustment method provided by the embodiment of the present application, the target photometric region is the region including the focus position of the current frame image, and other regions are the remaining regions of the current frame image except the focus position. The range and weight of the target photometric region and other regions can be accurately and appropriately determined through the focus region where the focus position is located.
[0122] Next, a feasible implementation process for determining the target brightness of the current frame image provided in the embodiments of the present application will be explained.
[0123] In one embodiment, based on the target weight set, photometric processing is performed on the current frame image to obtain the target brightness of the current frame image, including: obtaining the regional brightness of each of multiple different regions; based on the target weight set, performing a weighted sum processing on the multiple regional brightnesses of the multiple different regions to determine the target brightness of the current frame image.
[0124] It should be noted that the regional brightness of each region can be obtained according to the brightness image corresponding to the current frame image, and the brightness value of each pixel point can be displayed in the brightness image.
[0125] In the process of performing a weighted sum according to the target weight set and the regional brightness of each region, it can be calculated according to the following formula:
[0126]
[0127] where Luma weight can be the above-mentioned target brightness, which is the photometric weight of the i-th region calculated above, refers to the regional brightness of the i-th region, and M*N is the total number of regions.
[0128] Based on the above formula, the target brightness of the current frame image can be obtained.
[0129] In the exposure adjustment method provided in the embodiments of the present application, the regional brightness of each of multiple different regions can be obtained; based on the target weight set, a weighted sum processing is performed on the multiple regional brightnesses of the multiple different regions to determine the target brightness of the current frame image. Among them, through the regional brightness of each region and the corresponding photometric weight, through the weighted sum processing, an accurate and reasonable target brightness of the current frame image can be obtained.
[0130] Next, a feasible implementation manner for determining the regional brightness of each region provided in the embodiments of the present application will be explained.
[0131] Figure 8 For another flow chart of the exposure adjustment method provided in the embodiments of the present application, please refer to Figure 8 , obtaining the regional brightness of each of multiple different regions, including:
[0132] S810: Determine the brightness of each pixel point in each different region.
[0133] It should be noted that the brightness of each pixel point in the image can be obtained from the luminance image corresponding to the current frame image, the pixel points belonging to each region can be determined, and then the brightness of these pixel points can be obtained.
[0134] In one embodiment, if the foregoing preset region division method is adopted for division, then based on the division rules of the preset divided regions, the pixel points belonging to each preset divided region can be determined, and then the brightness of these pixel points can be obtained.
[0135] S820: Use the average value of the brightness of all pixel points in the same region as the region brightness of the corresponding region.
[0136] It should be noted that after obtaining the brightness of each pixel point in the same region, the average brightness of these pixel points can be calculated, so as to obtain the region brightness of each region.
[0137] Taking the region division according to the preset divided regions as an example, in the process of calculating the brightness of each region, it can be calculated according to the following formula:
[0138]
[0139] Where A is the total number of pixel points in each preset divided region, j is the j-th pixel point among them, is the brightness of the j-th pixel point, is the region brightness of this preset divided region.
[0140] The region brightness of this preset divided region can be calculated through the above formula.
[0141] In the exposure adjustment method provided by the embodiments of the present application, the brightness of each pixel point in each different region can be determined; the average value of the brightness of all pixel points in the same region is used as the region brightness of the corresponding region. Among them, by determining the average value of the brightness of all pixel points in each preset divided region, the region brightness of each preset divided region can be accurately determined, and then the target brightness of the current frame image can be calculated more accurately.
[0142] Next, a feasible implementation process for determining the exposure amount of the next frame image after determining the target brightness of the current frame image will be explained.
[0143] In one embodiment, according to the target brightness, the reference brightness and the current exposure amount of the current frame image, determining the exposure amount of the next frame image includes: determining an adjustment coefficient according to the target brightness and the reference brightness; determining the exposure amount of the next frame image based on the adjustment coefficient and the current exposure amount.
[0144] Among them, the reference coefficient can be determined by the ratio of the target brightness and the reference brightness. The formula for determining the exposure amount of the next frame is as follows:
[0145]
[0146] Among them, E cur can be the current exposure amount of the current frame image, Luma weight can be the target brightness of the current frame image calculated as described above, Refer luma can be the reference brightness, E next can be the exposure amount of the next frame image, which is the above adjustment coefficient.
[0147] In the exposure adjustment method provided by the embodiments of the present application, the adjustment coefficient can be determined according to the target brightness and the reference brightness; based on the adjustment coefficient and the current exposure amount, the exposure amount of the next frame image is determined. Among them, by calculating the adjustment coefficient, the current exposure amount is adjusted, so as to determine a suitable exposure amount for the next frame image.
[0148] Next, one feasible implementation manner for determining the reference brightness provided in the embodiments of the present application will be explained.
[0149] Figure 9 For another flowchart of the exposure adjustment method provided in the embodiments of the present application, please refer to Figure 9 , before determining the exposure amount of the next frame image according to the target brightness, the reference brightness and the current exposure amount of the current frame image, the method further includes:
[0150] S910: Obtain the environmental information corresponding to the current frame image.
[0151] Optionally, the environmental information may refer to relevant information about the environment where the shooting device is located, such as: time information, geographical location information, light intensity information, etc. There is no specific limitation here, and one or more of the information can be selected as the above environmental information according to actual needs.
[0152] It should be noted that multiple different reference brightnesses can be preset, and each environmental information can correspond to a preset reference brightness.
[0153] That is to say, the mapping relationship between the reference brightness and the environmental information can be pre-stored, and the reference brightness corresponding to the environmental information can be determined after the environmental information is obtained.
[0154] S920: Determine the reference brightness of the current frame image according to the environmental information.
[0155] Optionally, the reference brightness of the current frame image corresponding to the environmental information can be determined according to the above mapping relationship.
[0156] It should be noted that the above-described method for determining the reference brightness is only one example. In the actual implementation process, the reference brightness can also be manually set actively, or the default reference brightness of the shooting device can be used, and no specific limitation is made here.
[0157] In the exposure adjustment method provided by the embodiments of the present application, the environmental information corresponding to the current frame image can be obtained; the reference brightness of the current frame image can be determined according to the environmental information. Among them, the reference brightness most matching the current environment can be determined through the environmental information, so that the exposure amount of the next frame image calculated based on the reference brightness can be more accurate.
[0158] Next, the overall implementation process of the exposure adjustment method provided in the embodiments of the present application will be explained by taking the method of setting M×N preset divided areas as an example.
[0159] Figure 10 For the overall flowchart of the exposure adjustment method provided in the embodiments of the present application, please refer to Figure 10 , first, the corresponding depth image and brightness image can be determined respectively according to the current frame image. The depth image and the brightness image can divide both images into M×N preset divided areas according to the same area division method.
[0160] The metering weight of each preset divided area in the depth image can be calculated according to the difference between the depth of each preset divided area in the depth image and the focusing distance. The area brightness of each preset divided area in the brightness image can be determined. The target brightness of the current frame image can be determined according to the metering weight and the area brightness of each preset divided area. Furthermore, the exposure amount of the next frame image can be calculated according to the target brightness, the reference brightness of the current frame image, and the current exposure amount of the current frame image.
[0161] The exposure adjustment method provided in the embodiments of the present application can confirm the key metering area through the focusing position (for example: the area near the focusing position, that is, the target metering area). Because the focusing area is the clearest and usually the focus area of the picture, a larger metering weight should be given. At the same time, the depth information of the image can be combined. The farther the area is from the focusing distance in depth, the more blurred the picture is, and the smaller the weight is given.
[0162] The target metering area can be determined through various methods such as target object recognition, preset divided areas, or pixel point set determination. The metering weight at the corresponding position is determined according to the depth information, so that the area that should obtain more visual focus has a greater weight in metering, thereby ensuring the exposure accuracy of the final key metering area and avoiding overexposure or underexposure.
[0163] It should be understood that although the steps in the above flowcharts are shown in sequence according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless specifically stated in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, at least a part of the steps in the above flowcharts may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed alternately or in turn with at least a part of other steps or sub-steps or stages of other steps.
[0164] Based on the foregoing embodiments, an exposure adjustment device is provided in an embodiment of the present application. The device includes each module included and each unit included in each module, and can be implemented by a processor; of course, it can also be implemented by specific logic circuits. During implementation, the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP), or a field programmable gate array (FPGA), etc.
[0165] Figure 11 For the structural schematic diagram of the exposure adjustment device provided in the embodiment of the present application, please refer to Figure 11 , the exposure adjustment device includes: a weight determination module 1110, a photometric measurement module 1120, and an exposure module 1130;
[0166] The weight determination module 1110 is configured to obtain a target weight set of the current frame image. The target weight set includes photometric weights corresponding to multiple different regions of the current frame image. Among them, the multiple different regions include a target photometric measurement region and other regions. The photometric weight corresponding to the target photometric measurement region is greater than the photometric weight of other regions. The target photometric measurement region is determined according to the focusing distance of the current frame image;
[0167] The photometric measurement module 1120 is configured to perform photometric measurement processing on the current frame image based on the target weight set to obtain the target brightness of the current frame image;
[0168] The exposure module 1130 is configured to determine the exposure amount of the next frame image according to the target brightness, the reference brightness, and the current exposure amount of the current frame image.
[0169] In one embodiment, the weight determination module 1110 is specifically configured to set the photometric weights of the target photometric measurement region and other regions according to the difference between the depths of multiple different regions and the focusing distance, so as to obtain the target weight set.
[0170] In one embodiment, in the device, the multiple different regions include multiple preset divided regions obtained by dividing the current frame image according to a preset division method. The target photometric region is a target divided region among the multiple preset divided regions where the difference between the depth and the focus distance is less than or equal to a threshold, and the other regions are the remaining divided regions among the multiple preset divided regions except the target divided region.
[0171] In one embodiment, the weight determination module 1110 is specifically configured to set the photometric weight of each preset divided region according to the magnitude relationship of the difference between the depth and the focus distance of each preset divided region, where the smaller the difference between the depth and the focus distance of the preset divided region, the larger the photometric weight of the preset divided region.
[0172] In one embodiment, the weight determination module 1110 is specifically configured to obtain the ratio of the difference corresponding to each preset divided region to the reference difference, where the reference difference is the difference between the maximum depth and the minimum depth among the multiple preset divided regions; and set the photometric weight of each preset divided region according to the difference between the weight sum value and the ratio.
[0173] In one embodiment, the weight determination module 1110 is further configured to determine the depth of each pixel point in each preset divided region; and take the average value of the depths of all pixel points in the same preset divided region as the depth of the corresponding preset divided region.
[0174] In one embodiment, in the device, the target photometric region is the region including the focus position of the current frame image, and the other regions are the remaining regions of the current frame image except the focus position, where the focus position is determined according to the focus distance.
[0175] In one embodiment, the photometric module 1120 is specifically configured to obtain the regional brightness of each region among the multiple different regions; and perform a weighted summation process on the multiple regional brightnesses of the multiple different regions based on the target weight set to determine the target brightness of the current frame image.
[0176] In one embodiment, the photometric module 1120 is specifically configured to determine the brightness of each pixel point in each different region; and take the average value of the brightnesses of all pixel points in the same region as the regional brightness of the corresponding region.
[0177] In one embodiment, the exposure module 1130 is specifically configured to determine an adjustment coefficient according to the target brightness and the reference brightness; and determine the exposure amount of the next frame image based on the adjustment coefficient and the current exposure amount.
[0178] In one embodiment, the exposure module 1130 is further configured to obtain the environmental information corresponding to the current frame image; and determine the reference brightness of the current frame image according to the environmental information.
[0179] In the exposure adjustment device provided by the embodiments of the present application, a target weight set of the current frame image can be obtained, and based on the target weight set, photometric processing is performed on the current frame image to obtain the target brightness of the current frame image; furthermore, the exposure amount of the next frame image can be determined according to the target brightness, the reference brightness, and the current exposure amount of the current frame image. Among them, the target weight set includes photometric weights corresponding to multiple different regions of the current frame image. The multiple different regions include a target photometric region and other regions. The photometric weight corresponding to the target photometric region is greater than the photometric weights of other regions. The target photometric region is determined according to the focusing distance of the current frame image. The target photometric region can be determined more accurately through the focusing distance. Furthermore, photometric processing can be performed according to the photometric weight of the higher target photometric region, and a more appropriate and accurate target brightness can be obtained. Thus, the exposure amount of the next frame image can be determined more accurately and reasonably, avoiding the problem of overexposure or underexposure of the next frame image.
[0180] The description of the above device embodiments is similar to the description of the above method embodiments and has similar beneficial effects to the method embodiments. For the technical details not disclosed in the device embodiments of the present application, please refer to the description of the method embodiments of the present application for understanding.
[0181] It should be noted that in the embodiments of the present application Figure 11 The division of modules in the exposure adjustment device shown is schematic, merely a logical function division. In actual implementation, there may be other division methods. In addition, each functional unit in the various embodiments of the present application can be integrated in one processing unit, can exist separately physically, or two or more units can be integrated in one unit. The above integrated unit can be implemented in the form of hardware, can also be implemented in the form of a software functional unit, or can be implemented in the form of a combination of software and hardware.
[0182] It should be noted that in the embodiments of the present application, if the above method is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiments of the present application, in essence, or the part that contributes to the related technology can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling an electronic device to execute all or part of the methods described in the various embodiments of the present application. The foregoing storage medium includes: various media such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disc that can store program codes. In this way, the embodiments of the present application are not limited to any specific combination of hardware and software.
[0183] Figure 12The following is a schematic structural diagram of the computer device provided in the embodiments of the present application. Please refer to Figure 12 , the embodiments of the present application provide a computer device, which may be the above-mentioned photographing device, or may also be other electronic devices communicatively connected to the photographing device, and no specific limitation is made here. Its internal structural diagram may be as Figure 12 shown. The computer device includes a processor 1220, a memory, and a network interface 1240 connected through a system bus 1210. Among them, the processor 1220 of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium 1231 and an internal memory 1232. The non-volatile storage medium 1231 stores an operating system, a computer program, and a database. The internal memory 1232 provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium 1231. The database of the computer device is used to store data. The network interface 1240 of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor 1220, the above method is implemented.
[0184] The embodiments of the present application provide a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps in the method provided in the above embodiments are implemented.
[0185] The embodiments of the present application provide a computer program product containing instructions. When it runs on a computer, it causes the computer to execute the steps in the method provided in the above method embodiments.
[0186] Those skilled in the art can understand that Figure 12 the structure shown in
[0187] is only a block diagram of some structures related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements. Figure 12 In one embodiment, the exposure adjustment device provided in the present application can be implemented in the form of a computer program, and the computer program can run on a computer device as
[0188] It should be noted here that the descriptions of the above storage medium and device embodiments are similar to those of the above method embodiments and have beneficial effects similar to those of the method embodiments. For the technical details not disclosed in the storage medium, storage medium and device embodiments of the present application, please refer to the descriptions of the method embodiments of the present application for understanding.
[0189] It should be understood that the "one embodiment" or "an embodiment" or "some embodiments" mentioned throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, the appearances of "in one embodiment" or "in an embodiment" or "in some embodiments" throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the sequence numbers of the above processes do not mean the order of execution is prior or subsequent, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application. The sequence numbers of the embodiments of the present application above are only for description and do not represent the advantages or disadvantages of the embodiments. The descriptions of the above embodiments tend to emphasize the differences between the embodiments, and their similarities or similarities can be referred to each other. For the sake of brevity, they will not be repeated herein.
[0190] The term "and / or" in this document is only a description of the association relationship of the associated objects, indicating that there can be three relationships, for example, object A and / or object B can represent: object A exists alone, object A and object B exist simultaneously, and object B exists alone.
[0191] It should be noted that in this document, the term "comprise", "include" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "comprising a..." does not exclude the existence of additional identical elements in the process, method, article or device including the element.
[0192] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The embodiments described above are merely illustrative. For example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation. For example, multiple modules or components can be combined, or integrated into another system, or some features can be ignored or not executed. In addition, the couplings, direct couplings, or communication connections between the components shown or discussed with each other can be through some interfaces, and the indirect couplings or communication connections of devices or modules can be electrical, mechanical, or other forms.
[0193] The modules described above as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules; they can be located in one place or distributed to multiple network units; some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0194] In addition, each functional module in the embodiments of the present application can be all integrated in a processing unit, or each module can be separately used as a unit, or two or more modules can be integrated in a unit; the above-mentioned integrated modules can be implemented in the form of hardware, or in the form of a combination of hardware and software functional units.
[0195] Those of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments can be completed by hardware related to program instructions. The foregoing program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps including the above method embodiments; and the foregoing storage medium includes: removable storage devices, read-only memory (ROM), magnetic disks, or optical disks and other various media that can store program codes.
[0196] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiments of the present application, in essence, or the part that contributes to the related technology can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions to enable an electronic device to execute all or part of the methods described in the various embodiments of the present application. And the foregoing storage medium includes: removable storage devices, ROM, magnetic disks, or optical disks and other various media that can store program codes.
[0197] The methods disclosed in several method embodiments provided in the present application can be arbitrarily combined without conflict to obtain new method embodiments.
[0198] The features disclosed in several product embodiments provided by this application can be arbitrarily combined without conflict to obtain new product embodiments.
[0199] The features disclosed in several method or device embodiments provided by this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.
[0200] As mentioned above, it is only the implementation manner of this application, but the protection scope of this application is not limited thereto. Any person skilled in the art within the technical scope disclosed by this application can easily think of changes or substitutions, which should all be covered within the protection scope of this application. Therefore, the protection scope of this application should be subject to the protection scope of the claims.
Claims
1. An exposure adjustment method, characterized in that: include: Acquire a target weight set of a current frame image, the target weight set including photometry weights corresponding to a plurality of different regions of the current frame image, wherein the plurality of different regions include a target photometry region and other regions, the photometry weight corresponding to the target photometry region is greater than the photometry weights of the other regions, and the target photometry region is determined according to a focus distance of the current frame image; Based on the target weight set, performing photometry processing on the current frame image to obtain the target brightness of the current frame image; The exposure amount of the next frame image is determined according to the target brightness, the reference brightness and the current exposure amount of the current frame image.
2. The method according to claim 1, characterized in that The step of obtaining a target weight set for the current frame image includes: According to the difference between the depths of the multiple different areas and the focusing distance, the photometry weight of the target photometry area and the photometry weights of the other areas are set to obtain the target weight set.
3. The method according to claim 2, characterized in that The multiple different areas include multiple preset divided areas that divide the current frame image according to a preset division method, the target metering area is a target divided area in which the difference between the depth and the focus distance in the multiple preset divided areas is less than or equal to a threshold, and the other areas are the remaining divided areas in the multiple preset divided areas except the target divided area.
4. The method according to claim 3, characterized in that: The step of setting the photometry weight of the target photometry area and the photometry weight of the other areas according to the difference between the depths of the multiple different areas and the focus distance includes: The metering weight of each preset divided area is set according to the size relationship between the depth of each preset divided area and the focusing distance, wherein the smaller the difference between the depth of the preset divided area and the focusing distance, the greater the metering weight of the preset divided area.
5. The method according to claim 4, characterized in that The step of setting the photometry weight of each of the preset divided areas according to the magnitude relationship between the depth of each of the preset divided areas and the difference between the focus distances comprises: Obtaining a ratio of the difference value corresponding to each of the preset divided areas to a reference difference value, where the reference difference value is a difference between a maximum depth and a minimum depth in the plurality of preset divided areas; The photometry weight of each of the preset divided areas is set according to the difference between the weight sum value and the ratio.
6. The method according to claim 4, characterized in that Before setting the photometry weight of each of the preset divided areas according to the magnitude relationship between the depth of each of the preset divided areas and the difference between the focus distance, the method further includes: Determine the depth of each pixel in each of the preset divided areas; The average value of the depths of all pixels in the same preset divided area is taken as the depth of the corresponding preset divided area.
7. The method according to claim 1, characterized in that The target photometry area is an area including the focus position of the current frame image, and the other areas are remaining areas of the current frame image except the focus position, and the focus position is determined according to the focus distance.
8. The method according to claim 1, characterized in that The step of performing light measurement processing on the current frame image based on the target weight set to obtain the target brightness of the current frame image includes: Obtaining the regional brightness of each of the multiple different regions; Based on the target weight set, a weighted summation process is performed on the multiple regional brightnesses of the multiple different regions to determine the target brightness of the current frame image.
9. The method according to claim 8, characterized in that The obtaining of the regional brightness of each of the multiple different regions includes: Determine the brightness of each pixel in each of the different areas; The average brightness of all pixels in the same area is taken as the area brightness of the corresponding area.
10. The method according to claim 1, characterized in that The step of determining the exposure of the next frame image according to the target brightness, the reference brightness and the current exposure of the current frame image comprises: Determining an adjustment coefficient according to the target brightness and the reference brightness; Based on the adjustment coefficient and the current exposure, the exposure of the next frame of image is determined.
11. The method according to claim 1 or 10, characterized in that: Before determining the exposure amount of the next frame image according to the target brightness, the reference brightness and the current exposure amount of the current frame image, the method further includes: Obtaining environmental information corresponding to the current frame image; A reference brightness of the current frame image is determined according to the environmental information.
12. An exposure adjustment device, characterized in that: include: A weight determination module, a light metering module, and an exposure module; The weight determination module is used to obtain a target weight set of the current frame image, wherein the target weight set includes photometric weights corresponding to a plurality of different regions of the current frame image, wherein the plurality of different regions include a target photometric region and other regions, the photometric weight corresponding to the target photometric region is greater than the photometric weights of the other regions, and the target photometric region is determined according to the focus distance of the current frame image; The photometry module is used to perform photometry processing on the current frame image based on the target weight set to obtain the target brightness of the current frame image; The exposure module is used to determine the exposure amount of the next frame image according to the target brightness, the reference brightness and the current exposure amount of the current frame image.
13. A computer device comprising a memory and a processor, wherein the memory stores a computer program executable on the processor, wherein: When the processor executes the program, the steps of the method according to any one of claims 1 to 11 are implemented.
14. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 11 is implemented.