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

By acquiring the brightness values ​​of multiple pixel points in the image, determining the initial adjustment information of each grayscale area and calculating the exposure parameters, the problem of inflexible exposure control in the prior art is solved, and the exposure effect of the image is improved.

CN119155557AActive Publication Date: 2024-12-17BEIJING X RING TECHNOLOGY CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The prior art is difficult to flexibly adjust the exposure parameters in exposure control, affecting the image exposure effect.

Method used

By acquiring the brightness values ​​of multiple pixel points in the image, initial adjustment information for each grayscale area is determined, and exposure time of different exposure parameters is calculated based on this information, and each is used to process the image to obtain the target image.

Benefits of technology

Flexible exposure control is realized, improving the exposure effect of the image, and avoiding dark areas and high-bright overexposure.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119155557A_ABST
    Figure CN119155557A_ABST
Patent Text Reader

Abstract

The invention provides an exposure control method and device, equipment, a chip, a processor and a medium, and the method comprises the steps: obtaining a first image which comprises a plurality of pixel points; determining initial adjustment information of each gray area 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 multiple pieces of initial adjustment information; a first exposure parameter is determined according to the first adjustment information, a second exposure parameter is determined according to the second adjustment information, a third exposure parameter is determined according to the third adjustment information, and exposure durations of different exposure parameters are 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. The technical problem that in the prior art, exposure control cannot be flexibly carried out, and the image exposure effect is affected 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 equipment, and in particular to an exposure control method, device, equipment, chip, processor and medium. Background Art

[0002] With the popularity of electronic devices such as smartphones, users have more and more diverse functional requirements for electronic devices. For example, the camera function of electronic devices can bring great convenience to users' production and life. The key to the quality of images taken by the camera function lies in exposure control.

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

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

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

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

[0007] To achieve the above-mentioned purpose, an embodiment of the first aspect of the present disclosure proposes an exposure control method, including: acquiring a first image, wherein the first image includes multiple pixel points; determining initial adjustment information of each grayscale area based on the multiple pixel points and the brightness value of each pixel point; determining first adjustment information, second adjustment information and third adjustment information based on the multiple initial adjustment information; determining a first exposure parameter according to the first adjustment information, determining a second exposure parameter according to the second adjustment information, and determining a third exposure parameter according to the third adjustment information, wherein the exposure times of different exposure parameters are 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.

[0008] 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 increase sequentially.

[0009] In some embodiments of the present disclosure, determining initial adjustment information of each grayscale area based on a plurality of pixels and a brightness value of each pixel includes:

[0010] Determine the grayscale region to which the pixel belongs based on the brightness value of the pixel and the boundary brightness value of the grayscale region;

[0011] The initial adjustment information of the grayscale area is determined according to the brightness value and the number of pixels contained in each grayscale area.

[0012] In some embodiments of the present disclosure, determining initial adjustment information of the grayscale region according to the brightness value and the number of pixels contained in each grayscale region includes:

[0013] Obtain the target brightness value pre-calibrated for the grayscale area;

[0014] Calculate the average brightness value of the grayscale area according to the brightness values ​​and number of pixels contained in the grayscale area;

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

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

[0017] Determine median adjustment information of the plurality of initial adjustment information, and use the median adjustment information as second adjustment information;

[0018] Determine a first portion of initial adjustment information that is smaller than the median adjustment information from the plurality of initial adjustment information, and average the first portion of initial adjustment information to obtain first adjustment information;

[0019] A second portion of initial adjustment information greater than the median adjustment information is determined from the multiple initial adjustment information, and the second portion of initial adjustment information is averaged to obtain third adjustment information.

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

[0021] Providing 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 to obtain the corresponding second image, the third image and the fourth image;

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

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

[0024] determining an exposure application type for the first image;

[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 the target image includes:

[0027] When the exposure application type is single exposure, providing a 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;

[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 the target image includes:

[0030] In the case where the exposure application type is multi-exposure, providing 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;

[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 a target image.

[0032] To achieve the above-mentioned purpose, the second aspect embodiment of the present disclosure proposes an exposure control device, including: an acquisition module, used to acquire a first image, wherein the first image includes multiple pixels; a first determination module, used to determine initial adjustment information of each grayscale area based on the multiple pixels and the brightness value of each pixel; a second determination module, used to determine first adjustment information, second adjustment information and third adjustment information based on the multiple initial adjustment information; a third determination module, used 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 the exposure times of different exposure parameters are different; a processing module, used 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 increase sequentially.

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

[0035] Determine the grayscale region to which the pixel belongs based on the brightness value of the pixel and the boundary brightness value of the grayscale region;

[0036] The initial adjustment information of the grayscale area is determined according to the brightness value and the number of pixels contained in each grayscale area.

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

[0038] Obtain the target brightness value pre-calibrated for the grayscale area;

[0039] Calculate the average brightness value of the grayscale area according to the brightness values ​​and number of pixels contained in the grayscale area;

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

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

[0042] Determine median adjustment information of the plurality of initial adjustment information, and use the median adjustment information as second adjustment information;

[0043] Determine a first portion of initial adjustment information that is smaller than the median adjustment information from the plurality of initial adjustment information, and average the first portion of initial adjustment information to obtain first adjustment information;

[0044] A second portion of initial adjustment information greater than the median adjustment information is determined from the multiple initial adjustment information, and the second portion of initial adjustment information is averaged to obtain third adjustment information.

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

[0046] Providing 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 to obtain the corresponding second image, the third image and the fourth image;

[0047] The second image, the third image and the fourth image are synthesized based on an image processor to obtain a target image.

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

[0049] determining an exposure application type for the first image;

[0050] 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.

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

[0052] When the exposure application type is single exposure, providing a 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;

[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 the case where the exposure application type is multi-exposure, providing 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;

[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 a target image.

[0057] To achieve the above-mentioned purpose, the third aspect embodiment of the present disclosure proposes an electronic device, including: a processor, and a memory connected to the processor for communication; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory to implement the exposure control method proposed in the first aspect embodiment of the present disclosure.

[0058] To achieve the above-mentioned purpose, a fourth embodiment of the present disclosure proposes a chip, the chip including a processing circuit, and the processing circuit is configured to execute the exposure control method proposed in the first embodiment of the present disclosure.

[0059] To achieve the above-mentioned purpose, the fifth aspect embodiment of the present disclosure proposes a computer-readable storage medium, in which computer execution instructions are stored. When the computer execution instructions are executed by a processor, they are used to implement the exposure control method proposed in the first aspect embodiment of the present disclosure.

[0060] To achieve the above-mentioned purpose, the sixth aspect of the present disclosure proposes a computer program product, including a computer program, which, when executed by a processor, implements the exposure control method proposed in the first aspect of the present disclosure.

[0061] To achieve the above-mentioned purpose, a seventh embodiment of the present disclosure proposes a processor, which is used to call a computer to execute instructions to execute the exposure control method proposed in the first embodiment 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 can flexibly perform exposure control and improve image exposure effect by acquiring a first image, wherein the first image includes a plurality of pixels, and determining initial adjustment information of each grayscale 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 the plurality of initial adjustment information, determining a first exposure parameter according to the first adjustment information, determining a second exposure parameter according to the second adjustment information, and determining a third exposure parameter according to the third adjustment information, wherein the exposure durations of different exposure parameters are 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.

[0063] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0065] Figure 1 A schematic flow chart of an exposure control method provided by an embodiment of the present disclosure;

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

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

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

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

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

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

[0072] Figure 8 It is a schematic diagram of the structure of the chip proposed in the embodiment of the present disclosure. DETAILED DESCRIPTION

[0073] Some embodiments of the present disclosure will be described in detail here, and examples thereof are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. Various changes, modifications and equivalents of the methods, devices and / or systems described herein will become apparent after understanding the present disclosure. For example, the order of operations described herein is merely an example and is not limited to those orders set forth herein, but can be changed as becomes apparent after understanding the present disclosure, except for operations that must be performed in a specific order. In addition, for clarity and brevity, descriptions of features known in the art may be omitted.

[0074] The embodiments described in some embodiments of the present disclosure below do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

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

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

[0077] Figure 1 A schematic flow chart of an exposure control method provided in an embodiment of the present disclosure.

[0078] This embodiment is illustrated by taking the exposure control method being configured in an exposure control device. In this embodiment, the exposure control method can be configured in the exposure control device, and the exposure control device can be set in a server or in an electronic device, without limitation.

[0079] This embodiment takes the exposure control method configured in an electronic device as an example, wherein the electronic device is a hardware device with various operating systems, such as a smart phone, a tablet computer, a personal digital assistant, an e-book, etc.

[0080] It should be noted that the executing entity of the embodiments of the present disclosure may be, for example, an image sensor (sensor) and / or an image processing chip (Image Signal Processor, ISP) in a server or electronic device in terms of hardware, which may also be called an image processor, and may be, for example, a related background service in a server or electronic device in terms of software, without limitation.

[0081] like Figure 1 As shown, the exposure control method comprises the following steps:

[0082] Step S101: Acquire a first image, where the first image includes a plurality of pixels.

[0083] The first image may be, for example, an image waiting for exposure processing, and the first image may also be understood as an image captured by the screen area when the camera is aimed at the shooting scene. In some embodiments, the camera of the electronic device may be aimed at the shooting scene, and an image of the shooting scene captured by the camera may be obtained, and the image may be used as the first image; or an image of the shooting scene captured before exposure may be used as the first image, and there is no limitation on this.

[0084] After acquiring the first image, the brightness value of each pixel contained in the first image can be determined, and the brightness value can be used to analyze the histogram of the first image. The histogram can be, for example, a brightness histogram, or a histogram of RGB sub-channels (i.e., each RGB color channel), etc., without limitation.

[0085] Step S102: determining initial adjustment information of each grayscale area based on a plurality of pixels and the brightness value of each pixel.

[0086] The grayscale area may be pre-calibrated. For example, the number of grayscale areas may be set to N according to the need for control accuracy. For example, N may be 5, and there is no limitation on this.

[0087] The initial adjustment information may be, for example, an initial adjustment ratio, which may be used to determine exposure parameters, such as gain and / or exposure time. Each grayscale region may correspond to an initial adjustment information, so as to achieve personalized adjustment of each grayscale region and support improved exposure control effect and flexibility.

[0088] In some embodiments, the grayscale area may include: dark_tone_low; dark_tone_high; base_tone; bright_tone_low; bright_tone_high. Among them, dark_tone_low and dark_tone_high are used to control the low light area, which can be used to prevent the dark area of ​​the image from being too dark. base_tone is used to control the medium light area to ensure the main brightness of the image. bright_tone_low and bright_tone_high can be used to control the highlight area to prevent the bright area of ​​the image from being overexposed.

[0089] After acquiring the first image, the brightness value of each pixel can be statistically analyzed to determine the statistical histogram of the first image, and each grayscale area can be roughly indicated in the statistical histogram, such as Figure 2 shown. Figure 2 It is a statistical histogram of the first image in the embodiment of the present disclosure, wherein the horizontal axis represents luma (a unit of brightness), and the vertical axis represents count value (count, i.e., the number of pixels of a certain brightness), which can be obtained by counting the brightness values ​​of each pixel in the first image.

[0090] Step S103, determining first adjustment information, second adjustment information and third adjustment information based on the plurality of initial adjustment information.

[0091] After the initial adjustment information of each grayscale area is determined, the first adjustment information, the second adjustment information and the third adjustment information may be determined with reference to the initial adjustment information.

[0092] The first adjustment information may be used to determine the first exposure parameter; the second adjustment information may be used to determine the second exposure parameter; and the third adjustment information may be used to determine the third exposure parameter, wherein the exposure durations of different exposure parameters are different. The first exposure parameter may be, for example, a short exposure parameter, the second exposure parameter may be, for example, a medium exposure parameter, and the third exposure parameter may be, for example, a long exposure parameter. The exposure durations of the short exposure parameter, the medium exposure parameter, and the long exposure parameter may be different. The first adjustment information may be index information for indexing to obtain the short exposure parameter. The second adjustment information may be index information for indexing to obtain the medium exposure parameter. The third adjustment information may be index information for indexing to obtain the long exposure parameter. The first adjustment information may also be referred to as a short exposure adjustment coefficient, the second adjustment information may also be referred to as a medium exposure adjustment coefficient, and the third adjustment information may also be referred to as a long exposure adjustment coefficient, without limitation thereto.

[0093] In some embodiments, a certain comparison and analysis process may be performed on multiple initial adjustment information to determine the first adjustment information, the second adjustment information, and the third adjustment information; or multiple initial adjustment information may be processed based on a large model to determine the first adjustment information, the second adjustment information, and the third adjustment information; or multiple initial adjustment information may be processed in combination with any other possible manner to obtain the first adjustment information, the second adjustment information, and the third adjustment information, such as a labeling method, a mapping method, etc., without limitation.

[0094] Step S104, determining a first exposure parameter according to the first adjustment information, determining a second exposure parameter according to the second adjustment information, and determining a third exposure parameter according to the third adjustment information, wherein exposure durations of different exposure parameters are different.

[0095] After determining the first adjustment information, the second adjustment information and the third adjustment information, 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, for example, a first exposure parameter can be retrieved from an exposure table according to first adjustment information, a second exposure parameter can be retrieved from the exposure table according to second adjustment information, and a third exposure parameter can be retrieved from the exposure table according to third adjustment information.

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

[0098] In some embodiments, when retrieving the first exposure parameter according to the first adjustment information, the candidate adjustment information matching the first adjustment information may be determined from the multiple candidate adjustment information in the exposure table, and the candidate exposure parameter corresponding to the aforementioned matching candidate adjustment information is used as the first exposure parameter. When retrieving the second exposure parameter according to the second adjustment information, the candidate adjustment information matching the second adjustment information may be determined from the multiple candidate adjustment information in the exposure table, and the candidate exposure parameter corresponding to the aforementioned matching candidate adjustment information is used as the second exposure parameter. When retrieving the third exposure parameter according to the third adjustment information, the candidate adjustment information matching the third adjustment information may be determined from the multiple candidate adjustment information in the exposure table, and the candidate exposure parameter corresponding to the aforementioned matching candidate adjustment information is used as the third exposure parameter.

[0099] Step S105 , processing the first image according to the first exposure parameter, the second exposure parameter and the third exposure parameter to obtain a target image.

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

[0101] In some embodiments, the first exposure parameter, the second exposure parameter, and the third exposure parameter may be configured to the image sensor so that the image sensor may process the first image based on the first exposure parameter, the second exposure parameter, and the third exposure parameter to obtain a target image; or at least one exposure parameter (the first exposure parameter and / or the second exposure parameter and / or the third exposure parameter) may be assigned to the image sensor and the image processing chip in any possible manner, so that the image sensor may process the first image based on the assigned exposure parameter, and the image processing chip may process the image obtained by the aforementioned image sensor based on the assigned exposure parameter to obtain a target image, without limitation.

[0102] In this embodiment, by acquiring a first image, wherein the first image includes a plurality of pixels, determining initial adjustment information of each grayscale 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 the plurality of initial adjustment information, determining a first exposure parameter based on the first adjustment information, determining a second exposure parameter based on the second adjustment information, and determining a third exposure parameter based on the third adjustment information, wherein the exposure durations of different exposure parameters are different, and processing the first image based on the first exposure parameter, the second exposure parameter, and the third exposure parameter, a target image is obtained. Exposure control can be flexibly performed to improve image exposure effect.

[0103] Figure 3 A schematic flow chart of another exposure control method provided by an embodiment of the present disclosure.

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

[0105] Step S301: Acquire a first image, where the first image includes a plurality of pixels.

[0106] For the description of step S301, please refer to the above embodiment, which will not be repeated here.

[0107] Step S302: determining the grayscale region to which the pixel belongs based on the brightness value of the pixel and the boundary brightness value of the grayscale region.

[0108] The boundary brightness value of the grayscale region may be, for example, the minimum brightness value and the maximum brightness value of the grayscale region. The minimum brightness value of the grayscale region may be, for example, the starting coordinate start_luma of the brightness value. The maximum brightness value of the grayscale region may be, for example, the ending coordinate end_luma of the brightness value.

[0109] In some embodiments, the boundary brightness value of the grayscale area may be pre-calibrated, and there is no limitation to this.

[0110] In some other embodiments, a start ratio start_percent and an end ratio end_percent may be pre-calibrated, and the start ratio start_percent may be used to indicate the ratio of the number of pixel points in the image that meet the minimum brightness value of a grayscale region to the total number of pixel points, and the end ratio end_percent may be used to indicate the ratio of the number of pixel points in the image that meet the maximum brightness value of a grayscale region to the total number of pixel points. The boundary brightness value of the grayscale region may be determined by the start ratio start_percent and the end ratio end_percent in combination with the statistical histogram of the first image, and there is no limitation on this.

[0111] For example, Figure 4 As shown, Figure 4 is the cumulative histogram of the first image in the embodiment of the present disclosure. The cumulative histogram of the first image can be obtained by integrating the statistical histogram of the first image. Figure 4 In the example, based on the starting ratio start_percent corresponding to each grayscale area, combined with Figure 4 The statistical histogram determines the starting coordinates start_luma of the brightness value of the corresponding grayscale area, and the end ratio end_percent, combined with Figure 4 The statistical histogram is used to determine the end coordinate end_luma of the brightness value of the corresponding grayscale area, and then the start coordinate start_luma of the brightness value and the end coordinate end_luma of the brightness value are used as the boundary brightness value of the corresponding grayscale area.

[0112] In some embodiments, after determining the boundary brightness value of each grayscale area, the grayscale area to which the pixel belongs can be determined by combining the brightness value of the pixel and the boundary brightness value of the grayscale area. For example, the brightness value of the pixel in the first image can be referenced to divide the pixel into a suitable grayscale area (i.e., the brightness value of the pixel belongs to the boundary brightness value of the grayscale area). Some pixels may not be divided into any grayscale area, and there is no limitation on this.

[0113] Step S303, determining initial adjustment information of the grayscale area according to the brightness value and the number of pixels contained in each grayscale area.

[0114] After determining the grayscale region to which the pixel belongs based on the brightness value of the pixel and the boundary brightness value of the grayscale region, initial adjustment information of the grayscale region can be determined according to the brightness value and number of pixels contained in each grayscale region.

[0115] In some embodiments, after calculating the brightness value and number of pixels contained in each grayscale area, a target brightness value pre-calibrated for the grayscale area can be obtained, and the average brightness value of the grayscale area can be calculated based on the brightness value and number of pixels contained in the grayscale area, and the ratio between the target brightness value and the average brightness value can be used as initial adjustment information. This effectively improves the calculation accuracy of the initial adjustment information and supports accurate indexing of exposure parameters.

[0116] For example, the brightness values ​​of all pixels contained in the grayscale area can be accumulated to obtain an accumulated value, and the accumulated value can be divided by the number of pixels to obtain a calculation result, and the calculation result can be used as the average brightness value of the grayscale area. Then, the ratio between the target brightness value pre-calibrated for the grayscale area and the average brightness value can be used as the initial adjustment information.

[0117] Step S304, determining first adjustment information, second adjustment information and third adjustment information based on the plurality of initial adjustment information.

[0118] Step S305, determining a first exposure parameter according to the first adjustment information, determining a second exposure parameter according to the second adjustment information, and determining a third exposure parameter according to the third adjustment information, wherein exposure durations of different exposure parameters are different.

[0119] Step S306, processing the first image according to the first exposure parameter, the second exposure parameter and the third exposure parameter to obtain a target image.

[0120] For the description of steps S304 - S306 , please refer to the above embodiment for details, which will not be repeated here.

[0121] In this embodiment, by acquiring a first image, wherein the first image includes a plurality of pixels, and determining initial adjustment information of each grayscale 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 the plurality of initial adjustment information, determining a first exposure parameter according to the first adjustment information, determining a second exposure parameter according to the second adjustment information, and determining a third exposure parameter according to the third adjustment information, wherein the exposure durations of different exposure parameters are different, and processing the first image according to the first exposure parameter, the second exposure parameter, and the third exposure parameter, a target image is obtained. Exposure control can be performed flexibly to improve image exposure effect. By determining the grayscale region to which the pixel belongs based on the brightness value of the pixel and the boundary brightness value of the grayscale region, and determining the initial adjustment information of the grayscale region according to the brightness value of the pixel and the number of pixels contained in each grayscale region, the calculation accuracy of the initial adjustment information is effectively improved, and accurate indexing of the exposure parameter is supported.

[0122] Figure 5A schematic flow chart of another exposure control method provided by an embodiment of the present disclosure.

[0123] like Figure 5 As shown, the exposure control method comprises the following steps:

[0124] Step S501: Acquire a first image, where the first image includes a plurality of pixels.

[0125] Step S502: determining initial adjustment information of each grayscale area based on a plurality of pixels and the brightness value of each pixel.

[0126] For the description of steps S501 - S502 , please refer to the above embodiment, which will not be repeated here.

[0127] Step S503: determine median adjustment information of the multiple initial adjustment information, and use the median adjustment information as the second adjustment information.

[0128] The median adjustment information may be obtained by calculating the median of multiple initial adjustment information. For example, if 5 grayscale areas are preset, there are 5 initial adjustment information corresponding to them. The 5 initial adjustment information may be sorted, and the initial adjustment information in the middle position may be taken from the 5 sorted initial adjustment information as the median adjustment information. If 6 grayscale areas are preset, there are 6 initial adjustment information corresponding to them. The 6 initial adjustment information may be sorted, and 2 initial adjustment information in the middle position may be taken from the 6 sorted initial adjustment information, and the 2 initial adjustment information may be averaged, and the calculated result may be 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 a suitable median exposure parameter.

[0130] Step S504: determine a first portion of initial adjustment information that is smaller than the median adjustment information from the multiple initial adjustment information, and average the first portion of initial adjustment information to obtain first adjustment information.

[0131] After the median adjustment information is calculated, the first part of initial adjustment information smaller than the median adjustment information can be determined from the multiple initial adjustment information, and the first part of initial adjustment information is averaged to obtain the first adjustment information, so that the first adjustment information can be retrieved to obtain the appropriate short exposure parameters.

[0132] Step S505 , determining a second portion of initial adjustment information greater than the median adjustment information from the multiple initial adjustment information, and averaging the second portion of initial adjustment information to obtain third adjustment information.

[0133] After the median adjustment information is obtained by calculation, a second part of initial adjustment information greater than the median adjustment information can be determined from the multiple initial adjustment information, and the second part of initial adjustment information is averaged to obtain the third adjustment information, so that the third adjustment information can be retrieved to obtain appropriate long exposure parameters.

[0134] Step S506, determining a first exposure parameter according to the first adjustment information, determining a second exposure parameter according to the second adjustment information, and determining a third exposure parameter according to the third adjustment information, wherein exposure durations of different exposure parameters are different.

[0135] An example of the above description is as follows:

[0136] The average luminance value average_luma (an optional example of the average luminance value of a grayscale region) of each luminance region (an optional example of a grayscale region) can be calculated:

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

[0138] Among them, mean() represents the mean operation, i represents the index of the brightness area, start_luma[i] and end_luma[i] represent the boundary brightness values ​​of the i-th brightness area.

[0139] Then, the adjustment ratio adjust_ratio is calculated for each brightness area (an optional example of initial adjustment information for grayscale areas):

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

[0141] Wherein, i takes the value of 1, 2, ..., N. target_luma[i] represents the target brightness value of the i-th brightness area.

[0142] Secondly, sort the N adjust_ratios (an optional example of the initial adjustment information of the grayscale area), take the median (an optional example of the median adjustment information) and assign it to the middle exposure adjustment coefficient middle_adjust_ratio (an optional example of the second adjustment information):

[0143] middle_adjust_ratio=median(adjust_ratio);

[0144] Among them, median() represents the median operation.

[0145] Next, for an adjust_ratio (an optional example of the first part of the initial adjustment information) that is less than middle_adjust_ratio, take the average value and assign it to the short exposure adjustment coefficient short_adjust_ratio (an optional example of the first adjustment information):

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

[0147] Here, mean(adjust_ratio[i] < middle_adjust_ratio) represents taking the average value of adjust_ratio that is less than middle_adjust_ratio.

[0148] In addition, for an adjust_ratio (an optional example of the second part of the initial adjustment information) that is greater than middle_adjust_ratio, take the average value and assign it to the long exposure adjustment coefficient long_adjust_ratio (an optional example of the third adjustment information):

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

[0150] Here, mean(adjust_ratio[i] > middle_adjust_ratio) represents taking the average value of adjust_ratio that is greater than middle_adjust_ratio.

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

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

[0153] For the descriptions of steps S506 - S507, specific reference can be made to the above embodiments, which will not be elaborated here.

[0154] In this embodiment, by acquiring a first image, wherein the first image includes a plurality of pixels, determining initial adjustment information of each grayscale 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 the plurality of initial adjustment information, determining a first exposure parameter based on the first adjustment information, determining a second exposure parameter based on the second adjustment information, and determining a third exposure parameter based on the third adjustment information, wherein the exposure durations of different exposure parameters are different, and processing the first image based on the first exposure parameter, the second exposure parameter, and the third exposure parameter, a target image is obtained. Exposure control can be flexibly performed to improve image exposure effect.

[0155] In some embodiments of the present disclosure, in the process of processing a first image according to first exposure parameters, second exposure parameters, and third exposure parameters to obtain a target image, the first exposure parameters, the second exposure parameters, and the third exposure parameters may be provided to an image sensor, wherein the image sensor processes the first image based on the first exposure parameters, the second exposure parameters, and the third exposure parameters, respectively, to obtain corresponding second images, third images, and fourth images, and the second image, the third image, and the fourth image are synthesized based on the 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). Then, based on the ISP, the short exposure frame, the medium exposure frame, and the long exposure frame are fused in a high dynamic range (HDR) to obtain a target image.

[0157] In some embodiments of the present disclosure, in the process of processing the first image according to the first exposure parameter, the second exposure parameter, and the third exposure parameter to obtain the target image, the exposure application type of the first image can be determined, and the first image can be 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. This allows the exposure control method to be flexibly applicable to personalized exposure application types, further improving the flexibility and accuracy of exposure control.

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

[0159] In some embodiments of the present disclosure, when the exposure application type is single exposure, a first exposure parameter is provided to an image sensor, wherein the image sensor processes a first image based on the first exposure parameter to obtain a second image, and the second exposure parameter and a third exposure parameter are provided 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 a target image.

[0160] In some embodiments of the present disclosure, when the exposure application type is 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 the 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 multiple exposures may specifically be, for example, an exposure application type of two exposures, and there is no limitation to this.

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

[0163] Therefore, the exposure control method provided in the embodiment of the present disclosure can flexibly control the brightness of each grayscale of the image, avoid dark areas being dead black and highlights being overexposed, and has good time domain stability.

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

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

[0166] The acquisition module 601 is used to acquire a first image, wherein the first image includes a plurality of pixels.

[0167] The first determination module 602 is used to determine initial adjustment information of each grayscale area based on a plurality of pixels and a brightness value of each pixel.

[0168] The second determining module 603 is used to determine the first adjustment information, the second adjustment information and the third adjustment information based on the multiple initial adjustment information.

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

[0170] The processing module 605 is used 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 increase sequentially.

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

[0173] Determine the grayscale region to which the pixel belongs based on the brightness value of the pixel and the boundary brightness value of the grayscale region;

[0174] The initial adjustment information of the grayscale area is determined according to the brightness value and the number of pixels contained in each grayscale area.

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

[0176] Obtain the target brightness value pre-calibrated for the grayscale area;

[0177] Calculate the average brightness value of the grayscale area according to the brightness values ​​and number of pixels contained in the grayscale area;

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

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

[0180] Determine median adjustment information of the plurality of initial adjustment information, and use the median adjustment information as second adjustment information;

[0181] Determine a first portion of initial adjustment information that is smaller than the median adjustment information from the plurality of initial adjustment information, and average the first portion of initial adjustment information to obtain first adjustment information;

[0182] A second portion of initial adjustment information greater than the median adjustment information is determined from the multiple initial adjustment information, and the second portion of initial adjustment information is averaged to obtain third adjustment information.

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

[0184] Providing 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 to obtain the corresponding second image, the third image and the fourth image;

[0185] The second image, the third image and the fourth image are synthesized based on an image processor to obtain a target image.

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

[0187] determining an exposure application type for the first image;

[0188] 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.

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

[0190] When the exposure application type is single exposure, providing a 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;

[0191] 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.

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

[0193] In the case where the exposure application type is multi-exposure, providing 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] 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 a target image.

[0195] It should be noted that the above explanation of the exposure control method is also applicable to the exposure control device of this embodiment and will not be repeated here.

[0196] In this embodiment, by acquiring a first image, wherein the first image includes a plurality of pixels, determining initial adjustment information of each grayscale 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 the plurality of initial adjustment information, determining a first exposure parameter based on the first adjustment information, determining a second exposure parameter based on the second adjustment information, and determining a third exposure parameter based on the third adjustment information, wherein the exposure durations of different exposure parameters are different, and processing the first image based on the first exposure parameter, the second exposure parameter, and the third exposure parameter, a target image is obtained. Exposure control can be flexibly performed to improve image exposure effect.

[0197] Figure 7 A block diagram of an exemplary electronic device suitable for implementing embodiments of the present disclosure is shown. Figure 7 The electronic device 12 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

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

[0199] The bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor or a local bus using any of a variety of bus structures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnection (PCI) bus.

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

[0201] The 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. The electronic device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 7 Not shown, often called a "hard drive").

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

[0203] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in the memory 28, such program modules 42 including but not limited to an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 42 generally perform the functions and / or methods of the embodiments described in the present disclosure.

[0204] The electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), may also communicate with one or more devices that enable the human body to interact with the electronic device 12, and / or communicate with any device that enables the electronic device 12 to communicate with one or more other computing devices (e.g., network card, modem, etc.). Such communication may be performed through an input / output (I / O) interface 22. In addition, the electronic device 12 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 20. As shown, the network adapter 20 communicates with other modules of the electronic device 12 through a bus 18. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0205] The processing unit 16 executes the programs stored in the memory 28 to perform various functional applications and data processing, such as implementing the exposure control method mentioned in the above embodiments.

[0206] In order to implement the above embodiments, the present disclosure also proposes an electronic device, including: a processor, and a memory communicatively connected to the processor; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory to implement the method provided by the above embodiments.

[0207] In order to implement the above embodiments, the present disclosure further proposes a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the methods provided by the above embodiments.

[0208] In order to implement the above embodiments, the present disclosure also proposes a computer program product, including a computer program, which implements the methods provided by the above embodiments when executed by a processor.

[0209] In order to implement the above embodiments, the present disclosure further proposes a processor, which is used to call a computer to execute instructions to execute the methods provided by the above embodiments.

[0210] In some embodiments of the present disclosure, the processor may be, for example, a CPU, an ISP, etc., without limitation.

[0211] Figure 8 is a schematic diagram of the structure of the chip proposed in the embodiment of the present disclosure. Figure 8The structure of the chip 800 is shown, but is not limited to this.

[0212] The chip 800 includes a processing circuit 801 , and the processing circuit 801 is configured to execute 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 to 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 method, and the processing circuit 801 performs other steps.

[0215] In some embodiments, terms such as interface circuit, interface, transceiver pin, and transceiver may be used interchangeably.

[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 may be outside the chip 800.

[0217] In some embodiments, the chip may be, for example, an image processing chip (Image Signal Processor, ISP), which is not limited.

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

[0219] In addition, the word "exemplary" is used herein to indicate serving as an example, instance, or diagram. Any aspect or design described as "exemplary" in this article is not necessarily understood to be advantageous compared to other aspects or designs. On the contrary, the use of the word exemplary is intended to present concepts in a specific way. As used herein, the term "or" is intended to represent an inclusive "or" rather than an exclusive "or". That is, unless otherwise specified or clear from the context, "X applies A or B" is intended to represent any one of the natural inclusive arrangements. That is, if X applies A; X applies B; or X applies both A and B, "X applies A or B" is satisfied under any of the aforementioned examples. In addition, unless otherwise specified or clearly pointed to a singular form from the context, the articles "one" and "an" as used in this application and the appended claims are generally understood to mean "one or more".

[0220] Likewise, although the present disclosure has been shown and described with respect to one or more implementations, equivalent variations and modifications will occur to those skilled in the art after reading and understanding the specification and drawings. The present disclosure includes all such modifications and variations and is limited only by the scope of the claims. In particular, with respect to the various functions performed by the components (e.g., elements, resources, etc.) described above, unless otherwise noted, the terms used to describe such components are intended to correspond to any component (functionally equivalent) that performs the specific functions of the described components, even if the structure is not equivalent to the disclosed structure. In addition, although the specific features of the present disclosure may have been disclosed with respect to only one of several implementations, such features may be combined with one or more other features of other implementations as may be desired and conducive to any given or specific application. In addition, with respect to "including", "having", "having", "having", or variations thereof used in the specific embodiments or claims, such terms are intended to be inclusive in a manner similar to the term "comprising".

[0221] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0222] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. An exposure control method, characterized in that: The method comprises: Acquire a first image, wherein the first image includes a plurality of pixels; Determining initial adjustment information of each grayscale area based on the plurality of pixels and a brightness value of each of the pixels; Based on the plurality of the initial adjustment information, determining first adjustment information, second adjustment information and third adjustment information; determining a first exposure parameter according to the first adjustment information, determining a second exposure parameter according to the second adjustment information, and determining a third exposure parameter according to the third adjustment information, wherein exposure durations of different exposure parameters are 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.

2. The method according to claim 1, characterized in that: 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 increase in sequence.

3. The method according to claim 1, characterized in that The determining of initial adjustment information of each grayscale area based on the plurality of pixels and the brightness value of each pixel includes: Determine the grayscale region to which the pixel belongs based on the brightness value of the pixel and the boundary brightness value of the grayscale region; Initial adjustment information of the grayscale area is determined according to the brightness value and the number of pixels contained in each grayscale area.

4. The method according to claim 3, characterized in that The determining of the initial adjustment information of the grayscale area according to the brightness value and the number of pixels contained in each grayscale area includes: Obtaining a target brightness value pre-calibrated for the grayscale area; Calculating an average brightness value of the grayscale area according to the brightness values ​​and the number of pixels contained in the grayscale area; The ratio between the target brightness value and the average brightness value is used as the initial adjustment information.

5. The method according to claim 3, characterized in that: The determining the first adjustment information, the second adjustment information and the third adjustment information based on the plurality of initial adjustment information comprises: Determine median adjustment information of the plurality of initial adjustment information, and use the median adjustment information as the second adjustment information; Determine a first portion of initial adjustment information that is smaller than the median adjustment information from the plurality of initial adjustment information, and average the first portion of initial adjustment information to obtain the first adjustment information; A second portion of initial adjustment information greater than the median adjustment information is determined from the multiple initial adjustment information, and the second portion of initial adjustment information is averaged to obtain the third adjustment information.

6. The method according to claim 1, characterized in that The step of processing the first image according to the first exposure parameter, the second exposure parameter, and the third exposure parameter to obtain a target image includes: 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 a corresponding second image, a third image, and a fourth image; The second image, the third image and the fourth image are synthesized based on an image processor to obtain the target image.

7. The method according to claim 1, characterized in that The step of processing the first image according to the first exposure parameter, the second exposure parameter, and the third exposure parameter to obtain a target image includes: determining an exposure application type for the first image; 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.

8. The method according to claim 7, characterized in that The step of 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 includes: When 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; The second exposure parameter and the third exposure parameter are provided 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 according to claim 7, characterized in that: The step of 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 includes: 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; The third exposure parameter is provided 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 in that: The device comprises: An acquisition module, configured to acquire a first image, wherein the first image includes a plurality of pixels; A first determination module, configured to determine initial adjustment information of each grayscale area based on the plurality of pixels and a brightness value of each pixel; A second determining module, configured to determine first adjustment information, second adjustment information and third adjustment information based on the plurality of initial adjustment information; a third determining module, 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; A processing module is used 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, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 9.

12. A chip, characterized in that: The chip comprises a processing circuit configured to perform 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-executable instructions, which are used to implement the method according to any one of claims 1 to 9 when executed by a processor.

14. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 9 when being executed by a processor.

15. A processor, characterized in that: The processor is configured to call a computer-executable instruction to execute the method according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Exposure control method and device

    CN106713778A

  • Exposure parameter adjusting method and device

    CN111741227A

  • Automatic exposure adjusting method and system

    CN112312037A

  • Image processing method and apparatus

    IN202027033370A

  • Exposure control mechanism for camera

    JP1991254582A