Exposure control method, device, equipment, chip, processor and medium

By acquiring the brightness values ​​of image pixels, determining grayscale area adjustment information, and setting the exposure duration for different exposure parameters, the problem of inflexible exposure control in existing technologies is solved, thereby improving image exposure effects and stability.

CN119155557BActive Publication Date: 2025-11-28BEIJING X RING TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411296673.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-14
Publication Date
2025-11-28
Estimated Expiration
2044-09-14

AI Technical Summary

Technical Problem

In the existing technology, the exposure control method of electronic devices cannot flexibly adjust the exposure, which affects the image exposure effect.

Method used

By acquiring the pixel brightness values ​​in the image, the initial adjustment information for each grayscale region is determined, and based on this information, the first exposure parameter, the second exposure parameter, and the third exposure parameter with different exposure durations are determined. The image is then processed to obtain the target image.

Benefits of technology

It achieves flexible exposure control, improves image exposure, avoids completely black dark areas and overexposed highlights, and has good temporal stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119155557B_ABST
    Figure CN119155557B_ABST
Patent Text Reader

Abstract

The present disclosure provides an exposure control method, device, equipment, chip, processor and medium, wherein the exposure control method comprises: acquiring a first image, wherein the first image comprises a plurality of pixel points; determining initial adjustment information of each gray region based on the plurality of pixel points and the brightness value of each pixel point; determining first adjustment information, second adjustment information and third adjustment information based on a plurality of initial adjustment information; determining a first exposure parameter according to the first adjustment information, a second exposure parameter according to the second adjustment information, and a third exposure parameter according to the third adjustment information, wherein the exposure time of different exposure parameters is not the same; and processing the first image according to the first exposure parameter, the second exposure parameter and the third exposure parameter to obtain a target image. The technical problem that the exposure control cannot be flexibly performed in the prior art and affects the image exposure effect is solved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to the technical field of electronic devices, and in particular, to an exposure control method and device, an electronic device, a chip, a processor, and a medium. BACKGROUND

[0002] With the popularity of electronic devices such as smart phones, the functional requirements of users for electronic devices are increasingly diversified. For example, the camera function of an electronic device can bring great convenience to the production and life of a user. The quality of an image captured based on the camera function is determined by exposure control.

[0003] In the related art, an automatic exposure control algorithm can be used, and the exposure amount can be automatically adjusted according to the strength of light to prevent overexposure or underexposure.

[0004] In this way, exposure control cannot be flexibly performed, which affects the exposure effect of an image. SUMMARY

[0005] The present disclosure aims to at least partially solve one of the technical problems in the related art.

[0006] To this end, the present disclosure provides an exposure control method and device, an electronic device, a chip, a computer-readable storage medium, a computer program product, and a processor, which can flexibly perform exposure control and improve the exposure effect of an image.

[0007] To achieve the above object, a first aspect of the present disclosure provides an exposure control method, comprising: obtaining a first image, wherein the first image comprises a plurality of pixel points; determining initial adjustment information of each gray scale region based on the plurality of pixel points and the brightness value of each pixel point; determining first adjustment information, second adjustment information, and third adjustment information based on the plurality of initial adjustment information; determining a first exposure parameter according to the first adjustment information, a second exposure parameter according to the second adjustment information, and a third exposure parameter according to the third adjustment information, wherein the exposure time of different exposure parameters is different; and processing the first image according to the first exposure parameter, the second exposure parameter, and the third exposure parameter to obtain a target image.

[0008] In some embodiments of the present disclosure, the exposure time of the first exposure parameter, the exposure time of the second exposure parameter, and the exposure time of the third exposure parameter are sequentially increased.

[0009] In some embodiments of the present disclosure, the determination of the initial adjustment information of each gray scale region based on the plurality of pixel points and the brightness value of each pixel point comprises:

[0010] determining the gray scale region to which the pixel point belongs based on the brightness value of the pixel point and the boundary brightness value of the gray scale region;

[0011] According to the brightness value and the number of the pixels in each gray area, initial adjustment information of the gray area is determined.

[0012] In some embodiments of the present disclosure, the initial adjustment information of the gray area is determined according to the brightness value and the number of the pixels in each gray area, including:

[0013] The target brightness value calibrated in advance for the gray area is obtained;

[0014] According to the brightness value and the number of the pixels in each gray area, the average brightness value of the gray area is calculated;

[0015] The ratio between the target brightness value and the average brightness value is taken as the initial adjustment information.

[0016] In some embodiments of the present disclosure, the first adjustment information, the second adjustment information and the third adjustment information are determined based on the plurality of initial adjustment information, including:

[0017] The median adjustment information of the plurality of initial adjustment information is determined, and the median adjustment information is taken as the second adjustment information;

[0018] The first part of initial adjustment information smaller than the median adjustment information is determined from the plurality of initial adjustment information, and the first part of initial adjustment information is averaged to obtain the first adjustment information;

[0019] The second part of initial adjustment information greater than the median adjustment information is determined from the plurality of initial adjustment information, and the second part of initial adjustment information is averaged to obtain the third adjustment information.

[0020] In some embodiments of the present disclosure, the first image is processed according to the first exposure parameter, the second exposure parameter and the third exposure parameter to obtain the target image, including:

[0021] The first exposure parameter, the second exposure parameter and the third exposure parameter are provided to the image sensor, wherein the image sensor processes the first image based on the first exposure parameter, the second exposure parameter and the third exposure parameter respectively to obtain the corresponding second image, third image and fourth image;

[0022] The second image, the third image and the fourth image are synthesized and processed based on the image processor to obtain the target image.

[0023] In some embodiments of the present disclosure, the first image is processed according to the first exposure parameter, the second exposure parameter and the third exposure parameter to obtain the target image, including:

[0024] The exposure application type of the first image is determined;

[0025] The first image is processed according to the exposure application type, the first exposure parameter, the second exposure parameter and the third exposure parameter to obtain a target image.

[0026] In some embodiments of the present disclosure, processing the first image according to the exposure application type, the first exposure parameter, the second exposure parameter and the third exposure parameter to obtain a target image comprises:

[0027] In a case where the exposure application type is single exposure, the first exposure parameter is provided to the image sensor, and the image sensor processes the first image based on the first exposure parameter to obtain a second image;

[0028] The second exposure parameter and the third exposure parameter are provided to the image processor, so that the image processor processes the second image based on the second exposure parameter and the third exposure parameter to obtain the target image.

[0029] In some embodiments of the present disclosure, processing the first image according to the exposure application type, the first exposure parameter, the second exposure parameter and the third exposure parameter to obtain a target image comprises:

[0030] In a case where the exposure application type is multi-exposure, the first exposure parameter and the second exposure parameter are provided to the image sensor, and the image sensor processes the first image based on the first exposure parameter and the second exposure parameter to obtain a second image;

[0031] The third exposure parameter is provided to the image processor, so that the image processor processes the second image based on the third exposure parameter to obtain the target image.

[0032] To achieve the above object, a second aspect of the present disclosure provides an exposure control device, comprising: an acquisition module configured to acquire a first image, wherein the first image comprises a plurality of pixel points; a first determination module configured to determine initial adjustment information of each gray region based on the plurality of pixel points and a brightness value of each pixel point; a second determination module configured to determine first adjustment information, second adjustment information and third adjustment information based on a plurality of initial adjustment information; a third determination module configured to determine a first exposure parameter according to the first adjustment information, a second exposure parameter according to the second adjustment information, and a third exposure parameter according to the third adjustment information, wherein exposure durations of different exposure parameters are different; and a processing module configured to process the first image according to the first exposure parameter, the second exposure parameter and the third exposure parameter to obtain a target image.

[0033] In some embodiments of the present disclosure, the exposure duration of the first exposure parameter, the exposure duration of the second exposure parameter and the exposure duration of the third exposure parameter are sequentially increased.

[0034] In some embodiments of the present disclosure, the first determination module is specifically configured to:

[0035] determine the gray scale region to which the pixel point belongs based on the brightness value of the pixel point and the boundary brightness value of the gray scale region;

[0036] determine initial adjustment information of the gray scale region according to the brightness value and the number of pixel points contained in the gray scale region.

[0037] In some embodiments of the present disclosure, the first determining module is specifically configured to:

[0038] obtain a target brightness value calibrated in advance for the gray scale region;

[0039] calculate an average brightness value of the gray scale region according to the brightness value and the number of pixel points contained in the gray scale region.

[0040] take the ratio between the target brightness value and the average brightness value as the initial adjustment information.

[0041] In some embodiments of the present disclosure, the second determining module is specifically configured to:

[0042] determine a median adjustment information of the plurality of initial adjustment information, and take the median adjustment information as the second adjustment information;

[0043] determine a first part of initial adjustment information smaller than the median adjustment information from the plurality of initial adjustment information, and average the first part of initial adjustment information to obtain the first adjustment information;

[0044] determine a second part of initial adjustment information greater than the median adjustment information from the plurality of initial adjustment information, and average the second part of initial adjustment information to obtain the third adjustment information.

[0045] In some embodiments of the present disclosure, the processing module is specifically configured to:

[0046] provide the first exposure parameter, the second exposure parameter and the third exposure parameter to the image sensor, wherein the image sensor processes the first image based on the first exposure parameter, the second exposure parameter and the third exposure parameter respectively to obtain corresponding second image, third image and fourth image;

[0047] perform synthesis processing on the second image, the third image and the fourth image based on the image processor to obtain the target image.

[0048] In some embodiments of the present disclosure, the processing module is specifically configured to:

[0049] determine an exposure application type of the first image;

[0050] process the first image according to the exposure application type, the first exposure parameter, the second exposure parameter and the third exposure parameter to obtain the target image.

[0051] In some embodiments of the present disclosure, the processing module is further configured to:

[0052] In a case where the exposure application type is single exposure, the first exposure parameter is provided to the image sensor, and the image sensor processes the first image based on the first exposure parameter to obtain the second image;

[0053] The second exposure parameter and the third exposure parameter are provided to the image processor, so that the image processor processes the second image based on the second exposure parameter and the third exposure parameter to obtain the target image.

[0054] In some embodiments of the present disclosure, the processing module is further configured to:

[0055] In a case where the exposure application type is multi-exposure, the first exposure parameter and the second exposure parameter are provided to the image sensor, and the image sensor processes the first image based on the first exposure parameter and the second exposure parameter to obtain the second image;

[0056] The third exposure parameter is provided to the image processor, so that the image processor processes the second image based on the third exposure parameter to obtain the target image.

[0057] To achieve the above object, a third aspect of the present disclosure provides an electronic device, comprising a processor and a memory connected to the processor in communication; the memory stores computer execution instructions; and the processor executes the computer execution instructions stored in the memory to implement the exposure control method according to the first aspect of the present disclosure.

[0058] To achieve the above object, a fourth aspect of the present disclosure provides a chip, comprising a processing circuit, the processing circuit is configured to execute the exposure control method according to the first aspect of the present disclosure.

[0059] To achieve the above object, a fifth aspect of the present disclosure provides a computer readable storage medium, the computer readable storage medium stores computer execution instructions, and the computer execution instructions are executed by the processor to implement the exposure control method according to the first aspect of the present disclosure.

[0060] To achieve the above object, a sixth aspect of the present disclosure provides a computer program product, comprising a computer program, the computer program is executed by the processor to implement the exposure control method according to the first aspect of the present disclosure.

[0061] To achieve the above object, a seventh aspect of the present disclosure provides a processor, the processor is configured to invoke computer execution instructions to execute the exposure control method according to the first aspect of the present disclosure.

[0062] The exposure control method, device, electronic device, chip, computer readable storage medium, computer program product and processor provided by the present disclosure are provided. The first image is obtained, wherein the first image includes a plurality of pixel points. The initial adjustment information of each gray region is determined based on the plurality of pixel points and the brightness value of each pixel point. The first adjustment information, the second adjustment information and the third adjustment information are determined based on the plurality of initial adjustment information. The first exposure parameter is determined according to the first adjustment information, the second exposure parameter is determined according to the second adjustment information, and the third exposure parameter is determined according to the third adjustment information. The exposure time of different exposure parameters is not the same. The first image is processed according to the first exposure parameter, the second exposure parameter and the third exposure parameter to obtain a target image. The exposure control can be flexibly performed, and the image exposure effect is improved.

[0063] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF DRAWINGS

[0064] The above described and / or additional aspects and advantages of the present disclosure will become apparent and easy to understand from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0065] Figure 1 A flowchart of an exposure control method provided by an embodiment of the present disclosure is shown;

[0066] Figure 2 A statistical histogram of a first image in an embodiment of the present disclosure is shown;

[0067] Figure 3 A flowchart of another exposure control method provided by an embodiment of the present disclosure is shown;

[0068] Figure 4 A cumulative histogram of a first image in an embodiment of the present disclosure is shown;

[0069] Figure 5 A flowchart of another exposure control method provided by an embodiment of the present disclosure is shown;

[0070] Figure 6 A structural diagram of an exposure control device provided by an embodiment of the present disclosure is shown;

[0071] Figure 7 A block diagram of an exemplary electronic device suitable for implementing an embodiment of the present disclosure is shown;

[0072] Figure 8 A structural diagram of a chip provided by an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0073] Some embodiments of the present disclosure will be described in detail herein, with examples being shown in the drawings. The following description is made with reference to the accompanying drawings in which like reference numerals represent like elements or similar elements, unless otherwise indicated. Various changes, modifications, and equivalents of the methods, devices, and / or systems described herein will become apparent to those skilled in the art after a study of the following description. For instance, the order in which operations are described is merely an example and is not intended to be limiting, as any number of the described operations can be combined in any order and / or omitted, except those operations that must occur in a particular order. Also, for the sake of brevity and clarity, descriptions of features known to one of ordinary skill in the art can be omitted for briefness and conciseness.

[0074] The implementations described in some embodiments of the present disclosure are not meant to represent all implementations consistent with the present disclosure. Rather, they are examples of apparatuses and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0075] It should be noted that all the actions of acquiring signals, information or data in the present disclosure are carried out in compliance with the corresponding data protection regulations and policies of the country where the device is located, and with the authorization given by the corresponding device owner. Figure 1 A flowchart of an exposure control method provided by an embodiment of the present disclosure.

[0076] The exposure control method, device, electronic device, chip, computer readable storage medium, computer program product and processor of the embodiments of the present disclosure are described below with reference to the accompanying drawings.

[0077] Figure 1 A flowchart of an exposure control method provided by an embodiment of the present disclosure.

[0078] The present embodiment takes an exposure control method configured as an exposure control device as an example. The exposure control method in the present embodiment can be configured in an exposure control device. The exposure control device can be arranged in a server, or can also be arranged in an electronic device, and the present disclosure is not limited in this regard.

[0079] The present embodiment takes an exposure control method configured in an electronic device as an example. The electronic device can be a hardware device with various operating systems, such as a smart phone, a tablet computer, a personal digital assistant, an electronic book, etc.

[0080] It should be noted that the execution subject of the embodiments of the present disclosure can be, for example, an image sensor (sensor) and / or an image processing chip (Image Signal Processor, ISP) in a server or an electronic device on the hardware side, which can also be referred to as an image processor, and can be, for example, a related background service in a server or an electronic device on the software side, and the present disclosure is not limited in this regard.

[0081] As shown in the method for controlling exposure, the method comprises the following steps: Figure 1

[0082] In step S101, a first image is acquired, wherein the first image comprises a plurality of pixel points.

[0083] The first image may, for example, be an image waiting for exposure processing, and the first image may also be understood as an image captured by a picture area when a camera is aimed at a shooting scene. In some embodiments, the camera of an electronic device can be aimed at a shooting scene, and an image of the shooting scene captured by the camera can be acquired and used as the first image, or an image collected before exposure of the shooting scene can be used as the first image, and no limitation is imposed thereon.

[0084] After the first image is acquired, the brightness value of each pixel point contained in the first image can be determined, and the brightness value can be used to analyze a histogram of the first image. The histogram may, for example, be a brightness histogram, or a histogram of RGB sub-channels (i.e., RGB color channels), and no limitation is imposed thereon.

[0085] In step S102, initial adjustment information of each gray region is determined based on the plurality of pixel points and the brightness value of each pixel point.

[0086] The gray region may, for example, be determined in advance. For example, the number of gray regions can be set to N according to the need for control accuracy. For example, N can be 5, and no limitation is imposed thereon.

[0087] The initial adjustment information may, for example, be an initial adjustment ratio, and the initial adjustment information can be used to determine an exposure parameter, such as a gain gain and / or an exposure time time. Each gray region can correspond to an initial adjustment information, thereby achieving individualized adjustment of each gray region and supporting improved exposure control effect and flexibility.

[0088] In some embodiments, the gray region can comprise a dark_tone_low, a dark_tone_high, a base_tone, a bright_tone_low, and a bright_tone_high. The dark_tone_low and the dark_tone_high can be used to control a low-light region and can be used to prevent dark areas of an image from being too dark. The base_tone can be used to control a medium-light region and can be used to ensure the main brightness of an image. The bright_tone_low and the bright_tone_high can be used to control a high-light region and can be used to prevent bright areas of an image from being overexposed.

[0089] ​After the first image is acquired, the brightness values of each pixel point can be statistically analyzed to determine a statistical histogram of the first image, and each gray scale region can be roughly indicated in the statistical histogram, as shown in Figure 2 Figure 2 is a statistical histogram of the first image in the embodiment of the present disclosure. The abscissa represents luma (brightness unit), and the ordinate represents the count value (i.e., the number of pixel points of a certain brightness). The count value can be obtained by counting the brightness values of each pixel point in the first image.

[0090] In step S103, the first adjustment information, the second adjustment information, and the third adjustment information are determined based on the plurality of initial adjustment information.

[0091] After the initial adjustment information of each gray scale region is determined, the first adjustment information, the second adjustment information, and the third adjustment information can be determined with reference to the initial adjustment information.

[0092] The first adjustment information can be used to determine the first exposure parameter; the second adjustment information can be used to determine the second exposure parameter; and the third adjustment information can be used to determine the third exposure parameter, wherein the exposure time of different exposure parameters is different. The first exposure parameter may, for example, be a short exposure parameter, the second exposure parameter may, for example, be a medium exposure parameter, and the third exposure parameter may, for example, be a long exposure parameter. The exposure time of the short exposure parameter, the medium exposure parameter, and the long exposure parameter can be different. The first adjustment information can be index information used to index the short exposure parameter. The second adjustment information can be index information used to index the medium exposure parameter. The third adjustment information can be index information used to index the long exposure parameter. The first adjustment information can also be referred to as a short exposure adjustment coefficient, the second adjustment information can also be referred to as a medium exposure adjustment coefficient, and the third adjustment information can also be referred to as a long exposure adjustment coefficient, which is not limited.

[0093] In some embodiments, the plurality of initial adjustment information can be subjected to certain comparison and analysis processing to determine the first adjustment information, the second adjustment information, and the third adjustment information; or the plurality of initial adjustment information can be processed based on a large model to determine the first adjustment information, the second adjustment information, and the third adjustment information; or the plurality of initial adjustment information can be processed in combination with any other possible manner to determine the first adjustment information, the second adjustment information, and the third adjustment information, such as a labeling manner, a mapping manner, etc., which is not limited.

[0094] In step S104, the first exposure parameter is determined according to the first adjustment information, the second exposure parameter is determined according to the second adjustment information, and the third exposure parameter is determined according to the third adjustment information, wherein the exposure time of different exposure parameters is different.

[0095] ​After the first adjustment information, the second adjustment information and the third adjustment information are determined, the first exposure parameter can be obtained based on the first adjustment information index, the second exposure parameter can be obtained based on the second adjustment information index, and the third exposure parameter can be obtained based on the third adjustment information index.

[0096] In some embodiments, the first exposure parameter can be retrieved from an exposure table according to the first adjustment information, the second exposure parameter can be retrieved from the exposure table according to the second adjustment information, and the third exposure parameter can be retrieved from the exposure table according to the third adjustment information.

[0097] The exposure table can be pre-configured, and a plurality of possible candidate adjustment information and candidate exposure parameters corresponding to each candidate adjustment information can be pre-configured.

[0098] In some embodiments, when the first exposure parameter is retrieved according to the first adjustment information, candidate adjustment information matching the first adjustment information can be determined from the plurality of candidate adjustment information in the exposure table, and the candidate exposure parameter corresponding to the matching candidate adjustment information is taken as the first exposure parameter. When the second exposure parameter is retrieved according to the second adjustment information, candidate adjustment information matching the second adjustment information can be determined from the plurality of candidate adjustment information in the exposure table, and the candidate exposure parameter corresponding to the matching candidate adjustment information is taken as the second exposure parameter. When the third exposure parameter is retrieved according to the third adjustment information, candidate adjustment information matching the third adjustment information can be determined from the plurality of candidate adjustment information in the exposure table, and the candidate exposure parameter corresponding to the matching candidate adjustment information is taken as the third exposure parameter.

[0099] In step S105, the first image is processed according to the first exposure parameter, the second exposure parameter and the third exposure parameter to obtain the target image.

[0100] After the first exposure parameter, the second exposure parameter and the third exposure parameter are determined, the first image can be exposed according to the first exposure parameter, the second exposure parameter and the third exposure parameter to obtain the target image.

[0101] In some embodiments, the first exposure parameter, the second exposure parameter and the third exposure parameter can be configured to the image sensor, so that the image sensor can process the first image based on the first exposure parameter, the second exposure parameter and the third exposure parameter to obtain the target image; or the image sensor and the image processing chip can be allocated at least one exposure parameter (the first exposure parameter and / or the second exposure parameter and / or the second exposure parameter) in any possible manner, so that the image sensor can process the first image based on the allocated exposure parameter, and the image processing chip can process the image processed by the image sensor based on the allocated exposure parameter to obtain the target image, which is not limited.

[0102] In the embodiment, the first image is obtained, the first image includes a plurality of pixel points, initial adjustment information of each gray region is determined based on the plurality of pixel points and the luminance value of each pixel point, the first adjustment information, the second adjustment information and the third adjustment information are determined based on the plurality of initial adjustment information, the first exposure parameter is determined according to the first adjustment information, the second exposure parameter is determined according to the second adjustment information, and the third exposure parameter is determined according to the third adjustment information, wherein the exposure time of different exposure parameters is different, and the first image is processed based on the first exposure parameter, the second exposure parameter and the third exposure parameter to obtain the target image. Exposure control can be flexibly performed, and the image exposure effect is improved.

[0103] Figure 3 Another flowchart of an exposure control method provided by the embodiment of the disclosure is shown.

[0104] As Figure 3 shown, the exposure control method comprises the following steps:

[0105] In step S301, a first image is obtained, wherein the first image includes a plurality of pixel points.

[0106] The description of step S301 can be specifically referred to the above-mentioned embodiments, which will not be repeated here.

[0107] In step S302, the gray region to which the pixel point belongs is determined based on the luminance value of the pixel point and the boundary luminance value of the gray region.

[0108] The boundary luminance value of the gray region may, for example, be the minimum luminance value and the maximum luminance value of the gray region. The minimum luminance value of the gray region may, for example, be the start coordinate start_luma of the luminance value. The maximum luminance value of the gray region may, for example, be the end coordinate end_luma of the luminance value.

[0109] In some embodiments, the boundary luminance value of the gray region can be obtained by pre-calibration, which is not limited.

[0110] In some embodiments, a start percentage start_percent and an end percentage end_percent can be pre-defined, where the start percentage start_percent can be used to represent the proportion of the number of pixel points in the image that meet the minimum luminance value of a certain gray region to the total number of pixel points, and the end percentage end_percent can be used to represent the proportion of the number of pixel points in the image that meet the maximum luminance value of a certain gray region to the total number of pixel points. The boundary luminance value of the gray region can be determined by the start percentage start_percent and the end percentage end_percent in combination with the statistical histogram of the first image, without limitation.

[0111] As shown in Figure 4 , Figure 4 is the cumulative histogram of the first image in the embodiments of the present disclosure. The cumulative histogram of the first image can be obtained by integrating the statistical histogram of the first image. The cumulative histogram of the first image can be determined in Figure 4 , based on the start percentage start_percent corresponding to each gray region, in combination with the statistical histogram of the first image, the start coordinate start_luma of the luminance value of the corresponding gray region can be determined, and based on the end percentage end_percent in combination with the statistical histogram of the first image, the end coordinate end_luma of the luminance value of the corresponding gray region can be determined, and then the start coordinate start_luma of the luminance value and the end coordinate end_luma of the luminance value are taken as the boundary luminance value of the corresponding gray region. Figure 4 Figure 4

[0112] In some embodiments, after determining the boundary luminance value of each gray region, the gray region to which a pixel point belongs can be determined in combination with the luminance value of the pixel point and the boundary luminance value of the gray region. For example, the pixel point can be divided into a suitable gray region according to the luminance value of the pixel point in the first image (i.e. the luminance value of the pixel point is within the boundary luminance value of the gray region), and some pixel points can not be divided into any gray region, without limitation.

[0113] In step S303, the initial adjustment information of the gray region is determined according to the luminance value and the number of pixel points contained in each gray region.

[0114] After determining the gray region to which a pixel point belongs based on the luminance value of the pixel point and the boundary luminance value of the gray region, the initial adjustment information of the gray region can be determined according to the luminance value and the number of pixel points contained in each gray region.

[0115] ​​In some embodiments, after the luminance values and the number of pixels in each gray scale region are calculated, the target luminance value previously calibrated for the gray scale region is obtained, the average luminance value of the gray scale region is calculated according to the luminance values and the number of pixels in the gray scale region, and the ratio between the target luminance value and the average luminance value is taken as the initial adjustment information. Thus, the calculation accuracy of the initial adjustment information is effectively improved, and accurate indexing to the exposure parameters is supported.

[0116] In an example, the luminance values of all the pixels in the gray scale region are accumulated to obtain an accumulated value, the accumulated value is divided by the number of pixels to obtain a calculation result, and the calculation result is taken as the average luminance value of the gray scale region. Then, the ratio between the target luminance value previously calibrated for the gray scale region and the average luminance value is taken as the initial adjustment information.

[0117] In step S304, the first adjustment information, the second adjustment information and the third adjustment information are determined based on the plurality of initial adjustment information.

[0118] In step S305, the first exposure parameter is determined according to the first adjustment information, the second exposure parameter is determined according to the second adjustment information, and the third exposure parameter is determined according to the third adjustment information, wherein the exposure time of different exposure parameters is different.

[0119] In step S306, the target image is obtained by processing the first image according to the first exposure parameter, the second exposure parameter and the third exposure parameter.

[0120] The description of steps S304-S306 can be specifically referred to the above embodiments, which will not be repeated here.

[0121] In this embodiment, the first image is obtained, wherein the first image includes a plurality of pixels, and the initial adjustment information of each gray scale region is determined based on the plurality of pixels and the luminance value of each pixel. The first adjustment information, the second adjustment information and the third adjustment information are determined based on the plurality of initial adjustment information. The first exposure parameter is determined according to the first adjustment information, the second exposure parameter is determined according to the second adjustment information, and the third exposure parameter is determined according to the third adjustment information, wherein the exposure time of different exposure parameters is different. The target image is obtained by processing the first image according to the first exposure parameter, the second exposure parameter and the third exposure parameter. Exposure control can be flexibly performed, and the image exposure effect is improved. The gray scale region to which each pixel belongs is determined based on the luminance value of the pixel and the boundary luminance value of the gray scale region, and the initial adjustment information of the gray scale region is determined according to the luminance values and the number of pixels in each gray scale region. Thus, the calculation accuracy of the initial adjustment information is effectively improved, and accurate indexing to the exposure parameters is supported.

[0122] Figure 5A flowchart of another exposure control method provided by embodiments of the present disclosure is shown.

[0123] As shown in Figure 5 The exposure control method comprises the following steps:

[0124] In step S501, a first image is acquired, wherein the first image comprises a plurality of pixel points.

[0125] In step S502, initial adjustment information of each gray scale region is determined based on the plurality of pixel points and the luminance value of each pixel point.

[0126] The description of steps S501-S502 can be specifically referred to the above embodiments, which will not be repeated here.

[0127] In step S503, a median adjustment information of the plurality of initial adjustment information is determined, and the median adjustment information is taken as a second adjustment information.

[0128] The median adjustment information can be obtained by taking the median of the plurality of initial adjustment information. For example, if 5 gray scale regions are preset, there are 5 initial adjustment information, the 5 initial adjustment information can be sorted, and the initial adjustment information at the middle position of the 5 initial adjustment information obtained by sorting is taken as the median adjustment information. If 6 gray scale regions are preset, there are 6 initial adjustment information, the 6 initial adjustment information can be sorted, and the 2 initial adjustment information at the middle position of the 6 initial adjustment information obtained by sorting is taken, and the average of the 2 initial adjustment information is calculated, and the result value is taken as the median adjustment information.

[0129] After the median adjustment information is determined, the median adjustment information can be assigned to the second adjustment information. So that the second adjustment information can retrieve the appropriate middle exposure parameter.

[0130] In step S504, a first part of initial adjustment information smaller than the median adjustment information is determined from the plurality of initial adjustment information, and the first part of initial adjustment information is averaged to obtain a first adjustment information.

[0131] After the median adjustment information is calculated, a first part of initial adjustment information smaller than the median adjustment information can be determined from the plurality of initial adjustment information, and the first part of initial adjustment information is averaged to obtain a first adjustment information. So that the first adjustment information can retrieve the appropriate short exposure parameter.

[0132] In step S505, a second part of initial adjustment information greater than the median adjustment information is determined from the plurality of initial adjustment information, and the second part of initial adjustment information is averaged to obtain a third adjustment information.

[0133] After the median adjustment information is calculated, a second part of initial adjustment information greater than the median adjustment information can be determined from the plurality of initial adjustment information, and the second part of initial adjustment information is averaged to obtain third adjustment information. The third adjustment information can retrieve a suitable long exposure parameter.

[0134] In step S506, the first exposure parameter is determined according to the first adjustment information, the second exposure parameter is determined according to the second adjustment information, and the third exposure parameter is determined according to the third adjustment information, wherein the exposure time of different exposure parameters is different.

[0135] The above description is illustrated as follows:

[0136] The average luminance average_luma (one optional example of the average luminance value of the gray scale region) of each luminance region (one optional example of the gray scale region) can be calculated:

[0137] average_luma[i]=mean(hist[start_luma[i],end_luma[i]]);

[0138] Wherein, mean() represents the mean operation, i represents the index of the luminance region, start_luma[i] and end_luma[i] represent the boundary luminance value of the i-th luminance region.

[0139] Then, the adjustment ratio adjust_ratio (one optional example of the initial adjustment information of the gray scale region) of each luminance region is calculated:

[0140] adjust_ratio[i]=target_luma[i] / average_luma[i];

[0141] Wherein, i takes 1, 2, …, N. target_luma[i] represents the target luminance value of the i-th luminance region.

[0142] Secondly, the N adjust_ratio (one optional example of the initial adjustment information of the gray scale region) is sorted, and the median value (one optional example of the median adjustment information) is assigned to the middle exposure adjustment coefficient middle_adjust_ratio (one optional example of the second adjustment information):

[0143] middle_adjust_ratio=median(adjust_ratio);

[0144] Wherein, median() represents the median operation.

[0145] Again, for the adjust_ratio less than middle_adjust_ratio (one optional example of the first part of the initial adjustment information), the mean is taken and assigned to the short exposure adjustment coefficient short_adjust_ratio (one optional example of the first adjustment information):

[0146] short_adjust_ratio = mean(adjust_ratio[i]<middle_adjust_ratio);

[0147] Wherein, mean(adjust_ratio[i]<middle_adjust_ratio) represents taking the mean for the adjust_ratio less than middle_adjust_ratio.

[0148] In addition, for the adjust_ratio greater than middle_adjust_ratio (one optional example of the second part of the initial adjustment information), the mean is taken and assigned to the long exposure adjustment coefficient long_adjust_ratio (one optional example of the third adjustment information):

[0149] long_adjust_ratio = mean(adjust_ratio[i]>middle_adjust_ratio);

[0150] Wherein, mean(adjust_ratio[i]>middle_adjust_ratio) represents taking the mean for the adjust_ratio greater than middle_adjust_ratio.

[0151] And the short_adjust_ratio (one optional example of the first adjustment information), middle_adjust_ratio (one optional example of the second adjustment information) and long_adjust_ratio (one optional example of the third adjustment information) are converted into exposure index (ei), and finally converted into the corresponding exposure parameter (one optional example of the first exposure parameter or the second exposure parameter or the third exposure parameter) according to the exposure table.

[0152] Step S507, processing the first image according to the first exposure parameter, the second exposure parameter and the third exposure parameter to obtain the target image.

[0153] The description of steps S506-S507 can be specifically referred to the above embodiments, which will not be repeated here.

[0154] In this embodiment, the first image is obtained, the first image includes a plurality of pixels, and initial adjustment information of each gray region is determined based on the plurality of pixels and a brightness value of each pixel. The first adjustment information, the second adjustment information, and the third adjustment information are determined based on the plurality of initial adjustment information. The first exposure parameter is determined according to the first adjustment information, the second exposure parameter is determined according to the second adjustment information, and the third exposure parameter is determined according to the third adjustment information. The exposure time of different exposure parameters is different. The first image is processed according to the first exposure parameter, the second exposure parameter, and the third exposure parameter to obtain a target image. Exposure control can be flexibly performed, and the image exposure effect is improved.

[0155] In some embodiments of the present disclosure, in the process of obtaining the target image by processing the first image according to the first exposure parameter, the second exposure parameter, and the third exposure parameter, the first exposure parameter, the second exposure parameter, and the third exposure parameter can be provided to an image sensor. The image sensor processes the first image based on the first exposure parameter, the second exposure parameter, and the third exposure parameter respectively to obtain corresponding second image, third image, and fourth image. The second image, the third image, and the fourth image are synthesized and processed by an image processor to obtain the target image.

[0156] For example, the short exposure parameter, the medium exposure parameter, and the long exposure parameter can be configured to the sensor, so that the sensor outputs a short exposure frame (an optional example of the second image), a medium exposure frame (an optional example of the third image), and a long exposure frame (an optional example of the fourth image) respectively. Then, the short exposure frame, the medium exposure frame, and the long exposure frame are fused by an ISP to obtain the target image.

[0157] In some embodiments of the present disclosure, in the process of obtaining the target image by processing the first image according to the first exposure parameter, the second exposure parameter, and the third exposure parameter, the exposure application type of the first image can be determined, and the first image is processed according to the exposure application type, the first exposure parameter, the second exposure parameter, and the third exposure parameter to obtain the target image. The exposure control method can be flexibly applied to the personalized exposure application type, and the flexibility and accuracy of the exposure control are further improved.

[0158] In some embodiments, the exposure application type can be, for example, single exposure and / or multiple exposure.

[0159] In some embodiments of the present disclosure, in the case of the exposure application type being single exposure, the first exposure parameter is provided to the image sensor, wherein the image sensor processes the first image based on the first exposure parameter to obtain a second image, and the second exposure parameter and the third exposure parameter are provided to the image processor, so that the image processor processes the second image based on the second exposure parameter and the third exposure parameter to obtain the target image.

[0160] In some embodiments of the present disclosure, in the case of the exposure application type being multi-exposure, the first exposure parameter and the second exposure parameter are provided to the image sensor, wherein the image sensor processes the first image based on the first exposure parameter and the second exposure parameter to obtain a second image; the third exposure parameter is provided to the image processor, so that the image processor processes the second image based on the third exposure parameter to obtain the target image.

[0161] The exposure application type of multi-exposure can be, for example, the exposure application type of two-exposure, without limitation.

[0162] For example, for the application scenario of single exposure, the exposure parameter of short exposure can be configured to the sensor, and the middle_adjust_ratio and the long_adjust_ratio can be configured to the brightness module on the ISP to improve the brightness of the output YUV image while retaining the dynamic range. Similarly, for the application scenario of two-exposure, the exposure parameters of short exposure and middle exposure can be configured to the sensor, and the long_adjust_ratio can be configured to the ISP to improve the brightness of the output YUV image while retaining the dynamic range.

[0163] Therefore, the exposure control method provided in the embodiments of the present disclosure can flexibly control the brightness of each gray scale of the image, can avoid dark dead black and high-light overexposure, and has good time-domain stability.

[0164] Figure 6 A structural schematic diagram of an exposure control device provided in the embodiments of the present disclosure.

[0165] As Figure 6 shown, the exposure control device 60 comprises:

[0166] The acquisition module 601 is configured to acquire a first image, wherein the first image comprises a plurality of pixel points.

[0167] The first determination module 602 is configured to determine initial adjustment information of each gray scale region based on the plurality of pixel points and the brightness value of each pixel point.

[0168] The second determination module 603 is configured to determine the first adjustment information, the second adjustment information, and the third adjustment information based on the plurality of initial adjustment information.

[0169] The third determining module 604 is configured to determine a first exposure parameter according to the first adjustment information, determine a second exposure parameter according to the second adjustment information, and determine a third exposure parameter according to the third adjustment information, wherein exposure durations of different exposure parameters are different.

[0170] The processing module 605 is configured to process the first image according to the first exposure parameter, the second exposure parameter, and the third exposure parameter to obtain a target image.

[0171] In some embodiments of the present disclosure, the exposure duration of the first exposure parameter, the exposure duration of the second exposure parameter, and the exposure duration of the third exposure parameter are sequentially increased.

[0172] In some embodiments of the present disclosure, the first determining module is specifically configured to:

[0173] determine the gray scale region to which the pixel point belongs based on the brightness value of the pixel point and the boundary brightness value of the gray scale region;

[0174] determine the initial adjustment information of the gray scale region according to the brightness value and the number of pixel points of the pixel points contained in each gray scale region.

[0175] In some embodiments of the present disclosure, the first determining module is specifically configured to:

[0176] obtain a target brightness value calibrated in advance for the gray scale region;

[0177] calculate an average brightness value of the gray scale region according to the brightness value and the number of pixel points of the pixel points contained in the gray scale region.

[0178] take the ratio between the target brightness value and the average brightness value as the initial adjustment information.

[0179] In some embodiments of the present disclosure, the second determining module is specifically configured to:

[0180] determine a median adjustment information of the plurality of initial adjustment information, and take the median adjustment information as the second adjustment information;

[0181] determine a first part of initial adjustment information smaller than the median adjustment information from the plurality of initial adjustment information, and average the first part of initial adjustment information to obtain the first adjustment information;

[0182] determine a second part of initial adjustment information greater than the median adjustment information from the plurality of initial adjustment information, and average the second part of initial adjustment information to obtain the third adjustment information.

[0183] In some embodiments of the present disclosure, the processing module is specifically configured to:

[0184] The first exposure parameter, the second exposure parameter and the third exposure parameter are provided to the image sensor, wherein the image sensor processes the first image based on the first exposure parameter, the second exposure parameter and the third exposure parameter respectively to obtain corresponding second image, third image and fourth image.

[0185] The second image, the third image and the fourth image are processed by the image processor to obtain the target image.

[0186] In some embodiments of the present disclosure, the processing module is specifically configured to:

[0187] determine the exposure application type of the first image;

[0188] process the first image according to the exposure application type, the first exposure parameter, the second exposure parameter and the third exposure parameter to obtain the target image.

[0189] In some embodiments of the present disclosure, the processing module is further configured to:

[0190] in the case that the exposure application type is single exposure, provide the first exposure parameter to the image sensor, wherein the image sensor processes the first image based on the first exposure parameter to obtain the second image;

[0191] provide the second exposure parameter and the third exposure parameter to the image processor, so that the image processor processes the second image based on the second exposure parameter and the third exposure parameter to obtain the target image.

[0192] In some embodiments of the present disclosure, the processing module is further configured to:

[0193] in the case that the exposure application type is multi-exposure, provide the first exposure parameter and the second exposure parameter to the image sensor, wherein the image sensor processes the first image based on the first exposure parameter and the second exposure parameter to obtain the second image;

[0194] provide the third exposure parameter to the image processor, so that the image processor processes the second image based on the third exposure parameter to obtain the target image.

[0195] It should be noted that the foregoing explanation and description of the exposure control method also apply to the exposure control device of the present embodiment, which will not be described here again.

[0196] In this embodiment, a first image is acquired, the first image includes a plurality of pixel points, initial adjustment information of each gray region is determined based on the plurality of pixel points and the brightness value of each pixel point, the first adjustment information, the second adjustment information and the third adjustment information are determined based on the plurality of initial adjustment information, the first exposure parameter is determined according to the first adjustment information, the second exposure parameter is determined according to the second adjustment information, and the third exposure parameter is determined according to the third adjustment information, wherein the exposure time of different exposure parameters is different, and the first image is processed according to the first exposure parameter, the second exposure parameter and the third exposure parameter to obtain a target image. Exposure control can be flexibly performed, and the image exposure effect is improved.

[0197] Figure 7 A block diagram of an example electronic device suitable for implementing an embodiment of the present disclosure is shown. Figure 7 The electronic device 12 shown is merely one example and should not be taken as limiting the scope of the present embodiments.

[0198] As shown in Figure 7 The electronic device 12 is in the form of a general-purpose computing device. Components of the electronic device 12 can include, but are not limited to, one or more processors or processing units 16, a memory 28, and a bus 18 that connects the various system components, including the memory 28 and the processing unit 16.

[0199] The bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics bus (e.g., an Accelerated Graphics Port, or AGP bus) and a processor or local bus using any of a variety of bus architectures. By way of example, these architectures include Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MCA) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.

[0200] The electronic device 12 typically includes a variety of computer system readable media. These media can be any available media that is accessible by the electronic device 12 and includes both volatile and non-volatile media, removable and non-removable media.

[0201] Memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 30 and / or cache 32. Electronic device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 34 may be used to read and write non-removable, non-volatile magnetic media (… Figure 7 Not shown; usually referred to as a "hard drive".

[0202] although Figure 7 Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk") and an optical disc drive for reading and writing to a removable non-volatile optical disc (e.g., a compact disc read-only memory (CD-ROM), a digital video disc read-only memory (DVD-ROM), or other optical media) may be provided. In these cases, each drive may be connected to bus 18 via one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of the embodiments of this disclosure.

[0203] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28. Such program modules 42 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include an implementation of a network environment. Program modules 42 typically perform the functions and / or methods described in the embodiments of this disclosure.

[0204] The electronic device 12 can also communicate with one or more external devices 14 such as a keyboard, a pointing device, a display 24, etc.; other devices that enable a human user to interact with the electronic device 12; and / or one or more devices that enable the electronic device 12 to communicate with one or more other computing devices. Such communication can be via input / output (I / O) interface 22. Furthermore, the electronic device 12 can communicate with one or more networks (such as a Local Area Network (LAN), a Wide Area Network (WAN), and / or the public networks, such as the Internet) through network adapter 20. As illustrated, network adapter 20 communicates with the other components of the electronic device 12 through bus 18. It should be appreciated that although not shown, other hardware and / or software modules could be used in connection with the electronic device 12. These include, but are not limited to, microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data archival storage systems, etc.

[0205] The processing unit 16 performs various function applications and data processing by running programs stored in the memory 28, such as implementing the exposure control method mentioned in the foregoing embodiments.

[0206] To implement the foregoing embodiments, the present disclosure further provides an electronic device, including: a processor, and a memory connected with the processor in communication; the memory stores computer execution instructions; the processor executes the computer execution instructions stored in the memory to implement the method provided in the foregoing embodiments.

[0207] To implement the foregoing embodiments, the present disclosure further provides a computer readable storage medium, the computer readable storage medium stores computer execution instructions, the computer execution instructions are executed by the processor to implement the method provided in the foregoing embodiments.

[0208] To implement the foregoing embodiments, the present disclosure further provides a computer program product, including a computer program, the computer program is executed by the processor to implement the method provided in the foregoing embodiments.

[0209] To implement the foregoing embodiments, the present disclosure further provides a processor, the processor is used to invoke computer execution instructions to execute the method provided in the foregoing embodiments.

[0210] In some embodiments of the present disclosure, the processor can be, for example, a CPU, an ISP, etc., which is not limited.

[0211] Figure 8 is a structural schematic diagram of a chip provided by an embodiment of the present disclosure. It can be seen from Figure 8The structure of the chip 800 shown is a schematic diagram, but is not limited thereto.

[0212] The chip 800 includes a processing circuit 801 configured to perform any of the above methods.

[0213] In some embodiments, the chip 800 further includes one or more interface circuits 802. Optionally, the interface circuit 802 is connected with the memory 803, and the interface circuit 802 can be used to receive signals from the memory 803 or other devices, and the interface circuit 802 can be used to send signals to the memory 803 or other devices. For example, the interface circuit 802 can read instructions stored in the memory 803 and send the instructions to the processing circuit 801.

[0214] In some embodiments, the interface circuit 802 performs at least one of the communication steps such as sending and / or receiving in the above methods, and the processing circuit 801 performs other steps.

[0215] In some embodiments, the interface circuit, interface, transceiver pin, transceiver, and the like can be replaced with each other.

[0216] In some embodiments, the chip 800 further includes one or more memories 803 for storing instructions. Optionally, all or part of the memory 803 can be outside the chip 800.

[0217] In some embodiments, the chip can be, for example, an image processing chip (Image Signal Processor, ISP), without limitation.

[0218] Those skilled in the art can also understand that the various illustrative logical blocks and steps listed in the embodiments of the present disclosure can be implemented by electronic hardware, computer software, or a combination of both. Whether the function is implemented by hardware or software depends on the specific application and design requirements of the whole system. Those skilled in the art can implement the described functions for each specific application by various methods, but such implementation should not be understood as beyond the scope of protection of the embodiments of the present disclosure

[0219] Furthermore, the word "exemplary" is used herein to mean serving as an example, instance, or illustration. Any aspect or design described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other aspects or designs. Rather, use of the word exemplary is intended to present concepts in a concrete manner. As used in this application, the term "or" is intended to mean an inclusive "or" rather than an exclusive "or". That is, unless specified otherwise, or clear from context, "X employs A or B" is intended to mean any of the natural inclusive permutations. That is, if X employs A; X employs B; or X employs both A and B, then "X employs A or B" is satisfied under any of the foregoing instances. In addition, the articles "a" and "an" as used in this application and the appended claims should generally be construed to mean "one or more" unless specified otherwise or clear from context to be directed to a singular form. Thus, use of the articles in this application and the following claims is not limiting.

[0220] Also, although the disclosure has been described with respect to only one or more implementations thereof, those skilled in the art will readily appreciate that other alternatives can be used. It is contemplated that the disclosure can be carried out in other specific ways than those expressly disclosed herein. Any and all such changes, modifications, variations, and improvements that have been or can be made to the disclosure are intended to be included within the scope of the disclosure. Accordingly, the disclosure is not to be construed as limited to the particular examples disclosed but is intended to cover all structures and functions which are considered to be within the scope of the disclosure as defined by the claims.

[0221] Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the features of the disclosure disclosed herein. It is intended that the specification and examples be considered as exemplary only, with the true scope and spirit of the disclosure being indicated by the following claims.

[0222] It is to be understood that the disclosure is not limited to the precise construction described and as shown in the drawings, and that changes can be made to the exact construction and arrangement of parts without departing from the scope of the disclosure. The scope of the disclosure is only limited by the claims appended hereto.

Claims

1. An exposure control method characterized by comprising: The method comprises: acquiring a first image, wherein the first image comprises a plurality of pixels; determining initial adjustment information of each gray scale region based on the plurality of pixels and the brightness value of each pixel; determining first adjustment information, second adjustment information and third adjustment information based on a plurality of initial adjustment information; determining a first exposure parameter according to the first adjustment information, a second exposure parameter according to the second adjustment information, and a third exposure parameter according to the third adjustment information, wherein the exposure time of different exposure parameters is different; processing the first image according to the first exposure parameter, the second exposure parameter and the third exposure parameter to obtain a target image.

2. The method of claim 1, wherein, The exposure time of the first exposure parameter, the exposure time of the second exposure parameter, and the exposure time of the third exposure parameter increase in turn.

3. The method of claim 1, wherein, The method comprises: determining the gray scale region to which the pixel belongs based on the brightness value of the pixel and the boundary brightness value of the gray scale region; determining the initial adjustment information of the gray scale region according to the brightness value and the number of pixels contained in each gray scale region.

4. The method of claim 3, wherein, The method comprises: acquiring a target brightness value calibrated in advance for the gray scale region; calculating the average brightness value of the gray scale region according to the brightness value and the number of pixels contained in the gray scale region; taking the ratio between the target brightness value and the average brightness value as the initial adjustment information.

5. The method of claim 3, wherein, The method comprises: determining the median adjustment information of a plurality of initial adjustment information, and taking the median adjustment information as the second adjustment information; determining a first part of initial adjustment information smaller than the median adjustment information from a plurality of initial adjustment information, and averaging the first part of initial adjustment information to obtain the first adjustment information; determining a second part of initial adjustment information greater than the median adjustment information from a plurality of initial adjustment information, and averaging the second part of initial adjustment information to obtain the third adjustment information.

6. The method of claim 1, wherein, The method comprises: providing the first exposure parameter, the second exposure parameter and the third exposure parameter to an image sensor, wherein the image sensor processes the first image based on the first exposure parameter, the second exposure parameter and the third exposure parameter respectively to obtain corresponding second image, third image and fourth image; synthesizing and processing the second image, the third image and the fourth image based on an image processor to obtain the target image.

7. The method of claim 1, wherein, The method comprises: determine an exposure application type of the first image; process the first image according to the exposure application type, the first exposure parameter, the second exposure parameter and the third exposure parameter to obtain a target image.

8. The method of claim 7, wherein, The processing the first image according to the exposure application type, the first exposure parameter, the second exposure parameter and the third exposure parameter to obtain a target image comprises: in a case where the exposure application type is single exposure, providing the first exposure parameter to an image sensor, wherein the image sensor processes the first image based on the first exposure parameter to obtain a second image; providing the second exposure parameter and the third exposure parameter to an image processor, so that the image processor processes the second image based on the second exposure parameter and the third exposure parameter to obtain the target image.

9. The method of claim 7, wherein, The processing the first image according to the exposure application type, the first exposure parameter, the second exposure parameter and the third exposure parameter to obtain a target image comprises: in a case where the exposure application type is multi-exposure, providing the first exposure parameter and the second exposure parameter to an image sensor, wherein the image sensor processes the first image based on the first exposure parameter and the second exposure parameter to obtain a second image; providing the third exposure parameter to an image processor, so that the image processor processes the second image based on the third exposure parameter to obtain the target image.

10. An exposure control device characterized by comprising: The device comprises: an acquisition module configured to acquire a first image, wherein the first image comprises a plurality of pixel points; a first determination module configured to determine initial adjustment information of each gray region based on the plurality of pixel points and a luminance value of each pixel point; a second determination module configured to determine first adjustment information, second adjustment information and third adjustment information based on a plurality of the initial adjustment information; a third determination module configured to determine a first exposure parameter according to the first adjustment information, a second exposure parameter according to the second adjustment information, and a third exposure parameter according to the third adjustment information, wherein exposure durations of different exposure parameters are different; a processing module configured to process the first image according to the first exposure parameter, the second exposure parameter and the third exposure parameter to obtain a target image.

11. An electronic device, comprising: comprise: a processor, and a memory connected with the processor in communication; the memory stores computer execution instructions; the processor executes the computer execution instructions stored in the memory to implement the method according to any one of claims 1-9.

12. A chip, characterized by The chip comprises processing circuitry configured to execute the method according to any one of claims 1-9.

13. A computer-readable storage medium, characterized in that, The computer readable storage medium stores computer execution instructions, and the computer execution instructions are executed by the processor to implement the method according to any one of claims 1-9.

14. A computer program product, characterised in that, The computer program is executed by the processor to implement the method according to any one of claims 1-9.

15. A processor, comprising: The processor is configured to invoke the computer execution instructions to execute the method according to any one of claims 1-9.

Citation Information

Patent Citations

  • Exposure parameter adjusting method and device

    CN111741227A

  • Automatic exposure adjusting method and system

    CN112312037A