Anti-overexposure processing method, device, image acquisition device and storage medium

By dividing the brightness areas and adjusting the camera configuration parameters during the image acquisition process, the overexposure problem caused by brightness mismatch is solved, and the image quality and user experience are improved.

CN115767260BActive Publication Date: 2025-09-05CHENGDU GUOKE MICROELECTRONICS CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211643837.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-20
Publication Date
2025-09-05
Estimated Expiration
2042-12-20

AI Technical Summary

Technical Problem

During the image acquisition process, existing technologies are prone to overexposure when brightness does not match, resulting in poor image quality, especially in scenes with high brightness, where people or objects in the overexposed area cannot be identified.

Method used

By obtaining the preview image from the camera and dividing it into different brightness areas, the number of pixels in each area is counted to determine whether overexposure occurs. Then, based on the ratio threshold, camera configuration parameters are adjusted, such as brightness adjustment, using strong light suppression and exposure weight table, to prevent overexposure.

Benefits of technology

It effectively prevents image overexposure, improves image quality, makes people or objects in the area clearly visible, and enhances user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115767260B_ABST
    Figure CN115767260B_ABST
Patent Text Reader

Abstract

The embodiments of the present application provide an anti-overexposure processing method, apparatus, image acquisition device, and storage medium, relating to the field of image processing technology. The method involves obtaining a preview image from a camera and dividing the preview image into different brightness regions; obtaining the number of pixels in each brightness region to determine whether the preview image is overexposed; and if it is determined that the preview image is overexposed, adjusting the camera configuration parameters to perform anti-overexposure processing. The automatic exposure brightness is adjusted in a timely manner to prevent overexposure of the image, allowing people or objects in the region to be clearly visible, thereby improving image quality and enhancing the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to an anti-overexposure processing method, device, image acquisition equipment and storage medium. Background Art

[0002] In daily shooting, since the light source will change with a certain frequency and period over time, and the video is composed of frames, when the exposure time of each frame does not match the frequency of the light source, alternating light and dark water ripples will appear.

[0003] To prevent this type of moire, anti-flicker mechanisms are often employed to ensure consistent light intensity across each frame, for example by limiting the minimum auto-exposure time to 10ms. However, this exposure adjustment method can lead to overexposure in brightly lit scenes, resulting in poor image quality and even the inability to recognize people or objects in overexposed areas. Summary of the Invention

[0004] In order to solve the above technical problems, the embodiments of the present application provide an anti-overexposure processing method, device, image acquisition device and storage medium.

[0005] In a first aspect, an embodiment of the present application provides an anti-overexposure processing method, the method comprising:

[0006] Obtaining a preview image from a camera, and dividing the preview image into different brightness areas;

[0007] Obtaining the number of pixels in each brightness area to determine whether the preview image is overexposed;

[0008] If it is determined that the preview image is overexposed, the camera configuration parameters are adjusted to perform anti-overexposure processing.

[0009] According to a specific embodiment disclosed in the present application, the step of dividing the preview image into different brightness areas includes:

[0010] Obtaining the brightness value of each pixel of the preview image;

[0011] Based on the brightness value of each pixel of the preview image, the preview image is divided into a bright area and a dark area according to a preset bright area threshold value and a dark area threshold value.

[0012] According to a specific embodiment disclosed in the present application, the step of obtaining the number of pixels in each brightness area and determining whether the preview image is overexposed includes:

[0013] Obtaining a first number of pixels in the dark area and a second number of pixels in the bright area in the preview image;

[0014] Calculating a first ratio of a first number of pixels in the dark area to a total number of pixels in the preview image, and a second ratio of a second number of pixels in the bright area to a total number of pixels in the preview image;

[0015] Based on the first ratio and the second ratio, it is determined whether the preview image is overexposed.

[0016] According to a specific embodiment disclosed in the present application, the step of determining whether the preview image is overexposed based on the first ratio and the second ratio includes:

[0017] Get the preset dark threshold and overexposure threshold;

[0018] respectively comparing the first ratio with the too dark threshold, and the second ratio with the overexposure threshold;

[0019] If the first ratio is smaller than the too dark threshold and the second ratio is larger than the overexposure threshold, it is determined that the preview image is overexposed.

[0020] According to a specific embodiment disclosed in the present application, the step of adjusting camera configuration parameters to perform overexposure prevention processing includes:

[0021] Obtaining a preset initial brightness value of the preview image;

[0022] Subtracting a preset deviation value from the preset initial brightness value to obtain a target brightness value;

[0023] The brightness of the camera during automatic exposure in an acquisition state is adjusted according to the target brightness value.

[0024] According to a specific embodiment disclosed in the present application, the step of adjusting camera configuration parameters to perform overexposure prevention processing includes:

[0025] Get the strong light suppression command;

[0026] A strong light suppression operation is performed on the preview image according to the strong light suppression command to obtain a strong light suppressed preview image.

[0027] According to a specific embodiment disclosed in the present application, the step of adjusting camera configuration parameters to perform overexposure prevention processing includes:

[0028] confirming a position of an overexposed area of ​​the preview image;

[0029] An exposure weight table is determined according to the position of the overexposed area, and a weight value of the overexposed area is adjusted according to the exposure weight table.

[0030] In a second aspect, an embodiment of the present application provides an anti-overexposure processing device, the device comprising:

[0031] A division module, configured to obtain a preview image from a camera and divide the preview image into different brightness areas;

[0032] a judgment module, configured to obtain the number of pixels in each brightness area and judge whether the preview image is overexposed;

[0033] The processing module is used to adjust the camera configuration parameters to perform anti-overexposure processing if it is determined that the preview image is overexposed.

[0034] In a third aspect, an embodiment of the present application provides an image acquisition device, including a memory and a processor, wherein the memory is used to store a computer program, and when the computer program is run by the processor, the anti-overexposure processing method provided in the first aspect is executed.

[0035] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program, which, when running on a processor, executes the overexposure prevention method provided in the first aspect.

[0036] The anti-overexposure processing method provided by this application obtains a preview image from the camera and divides the preview image into different brightness regions; obtains the number of pixels in each brightness region to determine whether the preview image is overexposed; if the preview image is determined to be overexposed, the camera configuration parameters are adjusted to perform anti-overexposure processing. The automatic exposure brightness is adjusted in a timely manner to prevent overexposure in the image, allowing people or objects in the region to be clearly visible, thereby improving image quality and enhancing the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the technical solution of this application, the following is a brief introduction to the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of this application and should not be regarded as limiting the scope of protection of this application. In each of the drawings, similar components are numbered similarly.

[0038] Figure 1 A schematic diagram of a process flow of an overexposure prevention method provided in an embodiment of the present application is shown;

[0039] Figure 2 A schematic structural diagram of an overexposure prevention device provided in an embodiment of the present application is shown;

[0040] Figure 3A schematic structural diagram of an image acquisition device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0041] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments.

[0042] The components of the embodiments of the present application generally described and illustrated in the drawings herein may be arranged and designed in a variety of different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the claimed application, but rather merely represents selected embodiments of the present application. All other embodiments obtained by those skilled in the art based on the embodiments of the present application without creative effort are within the scope of protection of the present application.

[0043] Hereinafter, the terms "including", "having" and their cognates, which may be used in various embodiments of the present application, are intended only to indicate specific features, numbers, steps, operations, elements, components or combinations of the foregoing items, and should not be understood as first excluding the existence of one or more other features, numbers, steps, operations, elements, components or combinations of the foregoing items or the possibility of adding one or more features, numbers, steps, operations, elements, components or combinations of the foregoing items.

[0044] Furthermore, the terms “first,” “second,” “third,” etc., are merely used for distinguishing descriptions and are not to be understood as indicating or implying relative importance.

[0045] Unless otherwise defined, all terms used herein (including technical and scientific terms) have the same meaning as commonly understood by those skilled in the art to which the various embodiments of the present application belong. The terms (such as those defined in generally used dictionaries) will be interpreted as having the same meaning as in the context of the relevant technical field and will not be interpreted as having an idealized meaning or an overly formal meaning unless clearly defined in the various embodiments of the present application.

[0046] Example 1

[0047] The embodiment of the present disclosure provides an anti-overexposure processing method.

[0048] For details, see Figure 1 , the anti-overexposure processing method includes:

[0049] Step S101 : obtaining a preview image from a camera, and dividing the preview image into different brightness areas.

[0050] Specifically, the preview image refers to an image obtained by a camera through pre-capture, and the preview image can be divided into different brightness areas according to the brightness value of each pixel.

[0051] The step of dividing the preview image into different brightness areas includes:

[0052] Obtaining the brightness value of each pixel of the preview image; and dividing the preview image into a bright area and a dark area according to a preset bright area threshold and a dark area threshold based on the brightness value of each pixel of the preview image.

[0053] Specifically, the brightness value of each pixel of the preview image is first obtained, and the preview image is divided into different brightness areas according to the brightness value of each pixel of the preview image and the preset partition critical value. For example, when the brightness value of a certain pixel is greater than or equal to the bright area critical value, the pixel is determined to be a bright area pixel; when the brightness value of a certain pixel is less than or equal to the dark area critical value, the pixel is determined to be a dark area pixel.

[0054] In a specific embodiment, a brightness histogram can be used to divide the preview image into different brightness regions. The brightness histogram is a distribution diagram of the preview image obtained by the camera through pre-capture. The horizontal axis of the brightness histogram represents brightness, and the vertical axis represents the number of pixels. The brightness histogram graphically represents the number of pixels accumulated in any region of the preview image. The brightness histogram can be used to count the number of pixels in the preview image at different brightness ranges.

[0055] Taking 10-bit data as an example, the brightness of the entire preview image is divided into 1024 steps through the brightness histogram. The critical value of the bright area is 900, and the critical value of the dark area is 200. Therefore, the preview image can be divided into three areas: bright area (900-1023), middle area (201-899), and dark area (0-200).

[0056] Step S102: obtaining the number of pixels in each brightness area and determining whether the preview image is overexposed.

[0057] The step of obtaining the number of pixels in each brightness area and determining whether the preview image is overexposed includes:

[0058] Obtain a first number of pixels in the dark area and a second number of pixels in the bright area in the preview image; calculate a first ratio of the first number of pixels in the dark area to the total number of pixels in the preview image, and a second ratio of the second number of pixels in the bright area to the total number of pixels in the preview image; and determine whether the preview image is overexposed based on the first ratio and the second ratio.

[0059] Specifically, the number of first pixels in the dark area and the number of second pixels in the bright area in the preview image are counted respectively, and the proportions of the first pixels and the second pixels in the total number of pixels are calculated respectively. According to the proportions, it can be determined whether the preview image is overexposed.

[0060] The step of determining whether the preview image is overexposed based on the first ratio and the second ratio includes:

[0061] Obtaining a preset over-dark threshold and over-exposure threshold; comparing the first ratio with the over-dark threshold, and the second ratio with the over-exposure threshold; if the first ratio is less than the over-dark threshold and the second ratio is greater than the over-exposure threshold, determining that the preview image is overexposed.

[0062] Specifically, the first ratio and the too-dark threshold, and the second ratio and the overexposure threshold, can be compared respectively. When the first ratio is less than the too-dark threshold and / or the second ratio is greater than the overexposure threshold, it can be determined that the preview image is overexposed. Of course, to improve accuracy, in specific applications, it is preferred to determine that the preview image is overexposed when the first ratio is less than the too-dark threshold and the second ratio is greater than the overexposure threshold.

[0063] Step S103: If it is determined that the preview image is overexposed, the camera configuration parameters are adjusted to perform overexposure prevention processing.

[0064] Specifically, when it is determined that the preview image is overexposed, it is necessary to adjust the adjustment parameters of the automatic overexposure to prevent the picture from being overexposed. In the prior art, internal factors are often achieved by reducing the gain, reducing the exposure time, or reducing the brightness during automatic exposure, while external factors are often achieved by reducing the lens aperture size or reducing the brightness of the external environment. In actual applications, the brightness of the external environment is fixed and the aperture is not variable, so internal factors are often used to prevent the picture from being overexposed. In this embodiment, after the anti-flicker mechanism is turned on and the brightness of the shooting scene environment is high, the exposure time needs to be set to the minimum value, so the picture can be prevented from being overexposed by adjusting the brightness during automatic exposure.

[0065] In some embodiments, the step of adjusting camera configuration parameters to prevent overexposure includes:

[0066] Obtaining a preset initial brightness value of the preview image; subtracting a preset deviation value from the preset initial brightness value to obtain a target brightness value; and adjusting the brightness of the camera during automatic exposure in an acquisition state according to the target brightness value.

[0067] In a specific implementation, the camera's exposure parameters in the acquisition state include shutter speed, aperture, sensitivity, and brightness during automatic exposure. First, the camera's preset brightness value in the automatic exposure state is obtained. This preset brightness value is referred to as the initial brightness value. When it is determined that the preview image is overexposed, a preset deviation value is subtracted from the initial brightness to obtain a target brightness value. The camera's brightness during automatic exposure in the acquisition state is adjusted based on this target brightness value to prevent overexposure. Furthermore, when switching from an overexposed scene to a non-overexposed scene, the initial brightness can be used directly.

[0068] In some embodiments, the step of adjusting camera configuration parameters to prevent overexposure includes:

[0069] Obtain a strong light suppression command; and perform a strong light suppression operation on the preview image according to the strong light suppression command to obtain a preview image after the strong light suppression.

[0070] Specifically, the "high light suppression" function involves processing the video information of the bright parts of the image through DSP, adjusting the video signal brightness to a normal range, and avoiding excessive contrast between the front and back of the same image. In this embodiment, by enabling the high light suppression function, the preview image is subjected to a high light suppression operation to prevent overexposure.

[0071] In some embodiments, the step of adjusting camera configuration parameters to prevent overexposure includes:

[0072] Confirm the position of the overexposed area of ​​the preview image; determine an exposure weight table according to the position of the overexposed area, and adjust the weight value of the overexposed area according to the exposure weight table.

[0073] Specifically, the overexposed area can be processed by an image signal processor based on a data size set by the processor. The image signal processor then analyzes the processed overexposed area to count the number of different pixel types within each pixel unit in the overexposed area, and determines the ratio of the number of pixels of the preset type to the total number of pixels in the corresponding pixel unit. Based on this ratio, the image signal processor then determines an exposure weight for each pixel unit, thereby generating an exposure weight table. Once the exposure weight table is obtained, the exposure value of the overexposed area can be adjusted accordingly to prevent overexposure.

[0074] In some embodiments, the image acquisition device includes a sensor, which is used to send an ambient brightness adjustment signal when it senses that the ambient brightness exceeds a preset overexposure threshold.

[0075] Specifically, in some special scenarios, there is a signal receiver in the surrounding environment. When the ambient brightness adjustment signal is received, the brightness of the surrounding light source can be automatically adjusted, so that the captured image of the image acquisition device is not overexposed.

[0076] The overexposure prevention method provided in this embodiment obtains a preview image from a camera and divides it into different brightness regions. The method then determines whether the preview image is overexposed by determining the number of pixels in each brightness region. If the preview image is overexposed, the method then adjusts the camera configuration parameters to prevent overexposure. By timely adjusting the camera configuration parameters to prevent overexposure, the method improves image quality and enhances the user experience.

[0077] Example 2

[0078] In addition, the present disclosure provides an anti-overexposure processing device 200, see Figure 2 , the device comprises:

[0079] A division module 201 is used to obtain a preview image from a camera and divide the preview image into different brightness areas;

[0080] A determination module 202 is configured to obtain the number of pixels in each brightness region and determine whether the preview image is overexposed;

[0081] The processing module 203 is configured to adjust the camera configuration parameters to perform an anti-overexposure process if it is determined that the preview image is overexposed.

[0082] The overexposure prevention device 200 provided in this embodiment can execute the overexposure prevention method shown in Example 1, and will not be described again here to avoid repetition.

[0083] The overexposure prevention device provided in this embodiment obtains a preview image from a camera and divides it into different brightness regions. It then determines the number of pixels in each brightness region to determine whether the preview image is overexposed. If the preview image is overexposed, it adjusts the camera configuration parameters to prevent overexposure. By timely adjusting the camera configuration parameters to prevent overexposure, image quality is improved, enhancing the user experience.

[0084] Example 3

[0085] The image acquisition device provided in this embodiment includes a memory and a processor. The memory stores a computer program. When the computer program runs on the processor, the overexposure prevention method provided in the above embodiment 1 is executed.

[0086] For details, see Figure 3The image acquisition device 300 includes: a transceiver 301, a bus interface and a processor 302.

[0087] In the embodiment of the present invention, the image acquisition device 300 further includes a memory 303. Figure 3 In the embodiment, the bus architecture may include any number of interconnected buses and bridges, specifically linking various circuits such as one or more processors represented by processor 302 and memory represented by memory 303. The bus architecture may also link various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art and therefore will not be described further herein. The bus interface provides an interface. The transceiver 301 may be a plurality of components, i.e., a transmitter and a receiver, providing a unit for communicating with various other devices over a transmission medium. The processor 302 is responsible for managing the bus architecture and general processing, and the memory 303 may store data used by the processor 302 when performing operations.

[0088] The image acquisition device 300 provided in the embodiment of the present invention can implement the overexposure prevention method shown in Example 1, which will not be described again here to avoid repetition.

[0089] Example 4

[0090] In this embodiment, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0091] The computer-readable storage medium provided in this embodiment 4 can execute the overexposure prevention method shown in embodiment 1, and will not be described again here to avoid repetition.

[0092] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or terminal comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or terminal. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or terminal comprising the element.

[0093] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0094] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.

Claims

1. A method for preventing overexposure, characterized in that: The method comprises: Obtaining a preview image from a camera with an anti-flicker mechanism enabled, and dividing the preview image into different brightness regions; Obtaining the number of pixels in each brightness area to determine whether the preview image is overexposed; If it is determined that the preview image is overexposed, adjusting the camera configuration parameters to perform anti-overexposure processing; The step of adjusting the camera configuration parameters to prevent overexposure includes: Acquire a preset initial brightness value of the preview image; the preset initial brightness value is a brightness value preset by the camera in an automatic exposure state; When it is determined that the preview image is overexposed, subtracting a preset deviation value from the preset initial brightness value to obtain a target brightness value; The brightness of the camera during automatic exposure in an acquisition state is adjusted according to the target brightness value.

2. The method according to claim 1, characterized in that The step of dividing the preview image into different brightness areas includes: Obtaining the brightness value of each pixel of the preview image; Based on the brightness value of each pixel of the preview image, the preview image is divided into a bright area and a dark area according to a preset bright area threshold value and a dark area threshold value.

3. The method according to claim 2, characterized in that The step of obtaining the number of pixels in each brightness area and determining whether the preview image is overexposed includes: Obtaining a first number of pixels in the dark area and a second number of pixels in the bright area in the preview image; Calculating a first ratio of a first number of pixels in the dark area to a total number of pixels in the preview image, and a second ratio of a second number of pixels in the bright area to a total number of pixels in the preview image; Based on the first ratio and the second ratio, it is determined whether the preview image is overexposed.

4. The method according to claim 3, characterized in that The step of determining whether the preview image is overexposed based on the first ratio and the second ratio includes: Get the preset dark threshold and overexposure threshold; comparing the first ratio with the too dark threshold, and the second ratio with the overexposure threshold; If the first ratio is smaller than the too dark threshold and the second ratio is larger than the overexposure threshold, it is determined that the preview image is overexposed.

5. The method according to claim 1, characterized in that The step of adjusting the camera configuration parameters to prevent overexposure includes: Get the strong light suppression command; A strong light suppression operation is performed on the preview image according to the strong light suppression command to obtain a strong light suppressed preview image.

6. The method according to claim 1, characterized in that The step of adjusting the camera configuration parameters to prevent overexposure includes: confirming a position of an overexposed area of ​​the preview image; An exposure weight table is determined according to the position of the overexposed area, and a weight value of the overexposed area is adjusted according to the exposure weight table.

7. An anti-overexposure treatment device, characterized in that: The device comprises: a division module, obtaining a preview image from a camera with an anti-flicker mechanism enabled, and dividing the preview image into different brightness areas; a judgment module, configured to obtain the number of pixels in each brightness area and judge whether the preview image is overexposed; A processing module, configured to adjust camera configuration parameters to perform anti-overexposure processing if it is determined that the preview image is overexposed; The processing module is further configured to obtain a preset initial brightness value for the preview image; the preset initial brightness value is a brightness value preset by the camera in an automatic exposure state; when it is determined that the preview image is overexposed, the preset deviation value is subtracted from the preset initial brightness value to obtain a target brightness value; and the brightness of the camera during automatic exposure in an acquisition state is adjusted according to the target brightness value.

8. An image acquisition device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and when the processor runs the computer program, the method for preventing overexposure according to any one of claims 1 to 6 is executed.

9. A computer-readable storage medium, characterized in that The device stores a computer program, which executes the overexposure prevention method according to any one of claims 1 to 6 when running on a processor.

Citation Information

Patent Citations

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

    CN112073645A