Shooting exposure control method and system based on single camera
The exposure control method for single cameras adjusts aperture, exposure time, and gain based on global brightness to address exposure issues in varying lighting, enabling high-quality imaging in complex conditions.
Patent Information
- Application Number
- CN202411385632.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-30
- Publication Date
- 2024-12-06
AI Technical Summary
Single cameras struggle to simultaneously capture high-quality images in complex lighting environments such as day and night due to exposure issues, leading to overexposure or underexposure, which complicates all-weather shooting tasks.
A shooting exposure control method and system for a single camera that automatically adjusts aperture size, exposure time, and exposure gain based on global brightness values to optimize exposure modes, using adaptive parameter adjustments to ensure normal exposure in varying lighting conditions.
Enables a single camera to capture images with normal exposure and high quality in complex lighting environments by classifying exposure modes and applying adaptive parameter adjustments, ensuring images fall within a normal brightness range.
Smart Images

Figure CN119094898A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of camera control, and in particular relates to a shooting exposure control method and system based on a single camera. Background Art
[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.
[0003] Exposure is the most basic and also the most important part of the photography process. It refers to the amount of light that enters the lens and shines on the photosensitive element in photography, which is controlled by a combination of aperture size, exposure time and exposure gain.
[0004] The gun camera placed on the tower to shoot the transmission line needs to complete all-weather shooting tasks in different scenes. There are many shooting scenes such as mountains or farmland with poor lighting conditions. The light intensity of these scenes at night is about 0.001l ux (i.e. starlight-level light intensity) through light measurement. In order to achieve starlight-level full-color night vision, a relatively large sensor must be selected, but the large sensor has the disadvantage of large light intake during the day and easy to cause overexposure, so that it is impossible to shoot during the day. To overcome this drawback, a large sensor can be used for night shooting and a small sensor can be used for day shooting. However, this solution will cause problems such as large equipment size, high cost and complex later maintenance. A single camera cannot simultaneously complete the shooting tasks in complex lighting environments such as day and night due to exposure problems. This is the difficulty of single camera all-weather shooting. Summary of the invention
[0005] In order to solve the above problems, the present invention proposes a shooting exposure control method and system based on a single camera, which automatically controls the exposure state of the single camera during all-weather shooting, optimizes the shooting effect, applies secondary shooting, and specifically selects the exposure state automatic control strategy and parameter adaptive adjustment function of the metering area, so as to enable the single camera to obtain images with normal exposure and output high-quality pictures in complex lighting environments.
[0006] According to some embodiments, a first solution of the present invention provides a shooting exposure control method based on a single camera, which adopts the following technical solution:
[0007] A shooting exposure control method based on a single camera, comprising:
[0008] Get a single frame image from a single camera;
[0009] Calculate the global brightness value of the acquired single-frame image, and determine the shooting exposure mode of the single camera when acquiring the secondary single-frame image;
[0010] If and only if the acquired exposure mode is the normal mode, the single frame image is a properly exposed image, otherwise the shooting exposure control of the single camera is performed;
[0011] Among them, in the process of performing shooting exposure control of a single camera, the aperture size, exposure time and exposure gain of the single camera are adjusted, and a secondary single-frame image is obtained based on the adjusted single camera; the shooting exposure mode of the single camera when obtaining the secondary single-frame image is combined with the acquired single-frame image and the secondary single-frame image to obtain the exposure image of the single camera, and complete the shooting exposure control of the single camera.
[0012] As a further technical limitation, in the process of obtaining the exposure image of a single camera, the global brightness value of the secondary single-frame image is calculated, and the global brightness value of the secondary single-frame image is compared with the global brightness value of the single-frame image. The exposure image of the single camera is determined based on the different shooting exposure modes of the single camera when obtaining the secondary single-frame image.
[0013] As a further technical limitation, the exposure mode includes at least a normal mode, an overexposure mode, a sunset mode and a night vision mode; the night vision threshold, the sunset threshold and the overexposure threshold are set in sequence according to the obtained global brightness value of the single-frame image; when the obtained global brightness value is less than the night vision threshold, the exposure mode of the single-frame image is the night vision mode; when the obtained global brightness value is between the night vision threshold and the sunset threshold, the exposure mode of the single-frame image is the sunset mode; when the obtained global brightness value is between the sunset threshold and the overexposure threshold, the exposure mode of the single-frame image is the normal mode; when the obtained global brightness value is greater than the overexposure mode, the exposure mode of the single-frame image is the overexposure mode.
[0014] As a further technical limitation, when the shooting exposure mode of the single camera is the overexposure mode when acquiring the secondary single-frame image, the aperture size and exposure gain of the single camera are adjusted to the minimum, and the global brightness of the secondary single-frame image during overexposure is suppressed by adjusting the exposure time. The correspondence between single-frame images with different global brightness means in the overexposure mode and different exposure times is determined, and the adaptive adjustment function of the exposure time parameters in the overexposure mode is fitted.
[0015] As a further technical limitation, when the shooting exposure mode of the single camera is sunset mode when acquiring the secondary single-frame image, the aperture size and exposure time of the single camera are adjusted to the maximum, and the global brightness of the secondary single-frame image when underexposed is improved by adjusting the exposure gain. The correspondence between single-frame images with different global brightness means in sunset mode and different exposure gains is determined, and the exposure gain parameter adaptive adjustment function in sunset mode is fitted.
[0016] As a further technical limitation, when the shooting exposure mode of the single camera is night vision mode when acquiring the secondary single-frame image, the aperture size and exposure time of the single camera are adjusted to the maximum, and the global brightness of the secondary single-frame image when underexposed is improved by adjusting the exposure gain. The correspondence between single-frame images with different global brightness means and different exposure gains in the night vision mode is determined, and the exposure gain parameter adaptive adjustment function in the night vision mode is fitted.
[0017] According to some embodiments, a second solution of the present invention provides a shooting exposure control system based on a single camera, which adopts the following technical solution:
[0018] A shooting exposure control system based on a single camera, comprising:
[0019] An acquisition module, configured to acquire a single-frame image from a single camera;
[0020] A determination module, configured to calculate a global brightness value of the acquired single-frame image, and determine a shooting exposure mode of a single camera when acquiring a secondary single-frame image;
[0021] A control module, which is configured to determine that the single-frame image is an image with proper exposure if and only if the acquired exposure mode is a normal mode, and otherwise perform shooting exposure control of a single camera;
[0022] Among them, in the process of performing shooting exposure control of a single camera, the aperture size, exposure time and exposure gain of the single camera are adjusted, and a secondary single-frame image is obtained based on the adjusted single camera; the shooting exposure mode of the single camera when obtaining the secondary single-frame image is combined with the acquired single-frame image and the secondary single-frame image to obtain the exposure image of the single camera, and complete the shooting exposure control of the single camera.
[0023] According to some embodiments, a third solution of the present invention provides a computer-readable storage medium, which adopts the following technical solution:
[0024] A computer-readable storage medium stores a program, which, when executed by a processor, implements the steps of the shooting exposure control method based on a single camera as described in the first solution of the present invention.
[0025] According to some embodiments, a fourth solution of the present invention provides an electronic device, which adopts the following technical solution:
[0026] An electronic device comprises a memory, a processor and a program stored in the memory and running on the processor, wherein when the processor executes the program, the steps in the shooting exposure control method based on a single camera as described in the first solution of the present invention are implemented.
[0027] According to some embodiments, a fifth solution of the present invention provides a computer program product, which adopts the following technical solution:
[0028] A computer program product includes software codes, wherein the program in the software codes executes the steps in the shooting exposure control method based on a single camera as described in the first solution of the present invention.
[0029] Compared with the prior art, the present invention has the following beneficial effects:
[0030] The present invention adopts a single camera to automatically control the exposure state during all-weather shooting, optimizes the shooting effect at the same time, applies secondary shooting, and specifically selects the exposure state automatic control strategy and parameter adaptive adjustment function of the metering area, which effectively solves the problem that a single camera cannot simultaneously complete the shooting tasks in complex lighting environments such as daytime and nighttime due to exposure problems, and enables a single camera to obtain images with normal exposure and output high-quality pictures in complex lighting environments.
[0031] The intensity of external light affects the imaging quality of the camera, but at the camera level, the aperture size, exposure time and exposure gain can also affect the amount of light entering, and then affect the final imaging quality; at the same time, the effective area of the captured image is concentrated in the middle of the image. If there is regional overexposure or point overexposure around the captured image, it will not have a significant impact on the visualization of the effective information of the image. The present invention classifies the exposure mode after measuring the single-frame image, and decides whether to shoot a secondary single-frame image after modifying the three parameters of aperture size, exposure time and exposure gain. After obtaining the secondary single-frame image, it is compared with the single-frame image in a specific photometric area according to different exposure modes, and finally outputs an image with a brightness mean within the normal mode range. The present invention applies a newly fitted parameter adaptive adjustment function when modifying the three parameters of aperture size, exposure time and exposure gain, especially fitting a parameter adaptive adjustment function with a slope change in the night vision mode; selects different photometric areas in a targeted manner according to different exposure modes; ensures that the brightness mean of the secondary single-frame image taken after adjusting the parameters in different exposure modes with different brightness means is within the normal mode range. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] The drawings in the specification that constitute a part of this embodiment are used to provide a further understanding of this embodiment. The schematic embodiments of this embodiment and their descriptions are used to explain this embodiment and do not constitute improper limitations on this embodiment.
[0033] Figure 1 This is a flow chart of a shooting exposure control method based on a single camera in Embodiment 1 of the present invention;
[0034] Figure 2 Schematic diagram of exposure mode determination conditions in Embodiment 1 of the present invention;
[0035] Figure 3 This is a schematic diagram of the upper 1 / 2 rectangular area of the image in the first embodiment of the present invention;
[0036] Figure 4 It is a schematic diagram of the middle 1 / 2 rectangular area of the image in the first embodiment of the present invention. DETAILED DESCRIPTION
[0037] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
[0038] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present application. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present application belongs.
[0039] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprising" and / or "including" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.
[0040] In the present invention, terms such as "upper", "lower", "left", "right", "front", "back", "vertical", "horizontal", "side", "bottom", etc. indicate directions or positional relationships based on the directions or positional relationships shown in the accompanying drawings. They are relational words determined only for the convenience of describing the structural relationships of the various parts or elements of the present invention, and do not specifically refer to any part or element in the present invention and should not be understood as limitations on the present invention.
[0041] In the absence of conflict, the embodiments of the present invention and the features of the embodiments may be combined with each other.
[0042] Embodiment 1
[0043] Embodiment 1 of the present invention introduces a shooting exposure control method based on a single camera.
[0044] like Figure 1 A shooting exposure control method based on a single camera is shown, comprising:
[0045] Step 1: Get a single frame image;
[0046] Step 2: Determine the exposure mode of a single frame image. This determination first calculates the global brightness mean of the single frame image.
[0047] Step 3: Determine the shooting exposure mode of the single camera when acquiring the secondary single frame image according to the global brightness mean value of the single frame image;
[0048] Step 4: Adjust the single camera according to the determined exposure mode;
[0049] Step 5: After modifying the three parameters of aperture size, exposure time and exposure gain, obtain a secondary single-frame image;
[0050] Step 6: Compare the brightness mean of the secondary single-frame image with that of the single-frame image to obtain the output image;
[0051] Step 7: Get an image with appropriate exposure and the shooting task is completed.
[0052] As one or more implementation modes, when acquiring a single frame image, the photographing device acquires the single frame image under default or automatic settings.
[0053] As one or more implementation modes, after acquiring a single frame image, the global brightness mean of the single frame image is calculated; specifically, the acquired single frame image is converted into a single frame image grayscale image, and the cv2.meanstddev function is used to calculate the mean of the obtained single frame image grayscale image, and the obtained mean is the global brightness mean of the single frame image.
[0054] As one or more implementation modes, the shooting exposure mode of a single camera when acquiring a secondary single-frame image is divided into four exposure modes, namely, normal mode, overexposure mode, sunset mode and night vision mode, according to the global brightness average of the single-frame image.
[0055] The night vision threshold, sunset threshold and overexposure threshold are set in sequence according to the global brightness value of the single frame image; Figure 2 As shown, when the obtained global brightness value is less than the night vision threshold, the exposure mode of the single frame image is the night vision mode; when the obtained global brightness value is between the night vision threshold and the sunset threshold, the exposure mode of the single frame image is the sunset mode; when the obtained global brightness value is between the sunset threshold and the overexposure threshold, the exposure mode of the single frame image is the normal mode; when the obtained global brightness value is greater than the overexposure mode, the exposure mode of the single frame image is the overexposure mode.
[0056] It should be noted that the setting of overexposure threshold, sunset threshold and night vision threshold requires a large number of shots of different scenes and is based on experience.
[0057] In this embodiment, the range of the calculated global brightness mean of the single-frame image is [0, 255]; the night vision threshold is set to 55, the sunset threshold is set to 80, and the overexposure threshold is set to 190.
[0058] As one or more implementation modes, when it is determined that the shooting exposure mode of the single camera when acquiring the secondary single-frame image is a normal mode, normal output is performed.
[0059] According to the shooting exposure mode of the single camera when acquiring the secondary single-frame image, the aperture size, exposure time and exposure gain of the single camera are adjusted, and different modes use different parameter adaptive adjustment functions to optimize the shooting effect. If the exposure mode is the overexposure mode, after a large number of preliminary experiments, this embodiment adjusts the aperture size and exposure gain to the minimum, uses the exposure time to adjust the suppression effect of overexposure, determines the corresponding table of single-frame images with different global brightness averages and different exposure time parameters in the overexposure mode, and further fits the parameter adaptive adjustment function in the overexposure mode.
[0060] In the overexposure mode, the exposure time function in the parameter adaptive adjustment function is: Time_value=0.00009-(0.0000012*(mean-190)); wherein, Time_value is the adjusted exposure time, 0.00009 is the appropriate exposure time base when the mean brightness is 190 obtained by the test, 0.0000012 is the exposure time coefficient, mean is the brightness mean of a single frame image, and 190 is the overexposure threshold; the calculation result in the brackets is the difference between the brightness mean of a single frame image and the overexposure threshold of 190, which is then multiplied by the exposure time coefficient. The exposure time coefficient maps the difference of 65 between the brightness value of 255 and the brightness value of 190 to between the exposure time base of 0.00009 and the minimum value of 0.00001, and finally subtracts the mapped exposure time from the exposure time base to obtain the adjusted exposure time. After applying the new exposure time, it can be ensured that the brightness mean of the secondary single-frame images taken after adjusting the parameters in the overexposure mode with different brightness mean values is within the normal mode range, thereby optimizing the shooting effect.
[0061] According to the shooting exposure mode of the single camera when acquiring the secondary single-frame image, the aperture size, exposure time and exposure gain of the single camera are adjusted. Different modes use different parameter adaptive adjustment functions to optimize the shooting effect. For example, if the exposure mode is the sunset mode, after a large number of preliminary experiments, this embodiment adjusts the aperture size and exposure time to the maximum, and uses the exposure gain to adjust the brightening effect of the underexposed single-frame image, determines the corresponding table of single-frame images with different global brightness means and different exposure gains in the sunset mode, and further, fits the parameter adaptive adjustment function in the sunset mode.
[0062] In sunset mode, the exposure gain function in the parameter adaptive adjustment function is: Exposure_gain = 17-(0.64*(mean2-55)); where Exposure_gain is the adjusted exposure gain, 17 is the appropriate exposure gain base when the brightness value is 55, 0.64 is the exposure gain coefficient, mean2 is the brightness mean of a single frame image, and 55 is the night vision threshold; the calculation result in the brackets is the difference between the brightness mean of a single frame image and the night vision threshold of 55, which is then multiplied by the exposure gain coefficient. The exposure gain coefficient maps the difference of 25 between the brightness value of 55 and the brightness value of 80 to the exposure gain base of 17 and the minimum value of 1, and finally subtracts the mapped exposure gain from the exposure gain base to obtain the adjusted exposure gain. After applying the new exposure gain, it can be ensured that the brightness mean of the secondary single-frame images taken after adjusting the parameters in sunset mode with different brightness mean values is within the normal mode range, thereby optimizing the shooting effect.
[0063] According to the shooting exposure mode of the single camera when acquiring the secondary single-frame image, the aperture size, exposure time and exposure gain of the single camera are adjusted. Different exposure modes use different parameter adaptive adjustment functions to optimize the shooting effect. For example, if the exposure mode is a night vision mode, after a large number of preliminary experiments, the present invention adjusts the aperture size and exposure time to the maximum, uses the exposure gain to adjust the brightening effect of the underexposed single-frame image, determines the corresponding table of single-frame images with different global brightness means and different exposure gains in the night vision mode, and further fits the parameter adaptive adjustment function in the night vision mode.
[0064] In the night vision mode, the exposure gain function in the parameter adaptive adjustment function is: Exposure_gain2=117*(exp(-0.015*mean3)); wherein, Exposure_gain2 is the adjusted exposure gain, 117 is the multiplication factor, - is the reciprocal, 0.015 is the exposure gain factor, and mean3 is the brightness mean of a single frame image; by observing the above corresponding table statistically obtained in the night vision mode, the present invention finds that when the input mean3 is 0 to 55, it can basically be fitted into a curve with a negative slope and an increasing slope. After comparing basic functions with slope changes such as exponential functions and logarithmic functions, it is decided to use the exponential function as the part of the function that changes the slope; because the modified exposure gain is in the range of 52 to 115, the exposure gain is too large and is not suitable for the exponential function. Therefore, we first extract the multiplier coefficient 115, map the exposure gain range to the range of 0.45 to 1, and continue to take the inverse of the exponential function, so that when the input mean3 is a positive number, the value of (exp*(-mean3)) is below 1, and when the input mean3 is 0 to 55, the output result is a curve with a negative slope and increasing; because the value of (exp*(-mean3)) needs to be above 0.45, the maximum value of (exp*mean3) must not be greater than 2.2. After calculation, add the exposure gain coefficient 0.014 before mean3, and finally ensure that the value of (exp(-0.014*mean3)) is between 0.45 and 1. After multiplying the multiplier coefficient 115, the exposure gain value is between 52 and 115, and the exposure gain function with a slope change that meets our needs is obtained. After a slight adjustment in the later stage, the exposure gain coefficient 0.014 was changed to 0.015, and the multiplier coefficient 115 was changed to 117, and the final exposure gain function was obtained. After applying the new exposure gain, it can be ensured that the brightness mean of the secondary single-frame images taken after adjusting the parameters in the night vision mode with different brightness mean values is within the normal mode range, thereby optimizing the shooting effect.
[0065] As one or more implementation modes, a secondary single-frame image is acquired after modifying the three parameters of aperture size, exposure time and exposure gain.
[0066] As one or more implementation methods, the global brightness value of the secondary single-frame image is calculated, and the global brightness value of the secondary single-frame image is compared with the global brightness value of the single-frame image. When the secondary single-frame image is obtained, the shooting exposure mode of the single camera is an overexposure mode, and the brightness average value of the upper 1 / 2 rectangular area of the secondary single-frame image is compared with the brightness average value of the upper 1 / 2 rectangular area of the single-frame image, such as Figure 3As shown, an image with a lower brightness mean is selected as an alternative output image; then the global brightness mean of the secondary single-frame image is determined to prevent the image from being too dark (such as the brightness mean is below 5). If the image is too dark, a single-frame image will still be selected as the output image to ensure the visualization of effective image information.
[0067] The global brightness value of the secondary single-frame image is calculated, and the global brightness value of the secondary single-frame image is compared with the global brightness value of the single-frame image. When obtaining the secondary single-frame image, the shooting exposure mode of the single camera is the sunset mode. The global brightness mean of the secondary single-frame image is compared with the global brightness mean of the single-frame image, and the image with a higher brightness mean is selected as the candidate for the output image; then the brightness mean of the 1 / 2 rectangular area in the middle of the secondary single-frame image is determined, such as Figure 4 As shown, to prevent the overexposure of the effective area of the image after processing (such as the average brightness is above 240), if the 1 / 2 rectangular area in the middle of the image is too bright, a single frame image will still be selected as the output image to ensure the visualization of the effective information of the image.
[0068] The global brightness value of the secondary single-frame image is calculated, and the global brightness value of the secondary single-frame image is compared with the global brightness value of the single-frame image. When obtaining the secondary single-frame image, the shooting exposure mode of the single camera is the night vision mode. The global brightness mean of the secondary single-frame image is compared with the global brightness mean of the single-frame image, and the image with a higher brightness mean is selected as the candidate for the output image; then the brightness mean of the 1 / 2 rectangular area in the middle of the secondary single-frame image is determined, such as Figure 4 As shown, to prevent the overexposure of the effective area of the image after processing (such as the average brightness is above 240), if the 1 / 2 rectangular area in the middle of the image is too bright, a single frame image will still be selected as the output image to ensure the visualization of the effective information of the image.
[0069] It should be noted that when the exposure mode of the secondary single-frame image is determined to be the overexposure mode, the aperture size, exposure time and exposure gain of the camera need to be adjusted, and after the adjustment, the secondary single-frame image is taken, and after the secondary single-frame image is obtained, the brightness average of the upper 1 / 2 rectangular area of the secondary single-frame image is compared with the brightness average of the upper 1 / 2 rectangular area of the single-frame image; at the same time, the global brightness average of the secondary single-frame image is determined to prevent the image from being too dark, and then the image with a lower brightness average is selected to output an image with normal exposure;
[0070] When it is determined that the exposure state of the secondary single-frame image is the sunset mode, it is necessary to adjust the aperture size, exposure time and exposure gain of the camera, and then shoot the secondary single-frame image after the adjustment. After obtaining the secondary single-frame image, the global brightness mean of the secondary single-frame image is compared with the global brightness mean of the single-frame image; at the same time, the brightness mean of the 1 / 2 rectangular area in the middle of the secondary single-frame image is determined to prevent overexposure of the effective area of the image after processing, and then select the image with a higher brightness mean to output an image with normal exposure;
[0071] When it is determined that the exposure state of the secondary single-frame image is the night vision mode, it is necessary to adjust the aperture size, exposure time and exposure gain of the camera. After the adjustment, a secondary single-frame image is taken. After obtaining the secondary single-frame image, the global brightness mean of the secondary single-frame image is compared with the global brightness mean of the single-frame image. At the same time, the brightness mean of the 1 / 2 rectangular area in the middle of the secondary single-frame image is determined to prevent overexposure of the effective area of the image after processing. Then, an image with a higher brightness mean is selected to output an image with normal exposure.
[0072] In this embodiment, the intensity of external light affects the imaging quality of the camera, but at the camera level, the aperture size, exposure time and exposure gain can also affect the amount of light entering, and then affect the final imaging quality; at the same time, the effective area of the captured image is concentrated in the middle of the image. If there is regional overexposure or point overexposure around the captured image, it will not have a significant impact on the visualization of the effective information of the image. The present invention classifies the exposure mode after measuring the single-frame image, and determines whether to shoot a secondary single-frame image after modifying the three parameters of aperture size, exposure time and exposure gain. After obtaining the secondary single-frame image, it is compared with the single-frame image in a specific photometric area according to different exposure modes, and finally outputs an image with a brightness mean value within the normal mode range. In this embodiment, a newly fitted parameter adaptive adjustment function is applied when modifying the three parameters of aperture size, exposure time and exposure gain, especially a parameter adaptive adjustment function with a slope change is fitted in the night vision mode; different photometric areas are selected in a targeted manner according to different exposure modes. Ensure that the brightness mean value of the secondary single-frame image shot after adjusting the parameters in different exposure modes with different brightness mean values is within the normal mode range.
[0073] Embodiment 2
[0074] Embodiment 2 of the present invention introduces a shooting exposure control system based on a single camera.
[0075] A shooting exposure control system based on a single camera, comprising:
[0076] An acquisition module, configured to acquire a single-frame image from a single camera;
[0077] A determination module, configured to calculate a global brightness value of the acquired single-frame image, and determine a shooting exposure mode of a single camera when acquiring a secondary single-frame image;
[0078] A control module, which is configured to determine that the single-frame image is an image with proper exposure if and only if the acquired exposure mode is a normal mode, and otherwise perform shooting exposure control of a single camera;
[0079] Among them, in the process of performing shooting exposure control of a single camera, the aperture size, exposure time and exposure gain of the single camera are adjusted, and a secondary single-frame image is obtained based on the adjusted single camera; the shooting exposure mode of the single camera when obtaining the secondary single-frame image is combined with the acquired single-frame image and the secondary single-frame image to obtain the exposure image of the single camera, and complete the shooting exposure control of the single camera.
[0080] The detailed steps are the same as those of the shooting exposure control method based on a single camera provided in Example 1, and will not be repeated here.
[0081] Embodiment 3
[0082] Embodiment 3 of the present invention provides a computer-readable storage medium.
[0083] A computer-readable storage medium stores a program, which, when executed by a processor, implements the steps of the shooting exposure control method based on a single camera as described in Embodiment 1 of the present invention.
[0084] The detailed steps are the same as those of the shooting exposure control method based on a single camera provided in Example 1, and will not be repeated here.
[0085] Embodiment 4
[0086] A fourth embodiment of the present invention provides an electronic device.
[0087] An electronic device comprises a memory, a processor and a program stored in the memory and running on the processor, wherein when the processor executes the program, the steps in the shooting exposure control method based on a single camera as described in Embodiment 1 of the present invention are implemented.
[0088] The detailed steps are the same as those of the shooting exposure control method based on a single camera provided in Example 1, and will not be repeated here.
[0089] Embodiment 5
[0090] Embodiment 5 of the present invention provides a computer program product.
[0091] A computer program product includes software codes, wherein the program in the software codes executes the steps in the shooting exposure control method based on a single camera as described in the first embodiment of the present invention.
[0092] The detailed steps are the same as those of the shooting exposure control method based on a single camera provided in Example 1, and will not be repeated here.
[0093] The above description is only a preferred embodiment of the present embodiment and is not intended to limit the present embodiment. For those skilled in the art, the present embodiment may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present embodiment shall be included in the protection scope of the present embodiment.
Claims
1. A shooting exposure control method based on a single camera, It is characterized in that include: Get a single frame image from a single camera; Calculate the global brightness value of the acquired single-frame image, and determine the shooting exposure mode of the single camera when acquiring the secondary single-frame image; If and only if the acquired exposure mode is the normal mode, the single frame image is a properly exposed image, otherwise the shooting exposure control of the single camera is performed; Among them, in the process of performing shooting exposure control of a single camera, the aperture size, exposure time and exposure gain of the single camera are adjusted, and a secondary single-frame image is obtained based on the adjusted single camera; the shooting exposure mode of the single camera when obtaining the secondary single-frame image is combined with the acquired single-frame image and the secondary single-frame image to obtain the exposure image of the single camera, and complete the shooting exposure control of the single camera.
2. A shooting exposure control method based on a single camera as claimed in claim 1, It is characterized in that In the process of obtaining the exposure image of a single camera, the global brightness value of the secondary single-frame image is calculated, and the global brightness value of the secondary single-frame image is compared with the global brightness value of the single-frame image. The exposure image of the single camera is determined according to the different shooting exposure modes of the single camera when obtaining the secondary single-frame image.
3. A shooting exposure control method based on a single camera as claimed in claim 1, It is characterized in that The exposure modes include at least a normal mode, an overexposure mode, a sunset mode and a night vision mode; a night vision threshold, a sunset threshold and an overexposure threshold are set in sequence according to the obtained global brightness value of the single-frame image; when the obtained global brightness value is less than the night vision threshold, the exposure mode of the single-frame image is the night vision mode; when the obtained global brightness value is between the night vision threshold and the sunset threshold, the exposure mode of the single-frame image is the sunset mode; when the obtained global brightness value is between the sunset threshold and the overexposure threshold, the exposure mode of the single-frame image is the normal mode; when the obtained global brightness value is greater than the overexposure mode, the exposure mode of the single-frame image is the overexposure mode.
4. A shooting exposure control method based on a single camera as described in claim 1, It is characterized in that When the shooting exposure mode of the single camera is the overexposure mode when acquiring the secondary single-frame image, the aperture size and exposure gain of the single camera are adjusted to the minimum. The global brightness of the secondary single-frame image during overexposure is suppressed by adjusting the exposure time. The corresponding relationship between single-frame images with different global brightness means in the overexposure mode and different exposure times is determined, and the exposure time parameter adaptive adjustment function in the overexposure mode is fitted.
5. A shooting exposure control method based on a single camera as claimed in claim 1, It is characterized in that When the shooting exposure mode of the single camera is sunset mode when acquiring the secondary single-frame image, the aperture size and exposure time of the single camera are adjusted to the maximum, and the global brightness of the secondary single-frame image when underexposed is improved by adjusting the exposure gain. The corresponding relationship between single-frame images with different global brightness means and different exposure gains in sunset mode is determined, and the exposure gain parameter adaptive adjustment function in sunset mode is fitted.
6. A shooting exposure control method based on a single camera as claimed in claim 1, It is characterized in that When the shooting exposure mode of the single camera is the night vision mode when acquiring the secondary single-frame image, the aperture size and exposure time of the single camera are adjusted to the maximum, and the global brightness of the secondary single-frame image when underexposed is improved by adjusting the exposure gain. The corresponding relationship between single-frame images with different global brightness means and different exposure gains in the night vision mode is determined, and the exposure gain parameter adaptive adjustment function in the night vision mode is fitted.
7. A shooting exposure control system based on a single camera, It is characterized in that include An acquisition module, configured to acquire a single-frame image from a single camera; A determination module, configured to calculate a global brightness value of the acquired single-frame image, and determine a shooting exposure mode of a single camera when acquiring a secondary single-frame image; A control module, which is configured to determine that the single-frame image is an image with proper exposure if and only if the acquired exposure mode is a normal mode, and otherwise perform shooting exposure control of a single camera; Among them, in the process of performing shooting exposure control of a single camera, the aperture size, exposure time and exposure gain of the single camera are adjusted, and a secondary single-frame image is obtained based on the adjusted single camera; the shooting exposure mode of the single camera when obtaining the secondary single-frame image is combined with the acquired single-frame image and the secondary single-frame image to obtain the exposure image of the single camera, and complete the shooting exposure control of the single camera.
8. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the steps of the shooting exposure control method based on a single camera as described in any one of claims 1 to 6 are implemented.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, It is characterized in that When the processor executes the program, the steps of the shooting exposure control method based on a single camera as described in any one of claims 1-6 are implemented.
10. A computer program product comprising software code, It is characterized in that The program in the software code executes the steps of the shooting exposure control method based on a single camera as described in any one of claims 1 to 6.
