WO2021237575A1 - 曝光控制方法、装置、设备、可移动平台和存储介质 - Google Patents
曝光控制方法、装置、设备、可移动平台和存储介质 Download PDFInfo
- Publication number
- WO2021237575A1 WO2021237575A1 PCT/CN2020/092945 CN2020092945W WO2021237575A1 WO 2021237575 A1 WO2021237575 A1 WO 2021237575A1 CN 2020092945 W CN2020092945 W CN 2020092945W WO 2021237575 A1 WO2021237575 A1 WO 2021237575A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- brightness information
- exposure
- proportion
- ratio
- image
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 90
- 230000003287 optical effect Effects 0.000 claims abstract description 18
- 230000006870 function Effects 0.000 claims description 115
- 238000012545 processing Methods 0.000 claims description 32
- 230000003247 decreasing effect Effects 0.000 claims description 13
- 238000004590 computer program Methods 0.000 claims description 12
- 230000007613 environmental effect Effects 0.000 claims 4
- 230000000875 corresponding effect Effects 0.000 description 46
- 238000010586 diagram Methods 0.000 description 20
- 230000008569 process Effects 0.000 description 12
- 230000002596 correlated effect Effects 0.000 description 11
- 230000000694 effects Effects 0.000 description 10
- 238000012886 linear function Methods 0.000 description 9
- 238000006243 chemical reaction Methods 0.000 description 8
- 238000004891 communication Methods 0.000 description 6
- 230000008859 change Effects 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 5
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000007423 decrease Effects 0.000 description 3
- 206010044565 Tremor Diseases 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 2
- 230000000295 complement effect Effects 0.000 description 2
- 229910044991 metal oxide Inorganic materials 0.000 description 2
- 150000004706 metal oxides Chemical class 0.000 description 2
- 238000003672 processing method Methods 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 230000001149 cognitive effect Effects 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012806 monitoring device Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/70—Circuitry for compensating brightness variation in the scene
- H04N23/76—Circuitry for compensating brightness variation in the scene by influencing the image signals
Definitions
- the embodiments of the present invention relate to the field of camera technology, and in particular to an exposure control method, device, equipment, movable platform, and storage medium.
- An aperture is set in the shooting device, which can adjust the exposure during shooting, so that the image shows different brightness.
- the brightness of the captured image may change due to the change in the brightness of the scene, even if the exposure level does not change. Therefore, in order to ensure the shooting effect, it is often necessary to adjust the exposure during the shooting process.
- the existing exposure adjustment method takes a long time, resulting in low shooting efficiency and poor user experience.
- the embodiments of the present invention provide an exposure control method, device, equipment, movable platform, and storage medium to solve the technical problem of long exposure adjustment time in the prior art.
- the first aspect of the embodiments of the present invention provides an exposure control method, including:
- the brightness information is compared with the target brightness information, and the exposure of the image sensor is adjusted according to the comparison result.
- a second aspect of the embodiments of the present invention provides an exposure control method, including:
- a third aspect of the embodiments of the present invention provides an exposure control device, including:
- Memory used to store computer programs
- the processor is configured to run a computer program stored in the memory to realize:
- the brightness information is compared with the target brightness information, and the exposure of the image sensor is adjusted according to the comparison result.
- a fourth aspect of the embodiments of the present invention provides an exposure control device, including:
- Memory used to store computer programs
- the processor is configured to run a computer program stored in the memory to realize:
- a fifth aspect of the embodiments of the present invention provides an exposure control device, including:
- An image sensor configured to acquire a light signal about the object to be photographed, and convert the light signal into an electrical signal about the object to be photographed, the electrical signal being a digital signal to form an image
- a determining circuit configured to determine the brightness information of the image through the digital signal
- the processing circuit is used to compare the brightness information with the target brightness information, and adjust the exposure of the image sensor according to the comparison result.
- a sixth aspect of the embodiments of the present invention provides an exposure control device, including:
- An image sensor configured to acquire a light signal about the object to be photographed, and convert the light signal into an electrical signal about the object to be photographed, the electrical signal being a digital signal to form an image
- a determining circuit configured to determine the proportion of pixels in a preset brightness interval in the image through the digital signal
- the processing circuit is configured to adjust the exposure of the image sensor according to the proportion of pixels in the preset brightness interval.
- a seventh aspect of the embodiments of the present invention provides a photographing device, including the exposure control device according to any one of the third aspect to the sixth aspect.
- An eighth aspect of the embodiments of the present invention provides a movable platform, including the photographing device described in the seventh aspect.
- a ninth aspect of the embodiments of the present invention provides a readable storage medium having instructions stored in the readable storage medium.
- the photographing device executes the above-mentioned first aspect or second aspect. The method described in the aspect.
- the exposure control method, device, equipment, movable platform, and storage medium provided by the embodiments of the present invention can reduce the time spent adjusting the exposure amount, and improve the shooting efficiency and user experience.
- FIG. 1 is a schematic flowchart of an exposure control method provided by an embodiment of the present invention
- FIG. 2 is a schematic diagram of the correspondence relationship between the ratio of exposure amount and the ratio of brightness information according to an embodiment of the present invention
- FIG. 3 is a schematic diagram of another correspondence relationship between an exposure amount ratio and a brightness information ratio provided by an embodiment of the present invention
- FIG. 4 is a schematic diagram of another correspondence relationship between the ratio of exposure amount and the ratio of brightness information provided by an embodiment of the present invention.
- FIG. 5 is a schematic flowchart of another exposure control method provided by an embodiment of the present invention.
- FIG. 6 is a schematic diagram of the correspondence relationship between the ratio of exposure amount and the ratio of brightness information based on an exponential function according to an embodiment of the present invention
- FIG. 7 is a schematic diagram of a correspondence relationship between a ratio of exposure amount and a ratio of brightness information based on a logarithmic function provided by an embodiment of the present invention.
- FIG. 8 is a schematic flowchart of yet another exposure control method provided by an embodiment of the present invention.
- FIG. 9 is a schematic structural diagram of an exposure control device provided by an embodiment of the present invention.
- FIG. 10 is a schematic structural diagram of another exposure control device provided by an embodiment of the present invention.
- FIG. 11 is a schematic structural diagram of yet another exposure control device provided by an embodiment of the present invention.
- FIG. 12 is a schematic structural diagram of yet another exposure control device provided by an embodiment of the present invention.
- FIG. 13 is a schematic structural diagram of a movable platform provided by an embodiment of the present invention.
- the embodiment of the present invention provides an exposure control method, which can be applied to a shooting device, and the shooting device can be any device with a shooting function, such as a camera, a mobile phone, a monitoring device, and the like.
- FIG. 1 is a schematic flowchart of an exposure control method provided by an embodiment of the present invention. As shown in Figure 1, the exposure control method may include:
- Step 101 Obtain a light signal about an object to be photographed through the image sensor of the photographing device.
- Step 102 Convert the optical signal into an electrical signal related to the object to be photographed, and the electrical signal is a digital signal to form an image.
- the light signal about the object to be photographed can be a light signal generated or reflected by the object to be photographed.
- the image sensor in the photographing device can be used to convert the light signal into an electrical signal.
- the image sensor can be specifically implemented as any photoelectric conversion function.
- the image sensor may be a charge-coupled device (CCD) image sensor or a complementary metal oxide semiconductor (Complementary Metal Oxide Semiconductor, CMOS) image sensor, etc.
- CCD charge-coupled device
- CMOS complementary metal oxide semiconductor
- a pixel array may be provided in the image sensor, and the pixel array includes a plurality of pixel units.
- the pixel array includes a plurality of pixel units.
- the electrical signal output by the pixel unit may be an analog electrical signal, that is, an analog signal, and a digital electrical signal, that is, a digital signal, can be obtained after analog-to-digital conversion (ADC).
- ADC analog-to-digital conversion
- the digital signals corresponding to multiple pixel units can form an image.
- a pixel unit can correspond to a pixel in an image, and the digital signal corresponding to a pixel can be used as the corresponding pixel value of the pixel in the image, so that the digital signals corresponding to multiple pixel units are used to form an image
- the image can be a digital image.
- An analog-to-digital conversion device may be integrated in the image sensor, connected to the pixel array, and used to convert the analog signal output by the pixel array into a digital signal.
- other auxiliary devices such as filters, compensation circuits, etc. may also be integrated in the image sensor.
- the digital signal in step 102 may be a digital signal processed by filtering, compensation, etc., to improve the image shooting effect.
- the original image can be formed.
- the original image is filtered through a recursive filter (Infinite Impulse Response, IIR) to obtain a filtered digital signal.
- IIR Infinite Impulse Response
- the original image includes the brightness information of the original image.
- the brightness information of the original image is filtered through a recursive filter, so that a filtered digital signal can be obtained.
- a filtered image is obtained or formed from the filtered digital signal. That is, the filtered image includes filtered brightness information.
- the analog-to-digital conversion device and other auxiliary devices can also be designed separately from the image sensor.
- the image sensor outputs an analog signal, and the analog signal is converted into the corresponding digital signal after the analog-to-digital conversion device and other auxiliary devices. .
- Step 103 Determine the brightness information of the image through the digital signal.
- one pixel unit can correspond to one pixel in the image, and the digital signal corresponding to one pixel can be used as the corresponding pixel value of the pixel in the image.
- the brightness information of the image can be determined by the digital signal.
- the brightness information can be used to indicate the brightness of the captured image.
- the brightness can be the overall brightness of the image, or the partial brightness, the brightness of all colors, or the partial brightness. The brightness of the color.
- the image may be a grayscale image
- the digital signal may be the grayscale value of the pixels in the image. Add the grayscale values corresponding to all or part of the pixels in the image to obtain the image
- the brightness information reflects the overall brightness or partial brightness of the image.
- the image can be a color image
- the digital signal can be the value of each color channel corresponding to the pixel in the image
- the brightness information of the image can be the brightness information of any one or more color channels.
- the image is an RGB image, including three color channels of red (R), green (G), and blue (B).
- the digital signal can include R value, G value and B value.
- the R value corresponding to each pixel in the image Add together to get the brightness information corresponding to the red component of the image.
- the color image when the image is a color image, the color image can also be converted to a grayscale image, and the brightness information of the image can be determined by the grayscale value.
- the conversion method of the color image and the gray image belongs to the prior art, and will not be repeated here.
- the digital signal is a filtered digital signal.
- the step of determining the brightness information of the image through the digital signal includes determining the filtered brightness information in the filtered image through the filtered digital signal.
- Step 104 Compare the brightness information with the target brightness information, and adjust the exposure of the image sensor according to the comparison result.
- the target brightness information may be preset target brightness information; or, the target brightness information may be manually input by the user before shooting; or, the target brightness information may be determined according to the ambient brightness, for example, the shooting device may be provided with an illuminance sensor , The brightness of the surrounding environment can be determined by the illuminance sensor.
- the brightness information is compared with the target brightness information, and the exposure of the image sensor is adjusted according to the comparison result.
- the purpose of adjusting the exposure is to make the brightness information of the captured image converge to the target brightness information.
- the brightness information is filtered brightness information.
- the exposure of the image sensor can be increased; if the brightness information is greater than the target brightness information, the exposure can be reduced; if the brightness information is equal to the target brightness information, it is determined that the current exposure is appropriate. No need to adjust the exposure.
- the brightness information for example, average brightness information
- the exposure of the image sensor can be increased. Among them, the increased amount of exposure has a negative correlation with the average brightness information. If the brightness information (for example, the average brightness information) is greater than the target brightness information, the amount of exposure can be reduced. Among them, the reduced amount of exposure has a positive correlation with the average brightness information.
- the increased exposure amount refers to the increased exposure amount (for example, exposure time) in the adjusted subsequent image based on the exposure amount corresponding to the current image.
- the reduced exposure refers to the reduced exposure in the adjusted subsequent image based on the exposure corresponding to the current image.
- the error between the brightness information and the target brightness information is less than the preset threshold, it can be considered that the current exposure level is appropriate, and there is no need to adjust the exposure level.
- the increased or decreased exposure level can be different for different brightness information.
- the increased or decreased amount of exposure may be determined by the comparison result of the brightness information and the target brightness information.
- the greater the brightness information the more the reduced exposure, so as to reduce the brightness information of the captured image as soon as possible; in the case that the brightness information is greater than the target brightness information, the brightness The smaller the information, the more exposure is increased to increase the brightness information of the captured image as soon as possible.
- comparing the brightness information with the target brightness information, and adjusting the exposure of the image sensor according to the comparison result may include: comparing the brightness information with the target brightness information, and adjusting at least one of the following according to the comparison result: Aperture Size, exposure time, exposure gain to adjust the exposure of the image sensor.
- the exposure of the image sensor is adjusted to N times the current exposure, then you can choose any of the following to achieve: adjust the aperture size to the current Adjust the exposure time to the current N times, and adjust the exposure gain to the current N times, where N>0.
- any multiple of the aperture size, exposure time, and exposure gain can also be adjusted at the same time, as long as the adjusted exposure level can be N times the current exposure level.
- the specific adjustment methods of the aperture size, exposure time, and exposure gain belong to the prior art, and will not be repeated here.
- the method provided in step 101 to step 104 can be used to convert the light signal of the object to be photographed into the corresponding digital signal through the image sensor of the photographing device, thereby obtaining a photographed object.
- the brightness information of the image is compared with the target brightness information, and the exposure of the image sensor is adjusted according to the comparison result, so that the brightness information of the next frame image taken according to the adjusted exposure is closer to the target brightness information.
- step 101 After adjusting the exposure, you can re-execute step 101 to step 104 to obtain the next frame of image taken, and continue to adjust the exposure according to the brightness information and target brightness information of the image until the brightness information of the captured image is equal to the target brightness information , Thus ending the exposure adjustment process.
- the image finally output to the user may be an image whose brightness information is finally shot equal to the target brightness information.
- the exposure control method provided in this embodiment can obtain the light signal about the object to be photographed through the image sensor of the photographing device, and convert the light signal into an electrical signal about the object to be photographed.
- the electrical signal is a digital signal to form an image. Signal, determine the brightness information of the image, compare the brightness information with the target brightness information, and adjust the exposure of the image sensor according to the comparison result, so that the current brightness information of the image can quickly converge to the target brightness information, reducing the cost of adjusting the exposure Time, improve the efficiency of shooting and user experience.
- the brightness information of the image may include the average brightness information of the image.
- comparing the brightness information with the target brightness information and adjusting the exposure of the image sensor according to the comparison result may include: comparing the average brightness information with the target brightness information, and adjusting the exposure of the image sensor according to the comparison result.
- the average brightness information may be the average value of the digital signals corresponding to all or part of the pixels in the image, for example, it may be the average value of the digital signals corresponding to the pixels in the region of interest in the image.
- the region of interest can be manually selected by the user by clicking on it, or alternatively, a region that meets preset conditions, such as the area where the foreground object is located, can be selected as the region of interest.
- the ratio of the average brightness information to the target brightness information may be equal to the ratio of the exposure before adjustment to the exposure after adjustment.
- FIG. 2 is a schematic diagram of a correspondence relationship between an exposure amount ratio and a brightness information ratio provided by an embodiment of the present invention.
- the horizontal axis is the ratio of the average brightness information to the target brightness information
- the vertical axis is the ratio of the exposure before adjustment to the exposure after adjustment.
- the ratio of the average brightness information to the target brightness information is 1, the ratio of the exposure before adjustment to the exposure after adjustment is also 1, indicating that the exposure corresponding to the current image is appropriate and there is no need to adjust the exposure.
- the ratio of the average brightness information to the target brightness information can be used to determine how many times the exposure is adjusted to the current value.
- the adjusted exposure should be twice the exposure before adjustment, that is, the exposure corresponding to the next frame of image is equal to that of the current image 2 times the exposure.
- the strategy of adjusting the exposure amount can be more radical.
- the product of the adjusted exposure and the average brightness may be greater than the product of the exposure before the adjustment and the target brightness information; when the average brightness information is greater than the target brightness information, after the adjustment
- the product of the exposure and the average brightness can be smaller than the product of the exposure before the adjustment and the target brightness information.
- FIG. 3 is a schematic diagram of another correspondence relationship between an exposure amount ratio and a brightness information ratio provided by an embodiment of the present invention.
- the horizontal axis is the ratio of the average brightness information to the target brightness information
- the vertical axis is the ratio of the exposure before adjustment to the exposure after adjustment.
- the slope of the straight line is equal to 1, and the ratio of the average brightness information to the target brightness information is n.
- the ratio of the exposure can also be n.
- the exposure before adjustment The ratio of the amount to the adjusted exposure amount may be less than n.
- the ratio of the average brightness information to the target brightness information can be greater than the ratio of the exposure before adjustment to the exposure after adjustment, that is, the product of the adjusted exposure and the average brightness can be greater than the exposure before adjustment
- the product of the target brightness information can obtain a larger adjusted exposure than the solution shown in FIG. 2.
- n is equal to one.
- the adjusted exposure can be greater than twice the exposure before the adjustment.
- the adjusted exposure level is equal to 2.3 times the exposure level corresponding to the current image.
- the ratio of the average brightness information to the target brightness information when the average brightness information is greater than the target brightness information, in the scheme with a slope greater than 1 shown in Figure 3, when the ratio of the average brightness information to the target brightness information is m, the difference between the exposure before adjustment and the exposure after adjustment is The ratio can be greater than m.
- the ratio of the average brightness information to the target brightness information can be smaller than the ratio of the exposure before adjustment to the adjusted exposure, that is, the product of the adjusted exposure and the average brightness can be less than the exposure before adjustment and the target brightness information The product of to obtain a smaller adjusted exposure.
- m is equal to 1.
- the average brightness information is average brightness information of pixels in the current image.
- the target brightness information is the brightness information corresponding to the pixels in the subsequent image that is expected to be adjusted.
- the brightness value of the pixel in the subsequent image after adjustment is the exposure level before adjustment.
- the exposure amount can be converged faster during the exposure adjustment process, and the efficiency of the exposure adjustment can be further improved.
- the adjusted exposure may have a negative correlation with the average brightness information.
- FIG. 4 is a schematic diagram of another correspondence relationship between an exposure amount ratio and a brightness information ratio provided by an embodiment of the present invention.
- the horizontal axis is the ratio of the average brightness information to the target brightness information
- the vertical axis is the ratio of the exposure before adjustment to the exposure after adjustment.
- the solid line in the figure can indicate the relationship between the two. Both can be Into a non-linear relationship.
- the adjusted exposure can be determined by the average brightness information.
- the product of the adjusted exposure and the average brightness information may have a negative correlation with the average brightness information.
- the positive correlation relationship may mean that when the variable x increases, the variable y also increases, that is, the direction of change of two variables is the same, for example, when a variable x changes from large to small , Another variable y also changes from large to small; when the variable x changes from small to large, the variable y also changes from small to large. Then, the variable x and the variable y can be regarded as a positive correlation.
- the negative correlation can mean that when the variable x increases, the variable y decreases accordingly, that is, the direction of change of the two variables is opposite.
- variable x when a variable x changes from large to small, another variable y changes from small to large; when variable x changes from small to large, another variable y changes from large to small. Then, the variable x and the variable y can be regarded as a negative correlation.
- the non-linear adjustment scheme shown in Fig. 4 is more radical than the adjustment scheme shown in Fig. 2, that is, the amount of exposure adjusted (increased or decreased) by the non-linear adjustment scheme shown in Fig. 4 is greater than that shown in Fig. 2
- the adjustment scheme adjusts more exposure.
- the ratio of the exposure before adjustment to the exposure after adjustment is greater than the average brightness The ratio to the target brightness.
- the ratio of the exposure before adjustment to the adjusted exposure is less than the ratio of the average brightness to the target brightness.
- the adjustment scheme shown in Fig. 4 is more gentle than the adjustment scheme shown in Fig. 2, that is, adjusted (increased or decreased) by the non-linear adjustment scheme shown in Fig. 4
- the exposure is less than the exposure adjusted by the adjustment scheme shown in Figure 2.
- the exposure before adjustment The ratio of the amount to the adjusted exposure is smaller than the ratio of the average brightness to the target brightness.
- the target brightness information is greater than the average brightness information and the target brightness information is less than twice the average brightness information (that is, the ratio of the average brightness information to the target brightness information is greater than 0.5 and less than 1)
- the exposure before adjustment and the exposure after adjustment The ratio of the quantity is greater than the ratio of the average brightness to the target brightness.
- the scheme in which the product of the adjusted exposure and the average brightness information is fixed as shown in Fig. 2 has the following characteristics: regardless of whether the average brightness information is Close to the target brightness information, the degree of adjustment of the exposure remains unchanged.
- the non-linear adjustment solution provided by the embodiment in FIG. 4 has the following characteristics: adjust the exposure more gently when approaching the target brightness information, and adjust the exposure more aggressively when away from the target brightness information.
- the target brightness information is 1, and the current exposure is 1.
- the adjusted exposure is both 1/2.
- the exposure should be adjusted to 1/3.
- the nonlinear adjustment scheme shown in Fig. 4 is more radical than the adjustment scheme shown in Fig. 2.
- the nonlinear adjustment scheme shown in Fig. 4 The amount of exposure increased or decreased by the adjustment scheme is more than the amount of exposure increased or decreased by the adjustment scheme shown in Fig. 2, and the adjusted exposure amount of the nonlinear adjustment scheme shown in Fig. 4 can be less than that of the adjustment scheme shown in Fig. 2.
- the obtained exposure is 1/3, so that more exposure can be reduced when the difference between the average brightness information and the target brightness information is large.
- the exposure should be adjusted to 1/1.5, and according to the scheme shown in Figure 4, because the average brightness information is greater than the target brightness information, and the average brightness information is less than the target brightness
- the information is twice as high.
- the adjustment scheme shown in Figure 4 is more gentle than the adjustment scheme shown in Figure 2.
- the non-linear adjustment scheme shown in Figure 4 increases or decreases the amount of exposure than the adjustment scheme shown in Figure 2. The increased or decreased exposure is less.
- the adjusted exposure of the non-linear adjustment scheme shown in Fig. 4 can be greater than the exposure obtained by the adjustment scheme shown in Fig. 2 by 1/1.5, so as to realize when the average brightness information gap is small. Reduce the amount of exposure smaller.
- the non-linear adjustment scheme shown in FIG. 4 can better realize the dynamic adjustment of the exposure, which is conducive to the rapid and stable convergence of the exposure.
- the relationship between the exposure and the brightness information, or the ratio of the average brightness information to the target brightness information and the ratio of the exposure before adjustment to the exposure after adjustment can be achieved by the linear or curved function shown above
- a table of correspondences between exposure and brightness information can be stored in advance, and the exposure can be adjusted according to the brightness information by looking up the table.
- Figures 2 to 4 only show some examples of exposure adjustment strategies. Those skilled in the art can adjust the above strategies according to actual needs, such as changing coefficients and increasing constants in the functional relationship between exposure and brightness information.
- the present invention does not limit this.
- FIG. 5 is a schematic flowchart of another exposure control method provided by an embodiment of the present invention. As shown in FIG. 5, the exposure control method may include:
- Step 501 Obtain a light signal about the object to be photographed through the image sensor of the photographing device.
- Step 502 Convert the optical signal into an electrical signal related to the object to be photographed, and the electrical signal is a digital signal to form an image.
- Step 503 Determine the average brightness information of the image through the digital signal.
- step 501 to step 503 can be referred to the foregoing embodiment, which will not be repeated here.
- Step 504 Compare the average brightness information of the image with the target brightness information, and adjust the exposure of the image sensor according to the comparison result and the ratio of pixels in the preset brightness interval.
- the proportion of pixels in the preset brightness interval may refer to the ratio of the number of pixels in the preset interval of the brightness information to the total number of pixels in the image.
- the brightness information of a pixel can be represented by the pixel value of the pixel.
- the digital signal corresponding to a pixel can be used as the corresponding pixel value of the pixel in the image, and the pixel value can be a gray value or can include the value corresponding to each color channel.
- the brightness histogram corresponding to the image is determined.
- the proportion of pixels in the preset brightness interval can be determined.
- the brightness histogram can quickly and accurately determine the proportion of pixels in the preset brightness interval.
- other methods can also be used to calculate the proportion of pixels in the preset brightness interval. For example, the proportion of pixels in the preset brightness interval can be directly calculated by a hardware circuit.
- the relationship between the average brightness information of the image and the exposure is not necessarily linear.
- One of the reasons for the non-linearity is the limited dynamic range of the shooting device itself. Specifically, when some parts of the object to be photographed are too bright or too dark, it will exceed the perceivable dynamic range of the shooting device, and the excess signal will be cut off. When the average brightness information is counted from a digital point of view, due to these The existence of pixels that are too bright or too dark may cause the statistical average brightness information to not reasonably reflect the true exposure level of the current image.
- the gray value range is generally 0-255, so for too dark points, the minimum pixel value can only be 0, for too bright points , The maximum pixel value can only be 255.
- the more points with a pixel value near 0 the more dark points in the image
- the more points with a pixel value near 255 the more bright points in the image.
- the first image taken with an exposure time of 10ms and the second image taken with an exposure time of 20ms although the exposure amount differs by one
- the average brightness information of the first image and the second image may only be slightly different. The same is true for extremely bright parts (for example, extremely bright pixels).
- the ratio of pixel points in the preset brightness interval can be used as a basis.
- the ratio of pixel points in the preset brightness interval may include: the ratio of bright parts and/or the ratio of dark parts.
- the proportion of dark areas may be the proportion of pixels in the image whose pixel values are less than the first value; the proportion of bright areas may be the proportion of pixels in the image whose pixel values are greater than the second value.
- the first value and the second value can be selected according to actual needs.
- the first value can be smaller than the second value.
- the first value can be 20 and the second value can be 240.
- the exposure level of the image sensor can be adjusted. If the dark part occupies a large amount, the exposure can be increased by a large margin, and if the bright part occupies a large portion, the exposure can be decreased by a large margin, so as to achieve a rapid convergence of the exposure.
- the amount of exposure that needs to be increased and the proportion of dark parts can be positively correlated; when the average brightness information of the image is greater than the target brightness information, the amount of exposure that needs to be reduced is related to the brightness.
- the proportion of the part may be a positive correlation, so as to realize the adjustment of the exposure amount according to the proportion of the pixel points in the preset brightness interval.
- adjusting the exposure of the image sensor based on the comparison result and the pixel ratio of the preset brightness interval may include: determining the basic exposure based on the ratio of the average brightness information and the brightness information of the target brightness information; according to the preset brightness The proportion of pixels in the interval is determined, and the scale factor is determined; the exposure amount of the image sensor is adjusted according to the basic exposure and the scale factor.
- the basic exposure amount may be an adjusted exposure amount determined according to the brightness information ratio.
- the method of determining the exposure amount by the brightness information ratio can refer to the above-mentioned embodiments.
- the basic exposure amount can be determined in a positive proportional relationship between the ratio of the exposure amount and the ratio of the brightness information, which will not be repeated here.
- the scale factor can be determined according to the proportion of pixels in the preset brightness interval, and the basic exposure is multiplied by the scale factor to obtain the corrected exposure, and then the exposure of the image sensor Adjust to the corrected exposure.
- the scale factor can be greater than 1, to adjust the exposure to be larger when the image is too dark with too many points; when the proportion of the dark part is less than the proportion of the bright part, the proportion The coefficient can be less than 1 to adjust the exposure to be smaller when there are too many points in the image that are too bright.
- the scale factor when the average brightness information of the image is less than the target brightness information, the scale factor can be determined according to the proportion of the dark part, and the proportion factor and the proportion of the dark part can be positively correlated, so that the darker the situation, more exposure will be added;
- the scale factor can be determined according to the proportion of bright parts, and the scale factor and the proportion of bright parts can have a negative correlation, so that the brighter the situation, the more exposure is reduced.
- the average brightness information of the image can be compared with the target brightness information. If the brightness information of the image is not the same as the target brightness information, it means that the image does not meet the requirements. According to the comparison result of the average brightness information and the target brightness information and the pixel ratio of the preset brightness interval, the exposure of the image sensor is adjusted, and after the adjustment, the next frame of image is taken and processed until the image meets the requirements.
- the exposure adjustment process for the same average brightness information, the case where the dark area occupies a larger proportion than the dark area occupies a smaller amount, and more exposure must be added.
- the average brightness information of the current image is A1
- the target brightness information is 2*A1.
- the dark part accounts for 10%
- the final exposure is adjusted to x1
- the average brightness information of the image can reach 2*A1.
- the quantity is only 1%, then the exposure amount is finally adjusted to x2 to reach 2*A1, where x1>x2.
- the exposure control method provided in this embodiment can compare the average brightness information of the image with the target brightness information after acquiring the captured image, and adjust the exposure of the image sensor according to the comparison result and the pixel ratio of the preset brightness interval It can provide better exposure convergence speed, especially in extremely bright and dark scenes, effectively improve the efficiency of exposure adjustment, save shooting time, and improve user visual experience.
- adjusting the exposure of the image sensor according to the comparison result and the pixel ratio of the preset brightness interval may include: if the average brightness information of the image is greater than the target brightness information, then according to the average brightness information The ratio of brightness information to the target brightness information and the proportion of bright parts are used to adjust the exposure of the image sensor.
- adjusting the exposure of the image sensor according to the ratio of the average brightness information and the target brightness information of the brightness information and the proportion of bright parts may include: according to the ratio of the brightness information of the average brightness information and the target brightness information, through the ratio of the brightness information
- the exponential function calculates the ratio of exposure before adjustment to the adjusted exposure; adjusts the exposure of the image sensor according to the ratio of exposure calculated by the exponential function; among them, the base of the exponential function includes the proportion of bright parts.
- the variable of the exponential function includes the brightness information ratio, that is, the variable may be a function of the brightness information ratio.
- the variable of the exponential function may be the ratio of the brightness information ratio and a coefficient. Sum or product, etc.
- the base of the exponential function includes the proportion of bright parts, which may refer to a function whose base is the proportion of bright parts.
- the base of the exponential function may be the sum or product of the proportion of bright parts and a coefficient.
- variable of the exponential function and the ratio of brightness information can be positively correlated, and the base of the exponential function and the proportion of bright parts can be positively correlated.
- Those skilled in the art can adjust the base of the exponential function and the specific form of the variable according to actual needs, which is not limited in this embodiment.
- FIG. 6 is a schematic diagram of a correspondence relationship between an exposure amount ratio based on an exponential function and a brightness information ratio provided by an embodiment of the present invention.
- the horizontal axis is the ratio of the average brightness information of the image to the target brightness information
- the vertical axis is the ratio of the exposure before adjustment to the exposure after adjustment.
- the curve in the figure shows the ratio of exposure calculated by an exponential function.
- the straight line represents the scheme of calculating the exposure ratio by a linear function, so as to compare the two schemes more clearly.
- the amount of exposure may be the exposure time.
- the ratio of the exposure to the adjusted exposure can be equal to the ratio of the average brightness information to the target brightness information.
- the adjusted exposure is the exposure before the adjustment 1/N times.
- the base of the exponential function can include the proportion of the bright part
- the variable of the exponential function can include the brightness information ratio of the average brightness information and the target brightness information .
- the exposure ratio determined by the exponential function is greater than the exposure ratio determined by the linear function, that is, the adjustment determined by the exponential function
- the subsequent exposure is smaller to reduce more exposure, so as to achieve rapid convergence and improve the efficiency of exposure adjustment.
- the exposure ratio determined by the exponential function is smaller than the exposure ratio determined by the linear function, that is, the adjusted exposure determined by the exponential function is relative to
- the exposure level determined by the linear function is larger to achieve smooth convergence and ensure the stability of the exposure level adjustment.
- the proportion of bright parts determines the base of the exponential function. The larger the proportion of bright parts, the more trembling the curve, which can achieve a more radical adjustment strategy. When the proportion of bright parts is too high, it can reduce more exposure and improve the extreme Exposure convergence speed in bright scenes saves shooting time.
- adjusting the exposure of the image sensor according to the comparison result and the pixel ratio of the preset brightness interval may include: if the average brightness information of the image is less than the target brightness information, then according to the average brightness information The ratio of brightness information to the target brightness information and the proportion of dark parts are used to adjust the exposure of the image sensor.
- adjusting the exposure of the image sensor according to the ratio of the average brightness information and the target brightness information and the ratio of the dark part may include: according to the ratio of the average brightness information and the target brightness information, through the logarithm of the ratio of the brightness information
- the function calculates the ratio of the adjusted exposure to the exposure before the adjustment; adjusts the exposure of the image sensor according to the ratio of the exposure calculated by the logarithmic function; among them, the base of the logarithmic function includes the proportion of dark parts.
- the logarithmic function of the ratio of brightness information it can mean that the variable of the logarithmic function includes the ratio of brightness information, that is, the variable can be a function of the ratio of dark part information.
- the variable of the logarithmic function can be the ratio of brightness information and one The sum or product of coefficients, etc.
- the base of the logarithmic function includes the proportion of dark parts, which can refer to a function whose base is the proportion of dark parts.
- the base of the logarithmic function can be the sum or product of the proportion of dark parts and a coefficient.
- the ratio of the variable of the logarithmic function to the brightness information can be a positive correlation
- the base of the logarithmic function and the proportion of the dark part can be a positive correlation.
- Those skilled in the art can adjust the base of the logarithmic function and the specific form of the variable according to actual needs, which is not limited in this embodiment.
- FIG. 7 is a schematic diagram of a correspondence relationship between a ratio of exposure amount and a ratio of brightness information based on a logarithmic function provided by an embodiment of the present invention.
- the horizontal axis is the ratio of the average brightness information of the image to the target brightness information
- the vertical axis is the ratio of the adjusted exposure to the exposure before the adjustment.
- the curve in the figure shows the exposure calculated by a logarithmic function.
- the ratio scheme, the straight line represents the scheme of calculating the exposure ratio by a linear function, so as to compare the two schemes more clearly.
- the base of the logarithmic function can include the proportion of dark parts
- the variables of the logarithmic function can include the average brightness information and the brightness of the target brightness information. Information ratio.
- a may be the proportion of the dark part, or a may be the proportion of the dark part multiplied by a factor.
- the exposure ratio determined by the logarithmic function is greater than the exposure ratio determined by the linear function, that is, determined by the logarithmic function
- the adjusted exposure is larger to increase more exposure, so as to achieve rapid convergence and improve the efficiency of exposure adjustment.
- the exposure ratio determined by the logarithmic function is smaller than the exposure ratio determined by the linear function, that is, the adjusted exposure determined by the logarithmic function Smaller to achieve smooth convergence and ensure the stability of exposure adjustment.
- the proportion of the dark part determines the base of the logarithmic function. The larger the proportion of the dark part, the more trembling the curve, which can achieve a more radical adjustment strategy. When the proportion of the dark part is too high, it can reduce more exposure and improve the situation in extremely dark scenes. Convergence speed under the exposure, saving shooting time.
- the actual exposure level of the current image can be predicted based on the proportion of bright and dark parts of the image.
- the ratio of the average brightness information to the target brightness information is fixed, the brightness There is a negative correlation between the proportion of parts and the adjusted exposure, and the proportion of dark parts and the adjusted exposure have a positive correlation, so that the speed of the shooting equipment when the exposure converges is faster and more stable. In darker night scenes , Or under the sunny and big sun, it can also achieve better rapid convergence effect.
- FIGS. 6 and 7 are only exemplary, and those skilled in the art can adjust the above solutions according to actual needs.
- the function can be adjusted by adding a constant, multiplying by a coefficient, etc.
- FIG. 8 is a schematic flowchart of yet another exposure control method provided by an embodiment of the present invention. As shown in FIG. 8, the exposure control method may include:
- Step 801 Obtain a light signal about the object to be photographed through the image sensor of the photographing device.
- Step 802 Convert the optical signal into an electrical signal related to the object to be photographed, and the electrical signal is a digital signal to form an image.
- Step 803 Determine the proportion of pixels in the preset brightness interval in the image through the digital signal.
- Step 804 Adjust the exposure of the image sensor according to the pixel ratio of the preset brightness interval.
- the specific implementation principle and process of determining the proportion of pixels in the preset brightness interval and adjusting the exposure of the image sensor according to the proportion of pixels in the preset brightness interval can refer to the foregoing embodiments, and will not be repeated here. .
- the proportion of pixels in the preset brightness interval may include: the proportion of bright parts and/or the proportion of dark parts; the proportion of dark parts is the proportion of pixels in the image whose pixel value is less than the first value ; The proportion of bright parts is the proportion of pixels in the image whose pixel value is greater than the second value.
- adjusting the exposure of the image sensor can be to make the proportion of the bright part and the proportion of the dark part of the image equal.
- adjusting the exposure of the image sensor according to the pixel ratio of the preset brightness interval may include: if the ratio of the bright part of the image is greater than the ratio of the dark part, reducing the exposure of the brightness sensor; and/or, if the image If the proportion of the dark part is greater than the proportion of the bright part, the exposure of the brightness sensor will be increased.
- the proportion of bright parts in the image is much larger than the proportion of dark parts, or the proportion of bright parts is much smaller than the proportion of dark parts, it means that there are too many points in the image that exceed the dynamic range perceivable by the shooting device.
- the exposure level can be adjusted so that the proportions of the bright part and the dark part of the image are equal, neither too dark nor too bright, so that the exposure of the image is adapted to the current environment and the shooting effect of the image is improved.
- a corresponding threshold may be set for the proportion of the bright part and/or the proportion of the dark part, and the adjustment of the exposure amount can be achieved by comparing with the threshold.
- adjusting the exposure of the image sensor according to the proportion of pixels in the preset brightness interval may include: if the proportion of the bright part is greater than the threshold of the bright part, reducing the exposure of the brightness sensor; or, if the proportion of the dark part is greater than the dark part Threshold, then increase the exposure of the brightness sensor.
- the proportion of bright parts or the proportion of dark parts in the image can be adjusted to the corresponding threshold, which can quickly realize the adjustment of the exposure, and at the same time prevent too many points in the image that are too bright or too dark, so that the captured image can effectively reflect
- the brightness information of the object to be photographed can improve the image photographing effect.
- the light signal about the object to be photographed is acquired through the image sensor of the photographing device, and the light signal is converted into an electrical signal about the object to be photographed.
- the electrical signal is a digital signal to form an image. , Determine the proportion of pixels in the preset brightness interval in the image. According to the proportion of pixels in the preset brightness interval, the exposure can be adjusted quickly, and the shooting efficiency and user experience can be improved.
- determining the proportion of pixels in the preset brightness interval in the image through the digital signal includes:
- the proportion of pixels in the preset brightness interval is determined.
- adjusting the exposure of the image sensor according to the pixel ratio of the preset brightness interval includes:
- the average brightness information of the image is compared with the target brightness information, and the exposure of the image sensor is adjusted according to the comparison result and the pixel ratio of the preset brightness interval.
- the amount of exposure that needs to be increased is positively correlated with the proportion of dark parts; and/or,
- the amount of exposure to be reduced has a positive correlation with the proportion of bright parts.
- adjusting the exposure of the image sensor according to the comparison result and the pixel ratio of the preset brightness interval includes:
- adjusting the exposure of the image sensor according to the comparison result and the pixel ratio of the preset brightness interval includes:
- the exposure of the image sensor is adjusted according to the ratio of the average brightness information and the brightness information of the target brightness information and the proportion of dark parts.
- the ratio of the exposure to be increased to the brightness information of the average brightness information and the target brightness information is in a negative correlation.
- adjusting the exposure of the image sensor according to the ratio of the average brightness information to the brightness information of the target brightness information and the proportion of the dark part includes:
- the ratio of the exposure amount after the adjustment to the exposure amount before the adjustment is calculated by the logarithmic function of the ratio of the brightness information
- the base of the logarithmic function includes the proportion of dark parts.
- adjusting the exposure of the image sensor according to the comparison result and the pixel ratio of the preset brightness interval includes:
- the exposure of the image sensor is adjusted according to the ratio of the average brightness information and the brightness information of the target brightness information and the proportion of bright parts.
- the ratio of the amount of exposure to be reduced and the brightness information of the average brightness information and the target brightness information is in a positive correlation.
- adjusting the exposure of the image sensor according to the ratio of the average brightness information and the brightness information of the target brightness information and the proportion of bright parts includes:
- the ratio of the exposure before the adjustment to the exposure after the adjustment is calculated by the exponential function about the ratio of the brightness information
- the base of the exponential function includes the proportion of bright parts.
- adjusting the exposure of the image sensor according to the pixel ratio of the preset brightness interval includes:
- the proportion of pixels in the preset brightness interval adjust at least one of the following: aperture size, exposure time, and exposure gain to adjust the exposure of the image sensor.
- the method further includes: determining target brightness information according to the ambient brightness.
- FIG. 9 is a schematic structural diagram of an exposure control device provided by an embodiment of the present invention.
- the exposure control device may execute the exposure control method corresponding to FIG. 1.
- the exposure control device may include:
- the memory 11 is used to store computer programs
- the processor 12 is configured to run a computer program stored in the memory to realize:
- the brightness information is compared with the target brightness information, and the exposure of the image sensor is adjusted according to the comparison result.
- the structure of the exposure control device may further include a communication interface 13 for communicating with other equipment or a communication network.
- the amount of increased or decreased exposure is different.
- the brightness information of the image includes average brightness information of the image
- the processor 12 When comparing the brightness information with the target brightness information, and adjusting the exposure of the image sensor according to the comparison result, the processor 12 is specifically configured to:
- the average brightness information is compared with the target brightness information, and the exposure of the image sensor is adjusted according to the comparison result.
- the processor 12 when comparing the average brightness information of the image with the target brightness information, and adjusting the exposure of the image sensor according to the comparison result, the processor 12 is specifically configured to:
- the exposure of the image sensor is reduced, where the reduced exposure and the average brightness information have a positive correlation.
- the ratio of the average brightness information to the target brightness information is equal to the ratio of the exposure before adjustment to the exposure after adjustment.
- the product of the adjusted exposure and the average brightness information is greater than the product of the exposure before the adjustment and the target brightness information
- the product of the adjusted exposure and the average brightness is smaller than the product of the exposure before the adjustment and the target brightness information.
- the processor 12 when comparing the average brightness information of the image with the target brightness information, and adjusting the exposure of the image sensor according to the comparison result, the processor 12 is specifically configured to:
- the average brightness information of the image is compared with the target brightness information, and the exposure of the image sensor is adjusted according to the comparison result and the pixel ratio of the preset brightness interval.
- the proportion of pixels in the preset brightness interval includes: the proportion of bright parts and/or the proportion of dark parts;
- the proportion of the dark area is the proportion of pixels in the image whose pixel value is less than the first value
- the proportion of bright parts is the proportion of pixels in the image whose pixel value is greater than the second value.
- processor 12 is also used to:
- the proportion of pixels in the preset brightness interval is determined.
- the amount of exposure to be increased is positively correlated with the proportion of dark parts; and/or,
- the amount of exposure to be reduced has a positive correlation with the proportion of bright parts.
- the processor 12 when adjusting the exposure of the image sensor according to the comparison result and the pixel ratio of the preset brightness interval, the processor 12 is specifically configured to:
- the processor 12 when adjusting the exposure of the image sensor according to the comparison result and the pixel ratio of the preset brightness interval, the processor 12 is specifically configured to:
- the exposure of the image sensor is adjusted according to the ratio of the average brightness information and the brightness information of the target brightness information and the proportion of dark parts.
- the processor 12 when adjusting the exposure of the image sensor according to the ratio of the average brightness information and the brightness information of the target brightness information and the proportion of dark parts, the processor 12 is specifically configured to:
- the ratio of the exposure amount after the adjustment to the exposure amount before the adjustment is calculated by the logarithmic function of the ratio of the brightness information
- the base of the logarithmic function includes the proportion of dark parts.
- the processor 12 when adjusting the exposure of the image sensor according to the comparison result and the pixel ratio of the preset brightness interval, the processor 12 is specifically configured to:
- the exposure of the image sensor is adjusted according to the ratio of the average brightness information and the brightness information of the target brightness information and the proportion of bright parts.
- the processor 12 when adjusting the exposure of the image sensor according to the brightness information ratio of the average brightness information and the target brightness information and the proportion of bright parts, the processor 12 is specifically configured to:
- the ratio of the exposure before the adjustment to the exposure after the adjustment is calculated by the exponential function about the ratio of the brightness information
- the base of the exponential function includes the proportion of bright parts.
- the processor 12 is specifically configured to:
- the brightness information is compared with the target brightness information, and at least one of the following: aperture size, exposure time, and exposure gain is adjusted according to the comparison result to adjust the exposure of the image sensor.
- processor 12 is also used to:
- the exposure control device shown in FIG. 9 can execute the method of the embodiment shown in FIG.
- FIG. 10 is a schematic structural diagram of another exposure control device provided by an embodiment of the present invention.
- the exposure control device may execute the exposure control method corresponding to FIG. 8.
- the exposure control device may include:
- the memory 21 is used to store computer programs
- the processor 22 is configured to run a computer program stored in the memory to realize:
- the exposure of the image sensor is adjusted according to the proportion of pixels in the preset brightness interval.
- the structure of the exposure control device may further include a communication interface 23 for communicating with other equipment or a communication network.
- the proportion of pixels in the preset brightness interval includes: the proportion of bright parts and/or the proportion of dark parts;
- the proportion of the dark area is the proportion of pixels in the image whose pixel value is less than the first value
- the proportion of bright parts is the proportion of pixels in the image whose pixel value is greater than the second value.
- the processor 22 when determining the proportion of pixels in the preset brightness interval in the image through the digital signal, the processor 22 is specifically configured to:
- the proportion of pixels in the preset brightness interval is determined.
- the processor 22 when adjusting the exposure of the image sensor according to the pixel ratio of the preset brightness interval, the processor 22 is specifically configured to:
- the average brightness information of the image is compared with the target brightness information, and the exposure of the image sensor is adjusted according to the comparison result and the pixel ratio of the preset brightness interval.
- the amount of exposure to be increased is positively correlated with the proportion of dark parts; and/or,
- the amount of exposure to be reduced has a positive correlation with the proportion of bright parts.
- the processor 22 when adjusting the exposure of the image sensor according to the comparison result and the pixel ratio of the preset brightness interval, the processor 22 is specifically configured to:
- the processor 22 when adjusting the exposure of the image sensor according to the comparison result and the pixel ratio of the preset brightness interval, the processor 22 is specifically configured to:
- the exposure of the image sensor is adjusted according to the ratio of the average brightness information and the brightness information of the target brightness information and the proportion of dark parts.
- the ratio of the amount of exposure to be increased to the brightness information of the average brightness information and the target brightness information is in a negative correlation.
- the processor 22 when adjusting the exposure of the image sensor according to the ratio of the average brightness information and the brightness information of the target brightness information and the proportion of dark parts, the processor 22 is specifically configured to:
- the ratio of the exposure amount after the adjustment to the exposure amount before the adjustment is calculated by the logarithmic function of the ratio of the brightness information
- the base of the logarithmic function includes the proportion of dark parts.
- the processor 22 when adjusting the exposure of the image sensor according to the comparison result and the pixel ratio of the preset brightness interval, the processor 22 is specifically configured to:
- the exposure of the image sensor is adjusted according to the ratio of the average brightness information and the brightness information of the target brightness information and the proportion of bright parts.
- the processor 22 when adjusting the exposure of the image sensor according to the ratio of the average brightness information and the brightness information of the target brightness information and the proportion of bright parts, the processor 22 is specifically configured to:
- the ratio of the exposure before the adjustment to the exposure after the adjustment is calculated by the exponential function about the ratio of the brightness information
- the base of the exponential function includes the proportion of bright parts.
- the processor 22 when adjusting the exposure of the image sensor according to the pixel ratio of the preset brightness interval, the processor 22 is specifically configured to:
- the proportion of pixels in the preset brightness interval adjust at least one of the following: aperture size, exposure time, and exposure gain to adjust the exposure of the image sensor.
- the processor 22 is further configured to:
- the exposure control device shown in FIG. 10 can execute the method of the embodiment shown in FIG. Refer to the description in the embodiment shown in FIG. 8 for the execution process and technical effects of this technical solution, and will not be repeated here.
- FIG. 11 is a schematic structural diagram of yet another exposure control device provided by an embodiment of the present invention.
- the exposure control device may execute the exposure processing method corresponding to the above-mentioned FIGS. 1-7.
- the exposure control device may include:
- the image sensor 31 is used to obtain a light signal about the object to be photographed, and convert the light signal into an electrical signal about the object to be photographed, and the electrical signal is a digital signal to form an image;
- the determining circuit 32 is used to determine the brightness information of the image through the digital signal
- the processing circuit 33 is used to compare the brightness information with the target brightness information, and adjust the exposure of the image sensor 31 according to the comparison result.
- the amount of increased or decreased exposure is different.
- the brightness information of the image includes average brightness information of the image
- the processing circuit 33 is specifically configured to:
- the average brightness information is compared with the target brightness information, and the exposure amount of the image sensor 31 is adjusted according to the comparison result.
- the processing circuit 33 is specifically configured to:
- the exposure amount of the image sensor 31 is reduced, where the reduced exposure amount and the average brightness information have a positive correlation.
- the ratio of the average brightness information to the target brightness information is equal to the ratio of the exposure before adjustment to the exposure after adjustment.
- the product of the adjusted exposure and the average brightness information is greater than the product of the exposure before the adjustment and the target brightness information
- the product of the adjusted exposure and the average brightness is smaller than the product of the exposure before the adjustment and the target brightness information.
- the processing circuit 33 is specifically configured to:
- the average brightness information of the image is compared with the target brightness information, and the exposure of the image sensor 31 is adjusted according to the comparison result and the ratio of pixels in the preset brightness interval.
- the proportion of pixels in the preset brightness interval includes: the proportion of bright parts and/or the proportion of dark parts;
- the proportion of the dark area is the proportion of pixels in the image whose pixel value is less than the first value
- the proportion of bright parts is the proportion of pixels in the image whose pixel value is greater than the second value.
- processing circuit 33 is also used for:
- the proportion of pixels in the preset brightness interval is determined.
- the amount of exposure to be increased is positively correlated with the proportion of dark parts; and/or,
- the amount of exposure to be reduced has a positive correlation with the proportion of bright parts.
- the processing circuit 33 when adjusting the exposure of the image sensor 31 according to the comparison result and the pixel ratio of the preset brightness interval, the processing circuit 33 is specifically configured to:
- the exposure of the image sensor 31 is adjusted.
- the processing circuit 33 when adjusting the exposure of the image sensor 31 according to the comparison result and the pixel ratio of the preset brightness interval, the processing circuit 33 is specifically configured to:
- the exposure amount of the image sensor 31 is adjusted according to the ratio of the average brightness information and the brightness information of the target brightness information and the proportion of the dark part.
- the processing circuit 33 when adjusting the exposure of the image sensor 31 according to the ratio of the average brightness information and the brightness information of the target brightness information and the proportion of dark parts, the processing circuit 33 is specifically configured to:
- the ratio of the exposure amount after the adjustment to the exposure amount before the adjustment is calculated by the logarithmic function of the ratio of the brightness information
- the base of the logarithmic function includes the proportion of dark parts.
- the processing circuit 33 when adjusting the exposure of the image sensor 31 according to the comparison result and the pixel ratio of the preset brightness interval, the processing circuit 33 is specifically configured to:
- the exposure amount of the image sensor 31 is adjusted according to the ratio of the average brightness information and the brightness information of the target brightness information and the proportion of bright parts.
- the processing circuit 33 when adjusting the exposure of the image sensor 31 according to the ratio of the average brightness information and the brightness information of the target brightness information and the proportion of bright parts, the processing circuit 33 is specifically configured to:
- the ratio of the exposure before the adjustment to the exposure after the adjustment is calculated by the exponential function about the ratio of the brightness information
- the base of the exponential function includes the proportion of bright parts.
- the processing circuit 33 is specifically configured to:
- the brightness information is compared with the target brightness information, and at least one of the following: aperture size, exposure time, and exposure gain is adjusted according to the comparison result to adjust the exposure of the image sensor 31.
- processing circuit 33 is also used for:
- the exposure control device shown in FIG. 11 can execute the method of the embodiment shown in FIG. 1 to FIG. 7. It can be understood that the methods of the embodiments shown in FIG. 1 to FIG. 7 can be implemented by hardware circuits. For example, calculating the brightness information of the image based on the digital signal can be achieved by an accumulator; calculating the ratio can be achieved by a divider; adjusting the exposure can be achieved by sending instructions to the corresponding device, for example, you can send instructions to the aperture driving device, In order to make the aperture driving device drive the aperture according to the instruction, thereby adjusting the exposure amount.
- the above circuit can also be implemented by an integrated chip.
- the determination circuit 32 may be implemented as an image signal processor (Image Signal Processor, ISP), and the image brightness information calculation can be quickly implemented at the hardware level through the image signal processor.
- the processing circuit 33 can be implemented as a processor, such as a digital signal processor (Digital Signal Processor, DSP), a Field Programmable Gate Array (Field Programmable Gate Array, FPGA), etc.
- FIG. 12 is a schematic structural diagram of yet another exposure control device provided by an embodiment of the present invention.
- the exposure control device may execute the exposure processing method corresponding to FIG. 8.
- the exposure control device may include:
- the image sensor 41 is used to obtain a light signal about the object to be photographed, and convert the light signal into an electrical signal about the object to be photographed, and the electrical signal is a digital signal to form an image;
- the determining circuit 42 is used to determine the proportion of pixels in the preset brightness interval in the image through the digital signal;
- the processing circuit 43 is configured to adjust the exposure of the image sensor 41 according to the pixel ratio of the preset brightness interval.
- the proportion of pixels in the preset brightness interval includes: the proportion of bright parts and/or the proportion of dark parts;
- the proportion of the dark area is the proportion of pixels in the image whose pixel value is less than the first value
- the proportion of bright parts is the proportion of pixels in the image whose pixel value is greater than the second value.
- the determining circuit 42 is specifically configured to:
- the proportion of pixels in the preset brightness interval is determined.
- the processing circuit 43 when adjusting the exposure of the image sensor 41 according to the pixel ratio of the preset brightness interval, the processing circuit 43 is specifically configured to:
- the average brightness information of the image is compared with the target brightness information, and the exposure of the image sensor 41 is adjusted according to the comparison result and the ratio of pixels in the preset brightness interval.
- the amount of exposure to be increased is positively correlated with the proportion of dark parts; and/or,
- the amount of exposure to be reduced has a positive correlation with the proportion of bright parts.
- the processing circuit 43 when adjusting the exposure of the image sensor 41 according to the comparison result and the pixel ratio of the preset brightness interval, the processing circuit 43 is specifically configured to:
- the exposure of the image sensor 41 is adjusted.
- the processing circuit 43 when adjusting the exposure of the image sensor 41 according to the comparison result and the pixel ratio of the preset brightness interval, the processing circuit 43 is specifically configured to:
- the exposure amount of the image sensor 41 is adjusted according to the ratio of the average brightness information and the brightness information of the target brightness information and the proportion of the dark part.
- the ratio of the amount of exposure to be increased to the brightness information of the average brightness information and the target brightness information is in a negative correlation.
- the processing circuit 43 when adjusting the exposure of the image sensor 41 according to the ratio of the average brightness information and the brightness information of the target brightness information and the proportion of dark parts, the processing circuit 43 is specifically configured to:
- the ratio of the exposure amount after the adjustment to the exposure amount before the adjustment is calculated by the logarithmic function of the ratio of the brightness information
- the base of the logarithmic function includes the proportion of dark parts.
- the processing circuit 43 when adjusting the exposure of the image sensor 41 according to the comparison result and the pixel ratio of the preset brightness interval, the processing circuit 43 is specifically configured to:
- the exposure amount of the image sensor 41 is adjusted according to the ratio of the average brightness information and the brightness information of the target brightness information and the proportion of bright parts.
- the processing circuit 43 when adjusting the exposure of the image sensor 41 according to the ratio of the average brightness information and the brightness information of the target brightness information and the proportion of bright parts, the processing circuit 43 is specifically configured to:
- the ratio of the exposure before the adjustment to the exposure after the adjustment is calculated by the exponential function about the ratio of the brightness information
- the base of the exponential function includes the proportion of bright parts.
- the processing circuit 43 when adjusting the exposure of the image sensor 41 according to the pixel ratio of the preset brightness interval, the processing circuit 43 is specifically configured to:
- At least one of the following: aperture size, exposure time, and exposure gain is adjusted to adjust the exposure of the image sensor 41.
- processing circuit 43 is also specifically used for:
- the exposure control device shown in FIG. 12 can execute the method of the embodiment shown in FIG. 8. It can be understood that the method of the embodiment shown in FIG. 8 can be implemented by a hardware circuit. For example, calculating the proportion of pixels in the preset brightness interval in the image according to the digital signal can be achieved by comparators, accumulators, dividers, etc.; adjusting the exposure can be achieved by sending instructions to the corresponding device, for example, to the aperture The driving device sends instructions so that the aperture driving device drives the aperture according to the instructions, thereby adjusting the amount of exposure.
- the above circuit can also be implemented by an integrated chip.
- the determining circuit 42 can be implemented as an image signal processor, and the image brightness information can be calculated quickly at the hardware level through the image signal processor.
- the processing circuit 43 can be implemented as a processor, such as a digital signal processor, a field programmable logic gate array, and the like.
- An embodiment of the present invention also provides a photographing equipment, including the exposure control device shown in FIG. 9 or FIG. 10.
- the photographing device may also include an image sensor.
- the embodiment of the present invention also provides another photographing equipment, including the exposure control device shown in FIG. 11 or FIG. 12.
- the shooting device in each embodiment of the present invention may be any device with a shooting function, including but not limited to: a mobile phone camera, a sports camera, an airplane camera, a professional camera, an infrared camera, and the like.
- the embodiment of the present invention also provides a movable platform including the above shooting equipment.
- the movable platform can be an unmanned aerial vehicle or an unmanned vehicle.
- FIG. 13 is a schematic structural diagram of a movable platform provided by an embodiment of the present invention.
- the movable platform may include: a body 131, a power system 132 and a photographing device 133.
- the photographing equipment 133 and the power system 132 are provided in the body 131, and the power system 132 is used to provide power for the movable platform.
- the photographing device 133 can execute the exposure control method of any of the foregoing embodiments.
- an embodiment of the present invention provides a readable storage medium.
- the readable storage medium stores instructions. When the instructions are executed on a photographing device, the photographing device executes the exposure shown in the embodiments shown in FIGS. 1 to 8 above. Control Method.
- the disclosed related devices and methods can be implemented in other ways.
- the device embodiments described above are merely illustrative.
- the division of the modules or units is only a logical function division.
- there may be other division methods for example, multiple units or components may be It can be combined or integrated into another system, or some features can be ignored or not implemented.
- the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
- the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
- the functional units in the various embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
- the above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
- the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium.
- the technical solution of the present invention essentially or the part that contributes to the existing technology or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium.
- the aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read_Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disks or optical disks and other media that can store program codes.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Studio Devices (AREA)
Abstract
本发明实施例提供一种曝光控制方法、装置、设备、可移动平台和存储介质,其中方法包括:通过拍摄设备的图像传感器获取关于待拍摄物体的光信号;将所述光信号转换为关于所述待拍摄物体的电信号,所述电信号为数字信号,以形成图像;通过所述数字信号,确定所述图像的亮度信息;将所述亮度信息与目标亮度信息进行比较,并根据比较结果调整所述图像传感器的曝光量。本发明实施例提供的曝光控制方法、装置、设备、可移动平台和存储介质,可以减少调整曝光量花费的时间,提高拍摄的效率和用户体验度。
Description
本发明实施例涉及相机技术领域,尤其涉及一种曝光控制方法、装置、设备、可移动平台和存储介质。
随着图像处理技术的不断发展,相机等拍摄设备的应用也越来越广泛。拍摄设备中设置有光圈,能够调整拍摄过程中的曝光量,从而使图像显示出不同的亮度。
在拍摄场景发生变化时,由于场景的亮度变化,即使曝光量不变,拍摄图像的亮度也可能会发生变化。因此,为了保证拍摄效果,在拍摄过程中往往需要对曝光量进行调整。现有的曝光量调整方法花费的时间较久,导致拍摄效率低下,用户体验较差。
发明内容
本发明实施例提供了一种曝光控制方法、装置、设备、可移动平台和存储介质,用以解决现有技术中曝光量调整时间较久的技术问题。
本发明实施例第一方面提供一种曝光控制方法,包括:
通过拍摄设备的图像传感器获取关于待拍摄物体的光信号;
将所述光信号转换为关于所述待拍摄物体的电信号,所述电信号为数字信号,以形成图像;
通过所述数字信号,确定所述图像的亮度信息;
将所述亮度信息与目标亮度信息进行比较,并根据比较结果调整所述图像传感器的曝光量。
本发明实施例第二方面提供一种曝光控制方法,包括:
通过拍摄设备的图像传感器获取关于待拍摄物体的光信号;
将所述光信号转换为关于所述待拍摄物体的电信号,所述电信号为数字信号,以形成图像;
通过所述数字信号,确定所述图像中预设亮度区间的像素点占比;
根据所述预设亮度区间的像素点占比调整所述图像传感器的曝光量。
本发明实施例第三方面提供一种曝光控制装置,包括:
存储器,用于存储计算机程序;
处理器,用于运行所述存储器中存储的计算机程序以实现:
获取关于待拍摄物体的光信号经过拍摄设备的图像传感器转换后得到的关于所述待拍摄物体的数字信号,以形成图像;
通过所述数字信号,确定所述图像的亮度信息;
将所述亮度信息与目标亮度信息进行比较,并根据比较结果调整所述图像传感器的曝光量。
本发明实施例第四方面提供一种曝光控制装置,包括:
存储器,用于存储计算机程序;
处理器,用于运行所述存储器中存储的计算机程序以实现:
获取关于待拍摄物体的光信号经过拍摄设备的图像传感器转换后得到的关于所述待拍摄物体的数字信号,以形成图像;
通过所述数字信号,确定所述图像中预设亮度区间的像素点占比;
根据所述预设亮度区间的像素点占比调整所述图像传感器的曝光量。
本发明实施例第五方面提供一种曝光控制装置,包括:
图像传感器,用于获取关于待拍摄物体的光信号,将所述光信号转换为关于所述待拍摄物体的电信号,所述电信号为数字信号,以形成图像;
确定电路,用于通过所述数字信号,确定所述图像的亮度信息;
处理电路,用于将所述亮度信息与目标亮度信息进行比较,并根据比较结果调整所述图像传感器的曝光量。
本发明实施例第六方面提供一种曝光控制装置,包括:
图像传感器,用于获取关于待拍摄物体的光信号,将所述光信号转换为关于所述待拍摄物体的电信号,所述电信号为数字信号,以形成图像;
确定电路,用于通过所述数字信号,确定所述图像中预设亮度区间的像素点占比;
处理电路,用于根据所述预设亮度区间的像素点占比调整所述图像传感器的曝光量。
本发明实施例第七方面提供一种拍摄设备,包括第三方面至第六方面中 任一项所述的曝光控制装置。
本发明实施例第八方面提供一种可移动平台,包括第七方面所述的拍摄设备。
本发明实施例第九方面提供一种可读存储介质,所述可读存储介质中存储有指令,所述指令在拍摄设备上运行时,使得所述拍摄设备执行如上述第一方面或第二方面所述的方法。
本发明实施例提供的曝光控制方法、装置、设备、可移动平台和存储介质,可以减少调整曝光量花费的时间,提高拍摄的效率和用户体验度。
此处所说明的附图用来提供对本发明的进一步理解,构成本发明的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:
图1为本发明实施例提供的一种曝光控制方法的流程示意图;
图2为本发明实施例提供的一种曝光量比值与亮度信息比值的对应关系示意图;
图3为本发明实施例提供的另一种曝光量比值与亮度信息比值的对应关系示意图;
图4为本发明实施例提供的又一种曝光量比值与亮度信息比值的对应关系示意图;
图5为本发明实施例提供的另一种曝光控制方法的流程示意图;
图6为本发明实施例提供的一种基于指数函数的曝光量比值与亮度信息比值的对应关系示意图;
图7为本发明实施例提供的一种基于对数函数的曝光量比值与亮度信息比值的对应关系示意图;
图8为本发明实施例提供的又一种曝光控制方法的流程示意图;
图9为本发明实施例提供的一种曝光控制装置的结构示意图;
图10为本发明实施例提供的另一种曝光控制装置的结构示意图;
图11为本发明实施例提供的又一种曝光控制装置的结构示意图;
图12为本发明实施例提供的又一种曝光控制装置的结构示意图;
图13为本发明实施例提供的一种可移动平台的结构示意图。
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
除非另有定义,本文所使用的所有的技术和科学术语与属于本发明的技术领域的技术人员通常理解的含义相同。本文中在本发明的说明书中所使用的术语只是为了描述具体的实施例的目的,不是旨在于限制本发明。
下面结合附图,对本发明的一些实施方式作详细说明。在各实施例之间不冲突的情况下,下述的实施例及实施例中的特征可以相互组合。
本发明实施例提供一种曝光控制方法,曝光控制方法可以应用于拍摄设备,拍摄设备可以为任意具有拍摄功能的设备,例如相机、手机、监控设备等。
图1为本发明实施例提供的一种曝光控制方法的流程示意图。如图1所示,曝光控制方法,可以包括:
步骤101、通过拍摄设备的图像传感器获取关于待拍摄物体的光信号。
步骤102、将光信号转换为关于待拍摄物体的电信号,电信号为数字信号,以形成图像。
其中,关于待拍摄物体的光信号可以为待拍摄物体产生或反射的光信号,拍摄设备中的图像传感器可以用于将光信号转换为电信号,图像传感器可以具体实现为任意具有光电转换功能的器件。可选的,图像传感器可以为电荷耦合器件(Charge-coupled Device,CCD)图像传感器或互补金属氧化物半导体(Complementary Metal Oxide Semiconductor,CMOS)图像传感器等。
为了实现拍摄功能,图像传感器内可以设置有像素阵列,像素阵列包含多个像素单元。当外界光照射到像素阵列时,产生光电效应,在各个像素单元内产生相应的电荷,从而实现光信号到电信号的转换。
可选的,像素单元输出的电信号可以为模拟的电信号即模拟信号,经过模数转换(Analogue to Digital Conversion,ADC)后可以得到数字的电信号即数字信号。多个像素单元对应的数字信号可以形成一幅图像。具体来说, 一像素单元可以对应图像中的一个像素点,一个像素点对应的数字信号可以作为该像素点在图像中对应的像素值,从而利用多个像素单元对应的数字信号形成一幅图像,图像可以为数字图像。
图像传感器内可以集成有模数转换器件,与像素阵列连接,用于将像素阵列输出的模拟信号转换为数字信号。此外,图像传感器内还可以集成有其它辅助器件例如滤波器、补偿电路等,步骤102中的数字信号可以是经过滤波、补偿等处理后的数字信号,以提高图像拍摄效果。
在一实施方式中,在完成光信号到电信号的转换之后,可以形成原始图像。之后,将原始图像经过递归滤波器(Infinite Impulse Re-sponse,简称IIR)进行滤波处理,得到已滤波的数字信号。可选地,原始图像中包括原始图像的亮度信息,例如:将原始图像的亮度信息经过递归滤波器进行滤波处理,从而可以得到已滤波的数字信号。而后,通过已滤波的数字信号得到或形成已滤波的图像。也就是说,已滤波的图像包括滤波后的亮度信息。
在其它可选的实现方式中,模数转换器件以及其它辅助器件也可以与图像传感器分体设计,图像传感器输出模拟信号,模拟信号经过模数转换器件以及其它辅助器件后转换为对应的数字信号。
步骤103、通过数字信号,确定图像的亮度信息。
如前所述,一像素单元可以对应图像中的一个像素点,一个像素点对应的数字信号可以作为该像素点在图像中对应的像素值。通过数字信号可以确定图像的亮度信息,亮度信息可以用于表示拍摄得到的图像的亮度,其中,亮度可以为图像的整体亮度,也可以为局部亮度,可以为全部色彩的亮度,也可以为部分色彩的亮度。
在一个可选的实施方式中,图像可以为灰度图像,数字信号可以为图像中像素点的灰度值,将图像中全部像素点或部分像素点对应的灰度值相加,可以得到图像的亮度信息,反映图像的整体亮度或局部亮度。
在另一个可选的实施方式中,图像可以为彩色图像,数字信号可以为图像中像素点对应的各个色彩通道的值,图像的亮度信息可以为任一一个或多个色彩通道的亮度信息。
例如,图像为RGB图像,包括红(R)、绿(G)、蓝(B)三个色彩通道,数字信号可以包括R值、G值和B值,将图像中各个像素点对应的R值相加,可以得到图像的红色分量对应的亮度信息。
当然,在图像为彩色图像的情况下,也可以将彩色图像转为为灰度图像,通过灰度值来确定图像的亮度信息。彩色图像与灰度图像的转换方法属于现有技术,此处不再赘述。
在一实施方式中,所述数字信号为已滤波的数字信号。所述通过所述数字信号,确定所述图像的亮度信息的步骤包括,通过已滤波的数字信号,确定已滤波的图像中的滤波后的亮度信息。
步骤104、将亮度信息与目标亮度信息进行比较,并根据比较结果调整图像传感器的曝光量。
其中,获取目标亮度信息可以有多种实现方法。可选的,目标亮度信息可以为预设的目标亮度信息;或者,目标亮度信息可以由用户在拍摄前手动输入;或者,可以根据环境亮度确定目标亮度信息,例如,拍摄设备可以设置有光照度传感器,通过光照度传感器可以确定周围环境的亮度。
在确定当前拍摄的图像的亮度信息后,将亮度信息与目标亮度信息进行比较,并根据比较结果调整图像传感器的曝光量。调整曝光量的目的是,使得拍摄的图像的亮度信息向目标亮度信息收敛。在一实施方式中,所述亮度信息为已滤波的亮度信息。
若图像的亮度信息小于目标亮度信息,则可以增加图像传感器的曝光量;若亮度信息大于目标亮度信息,则可以减少曝光量;若亮度信息等于目标亮度信息,则确定当前曝光量是合适的,无需调整曝光量。在一个实施方式中,若图像的亮度信息(例如,平均亮度信息)小于目标亮度信息,则可以增加图像传感器的曝光量。其中,增加的曝光量与平均亮度信息为负相关关系。若亮度信息(例如,平均亮度信息)大于目标亮度信息,则可以减少曝光量。其中,减少的曝光量与平均亮度信息为正相关关系。在一个实施方式中,增加的曝光量是指在当前图像对应的曝光量的基础上,调整后的后续图像中所增加的曝光量(例如,曝光时间)。减少的曝光量是指在当前图像对应的曝光量的基础上,调整后的后续图像中所减少的曝光量。
在其它可选的实现方式中,若亮度信息与目标亮度信息之间的误差小于预设阈值,则可以认为当前曝光量是合适的,无需调整曝光量。
在进行曝光量调整时,对于不同的亮度信息,增加或减少的曝光量可以不同。可选的,增加或减少的曝光量可以由亮度信息和目标亮度信息的比较结果来确定。
例如,在图像的亮度信息大于目标亮度信息的情况下,亮度信息越大,减少的曝光量越多,以尽快减小拍摄的图像的亮度信息;在亮度信息大于目标亮度信息的情况下,亮度信息越小,增加的曝光量越多,以尽快增加拍摄的图像的亮度信息。
可选的,将亮度信息与目标亮度信息进行比较,并根据比较结果调整图像传感器的曝光量,可以包括:将亮度信息与目标亮度信息进行比较,并根据比较结果调整下述至少一项:光圈大小、曝光时间、曝光增益,以调整图像传感器的曝光量。
或者,也可以同时调整光圈大小、曝光时间、曝光增益中的任意多项,只要能够满足调整后的曝光量为当前曝光量的N倍即可。光圈大小、曝光时间、曝光增益的具体调整方法属于现有技术,此处不再赘述。
在实际应用中,在对待拍摄物体进行拍摄时,可以利用步骤101至步骤104提供的方法,通过拍摄设备的图像传感器将关于待拍摄物体的光信号转换为对应的数字信号,从而得到拍摄的一帧图像,将图像的亮度信息与目标亮度信息进行比较,根据比较结果调整图像传感器的曝光量,使得根据调整后的曝光量拍摄的下一帧图像的亮度信息更加接近目标亮度信息。
在调整曝光量后,可以重新执行步骤101至步骤104,获得拍摄的下一帧图像,并根据图像的亮度信息和目标亮度信息继续调整曝光量,直至拍摄得到的图像的亮度信息等于目标亮度信息,从而结束曝光量的调整过程。最终向用户输出的图像可以是最终拍摄的亮度信息等于目标亮度信息的图像。
本实施例提供的曝光控制方法,可以通过拍摄设备的图像传感器获取关于待拍摄物体的光信号,将光信号转换为关于待拍摄物体的电信号,电信号为数字信号,以形成图像,通过数字信号,确定图像的亮度信息,将亮度信息与目标亮度信息进行比较,并根据比较结果调整图像传感器的曝光量,从而使得图像的当前亮度信息能快速向目标亮度信息收敛,减少调整曝光量花费的时间,提高拍摄的效率和用户体验度。
在上述实施例提供的技术方案的技术上,可选的是,图像的亮度信息可 以包括图像的平均亮度信息。相应的,将亮度信息与目标亮度信息进行比较,并根据比较结果调整图像传感器的曝光量,可以包括:将平均亮度信息与目标亮度信息进行比较,并根据比较结果调整图像传感器的曝光量。
其中,平均亮度信息可以为图像中全部或部分像素点对应的数字信号的平均值,例如,可以为图像中感兴趣区域内的像素点对应的数字信号的平均值。感兴趣区域可以由用户手动点击选择,或者,可以选择满足预设条件的区域如前景物体所在区域作为感兴趣区域。
根据平均亮度信息与目标亮度信息的比较结果调整图像传感器的曝光量的具体实现方案有很多种。下面举例说明。
在一个可选的实施方式中,平均亮度信息与目标亮度信息的比值可以等于调整前的曝光量与调整后的曝光量的比值。
图2为本发明实施例提供的一种曝光量比值与亮度信息比值的对应关系示意图。如图2所示,横轴为平均亮度信息与目标亮度信息的比值,纵轴为调整前的曝光量与调整后的曝光量的比值,两者可以成正比例关系,具体可以通过函数y=x来表示。
当平均亮度信息与目标亮度信息的比值为1时,调整前的曝光量与调整后的曝光量的比值也为1,说明当前图像对应的曝光量是合适的,无需调整曝光量。
当平均亮度信息与目标亮度信息的比值大于或小于1时,可以通过平均亮度信息与目标亮度信息的比值,确定将曝光量调整为当前的多少倍。
例如,当前图像的平均亮度信息为A1,目标亮度信息为2*A1,那么调整后的曝光量应该是调整前的曝光量的2倍,即下一帧图像对应的曝光量等于当前图像对应的曝光量的2倍。
通过图2所示的实现方式,可以快速实现曝光量的调整倍数的计算,提高曝光量调整的效率。
在另一个可选的实施方式中,为了获得更快的收敛速度,调整曝光量的策略可以更加激进。在增加曝光量时,可以比根据图2确定的调整方案增加更多的曝光量,在减少曝光量时,可以比根据图2确定的调整方案减少更多的曝光量。
可选的,在平均亮度信息小于目标亮度信息时,调整后的曝光量与平均亮度的乘积可以大于调整前的曝光量与目标亮度信息的乘积;在平均亮度信 息大于目标亮度信息时,调整后的曝光量与平均亮度的乘积可以小于调整前的曝光量与目标亮度信息的乘积。
图3为本发明实施例提供的另一种曝光量比值与亮度信息比值的对应关系示意图。如图3所示,横轴为平均亮度信息与目标亮度信息的比值,纵轴为调整前的曝光量与调整后的曝光量的比值,图中实线可以表示两者的关系,具体可以通过函数y=kx+b来表示,其中k>1,此外,图中还用虚线y=x示出了图2对应的调整方案,以便通过实线和虚线的对比来对两种方案进行比较。图3中,实线所示的斜率大于1的方案和虚线所示的斜率等于1的方案都经过(1,1),即,若当前图像的平均亮度信息与目标亮度信息的比值为1,调整前的曝光量与调整后的曝光量的比值也为1,无需调整曝光量。
在平均亮度信息小于目标亮度信息时,需要增加曝光量,在图2所示方案中,直线的斜率等于1,平均亮度信息与目标亮度信息的比值为n时,调整前的曝光量与调整后的曝光量的比值也可以为n,在图3所示的斜率大于1的方案中,在平均亮度信息小于目标亮度信息时,平均亮度信息与目标亮度信息的比值为n时,调整前的曝光量与调整后的曝光量的比值可以小于n。由此可见,平均亮度信息与目标亮度信息的比值可以大于调整前的曝光量与调整后的曝光量的比值,也就是说,调整后的曝光量与平均亮度的乘积可以大于调整前的曝光量与目标亮度信息的乘积,相对于图2所示的方案,可以获得更大的调整后的曝光量。在一个实施方式中,n等于1。
假设当前图像的平均亮度信息为A1,目标亮度信息为2*A1,那么调整后的曝光量可以大于调整前的曝光量的2倍。在一个实施方式中,调整后的曝光量等于当前图像对应的曝光量的2.3倍。
类似地,在平均亮度信息大于目标亮度信息时,图3所示的斜率大于1的方案中,平均亮度信息与目标亮度信息的比值为m时,调整前的曝光量与调整后的曝光量的比值可以大于m。平均亮度信息与目标亮度信息的比值可以小于调整前的曝光量与调整后的曝光量的比值,也就是说,调整后的曝光量与平均亮度的乘积可以小于调整前的曝光量与目标亮度信息的乘积,以获得更小的调整后的曝光量。在一个实施方式中,m等于1。
在一个实施方式中,平均亮度信息是当前图像中的像素的平均亮度信息。例如,平均亮度值。目标亮度信息是期望经过调整后后续图像中的像素对应的亮度信息。例如,调整后的后续图像中的像素的亮度值。调整前的曝光量 是当前图像对应的曝光量,调整后的曝光量是经过调整后后续图像对应的曝光量。
通过图3所示的实现方式,可以在曝光量调整过程中,使得曝光量收敛的速度更快,进一步提高曝光量调整的效率。
在又一个可选的实施方式中,若对应的目标亮度信息以及当前的曝光量都已固定,则调整后的曝光量可以与平均亮度信息为负相关关系。
图4为本发明实施例提供的又一种曝光量比值与亮度信息比值的对应关系示意图。如图4所示,横轴为平均亮度信息与目标亮度信息的比值,纵轴为调整前的曝光量与调整后的曝光量的比值,图中实线可以表示两者的关系,两者可以成非线性关系。此外,图中还用虚线y=x示出了图2对应的调整方案,以便通过实线和虚线的对比来对两种方案进行比较。
图4中,若对应的目标亮度信息以及当前的曝光量都已固定,调整后的曝光量可以由平均亮度信息决定。
在一个实施方式中,为了能够保证调节效率和质量,调整后的曝光量与平均亮度信息的乘积,可以与平均亮度信息为负相关关系。
本发明各实施例中,正相关关系可以是指,当变量x增大时,变量y也随之增大,即,两个变量的变动方向相同,例如,一个变量x由大到小变化时,另一个变量y也由大到小变化;变量x由小到大变化时,变量y也由小到大变化。那么,变量x和变量y可以认为是正相关关系。负相关关系可以是指,当变量x增大时,变量y随之减小,即,两个变量的变动方向相反。例如,一个变量x由大到小时,另一个变量y由小到大变化;变量x由小到大变化时,另一个变量y由大到小变化。那么,变量x和变量y可以认为是负相关关系。
通过图4可以看出,在平均亮度信息和目标亮度信息的差距较大时(例如,当平均亮度信息大于目标亮度信息的两倍时,或者,当目标亮度信息大于平均亮度信息的两倍时),图4所示的非线性调整方案相比于图2所示的调整方案更加激进,即通过图4所示的非线性调整方案所调整(增加或减少)的曝光量比图2所示的调整方案所调整的曝光量更多。在一个实施方式中,当平均亮度信息大于目标亮度信息的2倍(即,平均亮度信息与目标亮度信息的比值大于2)时,调整前的曝光量与调整后的曝光量的比值大于平均亮度与目标亮度的比值。当目标亮度信息大于平均亮度信息的两倍(即,平均亮度信息与目标亮度信息的比值小于0.5)时,调整前的曝光量与调整后的曝光量的比值小于平均亮度与目标亮度的比值。
在平均亮度信息靠近目标亮度信息的差距较小(例如,当平均亮度信息大于目标亮度信息、并且平均亮度信息小于目标亮度信息的两倍时;或者,当目标亮度信息大于平均亮度信息、并且目标亮度信息小于平均亮度信息的两倍)时,图4所示的调整方案相比于图2所示的调整方案更加缓和,即通过图4所示的非线性调整方案所调整(增加或减少)的曝光量比图2所示的调整方案所调整的曝光量更少。在一个实施方式中,当平均亮度信息大于目标亮度信息、并且平均亮度信息小于目标亮度信息的两倍(即,平均亮度信息与目标亮度信息的比值大于1并且小于2)时,调整前的曝光量与调整后的曝光量的比值小于平均亮度与目标亮度的比值。当目标亮度信息大于平均亮度信息、并且目标亮度信息小于平均亮度信息的两倍(即,平均亮度信息与目标亮度信息的比值大于0.5并且小于1)时,调整前的曝光量与调整后的曝光量的比值大于平均亮度与目标亮度的比值。
通过对比图2所示的线性调整方案和图4所示的非线性调整方案可知:图2所示的调整后的曝光量与平均亮度信息的乘积固定的方案具有以下特性:无论平均亮度信息是否接近目标亮度信息,调整曝光量的程度保持不变。而图4实施例所提供的非线性调整方案则具有以下特性:在接近目标亮度信息时更加缓和地调整曝光量,在远离目标亮度信息时更加激进地调整曝光量。
为了便于描述,假设目标亮度信息为1,当前的曝光量为1。在平均亮度信息为2时,根据图2所示方案和图4所示的非线性调整方案,调整后的曝光量均为1/2。
假设:目标亮度信息为1,当前的曝光量为1,在平均亮度信息为3时,根据图2所示的方案,曝光量应调整为1/3。而根据图4所示的方案,由于平均亮度信息大于目标亮度信息的2倍,图4所示的非线性调整方案相比于图2所示的调整方案更加激进,图4所示的非线性调整方案所增加或减少的曝光量比图2所示的调整方案所增加或减少的曝光量更多,图4所示的非线性调整方案调整后的曝光量可以小于图2所示的调整方案得到的曝光量1/3,从而实现了在平均亮度信息和目标亮度信息差距较大时减少更多的曝光量。
在平均亮度信息为1.5时,根据图2所示的方案,曝光量应调整为1/1.5,而根据图4所示的方案,由于平均亮度信息大于目标亮度信息、并且平均亮度信息小于目标亮度信息的两倍,图4所示的调整方案相比于图2所示的调整方案更加缓和,图4所示的非线性调整方案所增加或减少的曝光量比图2所示的 调整方案所增加或减少的曝光量更少,图4所示的非线性调整方案调整后的曝光量可以大于图2所示的调整方案得到的曝光量1/1.5,从而实现了在平均亮度信息差距较小时减少更小的曝光量。
通过图4所示的非线性调整方案可以更好地实现曝光量的动态调整,有利于曝光量的快速、稳定地收敛。
在实际应用中,曝光量与亮度信息的关系、或者平均亮度信息与目标亮度信息的比值与调整前的曝光量与调整后的曝光量的比值,可以通过以上所示的直线或曲线函数来实现,或者,可以预先存储曝光量与亮度信息的对应关系表格,通过查表法来根据亮度信息调整曝光量。图2至图4仅仅给出了曝光量调整策略的一些示例,本领域技术人员可以根据实际需求来调整以上策略,例如在曝光量与亮度信息的函数关系中改变系数、增加常数等,本发明实施例对此不作限制。
图5为本发明实施例提供的另一种曝光控制方法的流程示意图。如图5所示,曝光控制方法可以包括:
步骤501、通过拍摄设备的图像传感器获取关于待拍摄物体的光信号。
步骤502、将光信号转换为关于待拍摄物体的电信号,电信号为数字信号,以形成图像。
步骤503、通过数字信号,确定图像的平均亮度信息。
其中,步骤501至步骤503的具体实现原理和过程可以参见前述实施例,此处不再赘述。
步骤504、将图像的平均亮度信息与目标亮度信息进行比较,并根据比较结果和预设亮度区间的像素点占比,调整图像传感器的曝光量。
其中,预设亮度区间的像素点占比,可以是指图像中亮度信息在预设区间的像素点的数量与全部像素点的数量的比值。像素点的亮度信息可以通过像素点的像素值来表示。
如前文,一个像素点对应的数字信号可以作为该像素点在图像中对应的像素值,像素值可以为灰度值或者可以包括各个色彩通道对应的值。根据图像中各个像素点对应的像素值,确定图像对应的亮度直方图,根据亮度直方图,可以确定预设亮度区间的像素点占比。通过亮度直方图可以快速、准确地确定预设亮度区间的像素点占比。除亮度直方图以外,也可以用其它方法 统计预设亮度区间的像素点占比,例如可以直接通过硬件电路计算预设亮度区间的像素点占比。
在实际应用中,图像的平均亮度信息和曝光量之间不一定是线性关系,不线性的原因之一是拍摄设备本身的动态范围有限。具体来说,当待拍摄物体的有些部分过亮或者过暗时,就会超过拍摄设备可感知的动态范围,超过的信号就会被截止,当从数字的角度统计平均亮度信息时,由于这些过亮或过暗的像素点的存在,可能会导致统计出来的平均亮度信息不能合理的反映出当前图像的真正曝光水平。
以像素值为灰度值为例来说,由于设备本身的限制,灰度值的范围一般取0-255,因此对于过暗的点,最小像素值也只能是0,对于过亮的点,最大像素值也只能是255。针对一幅图像,像素值在0附近的点越多,说明图像中过暗的点越多,像素值在255附近的点越多,说明图像中过亮的点越多。
例如,针对一较暗的场景进行拍摄时,在其它曝光参数不变的情况下,通过10ms的曝光时间拍摄的第一图像,和通过20ms的曝光时间拍摄的第二图像,虽然曝光量相差一倍,但是由于极暗的部分(例如,极暗的像素)较多,第一图像和第二图像的平均亮度信息可能只有细微差异。同理,对于极亮的部分(例如,极亮的像素)也是如此。
因此,在调整曝光量时,可以以预设亮度区间的像素点占比来作为依据。可选的,预设亮度区间的像素点占比,可以包括:亮部占比和/或暗部占比。其中,暗部占比可以为图像中像素值小于第一数值的像素点的比例;亮部占比可以为图像中像素值大于第二数值的像素点的比例。第一数值和第二数值可以根据实际需要来选择,第一数值可以小于第二数值,例如,第一数值可以为20,第二数值可以为240。
根据亮部占比和/或暗部占比,可以调整图像传感器的曝光量。如果暗部占比较大,则可以较大幅度地增加曝光量,若亮部占比较大,则可以较大幅度地减少曝光量,从而实现曝光量的快速收敛。
具体来说,在图像的平均亮度信息小于目标亮度信息时,需增加的曝光量与暗部占比可以为正相关关系;在图像的平均亮度信息大于目标亮度信息时,需减少的曝光量与亮部占比可以为正相关关系,从而实现根据预设亮度区间的像素点占比调整曝光量。
可选的,根据比较结果和预设亮度区间的像素点占比,调整图像传感器 的曝光量,可以包括:根据平均亮度信息和目标亮度信息的亮度信息比值,确定基础曝光量;根据预设亮度区间的像素点占比,确定比例系数;根据基础曝光量与比例系数,调整图像传感器的曝光量。
其中,基础曝光量可以为根据亮度信息比值确定的调整后的曝光量。通过亮度信息比值确定曝光量的方法可以参见上述实施例,例如可以以曝光量比值与亮度信息比值为正比例关系来确定基础曝光量,此处不再赘述。
在根据亮度信息比值确定基础曝光量后,可以根据预设亮度区间的像素点占比,确定比例系数,将基础曝光量乘以比例系数,得到修正后的曝光量,并将图像传感器的曝光量调整为修正后的曝光量。
可选的,在暗部占比大于亮部占比时,比例系数可以大于1,以在图像过暗的点过多时将曝光量调整得更大;在暗部占比小于亮部占比时,比例系数可以小于1,以在图像过亮的点过多时将曝光量调整得更小。
或者,在图像的平均亮度信息小于目标亮度信息时,可以根据暗部占比确定比例系数,比例系数与暗部占比可以为正相关关系,从而实现越暗的情况增加更多的曝光量;在图像的平均亮度信息大于目标亮度信息时,可以根据亮部占比确定比例系数,比例系数与亮部占比可以为负相关关系,从而实现越亮的情况减少更多的曝光量。
通过亮度信息比值确定基础曝光量,并根据预设亮度区间的像素点占比确定比例系数,对基础曝光量进行修正,能够结合图像的亮度信息与预设亮度区间的像素点占比对曝光量进行调整,更好地实现曝光量快速收敛,且流程简便、易于实现。
在实际应用中,在通过当前曝光量获得拍摄的图像后,可以将图像的平均亮度信息与目标亮度信息进行比较,若图像的亮度信息与目标亮度信息不相同,则说明图像不满足要求,可以根据平均亮度信息与目标亮度信息的比较结果和预设亮度区间的像素点占比,调整图像传感器的曝光量,调整后继续拍摄下一帧图像并处理,直至图像满足要求。
在曝光量调整过程中,针对同样的平均亮度信息,暗部占比较大的情况比暗部占比较小的情况,要增加更多的曝光量。举例来说,当前图像的平均亮度信息为A1,目标亮度信息为2*A1,若暗部占比为10%,那么最终曝光量调整到x1,图像的平均亮度信息可以达到2*A1,若暗部数量只有1%,那么曝光量最终调整到x2就可以达到2*A1,其中,x1>x2。
本实施例提供的曝光控制方法,可以在获取拍摄的图像后,将图像的平均亮度信息与目标亮度信息进行比较,并根据比较结果和预设亮度区间的像素点占比,调整图像传感器的曝光量,能够提供更好的曝光收敛速度,尤其能够提高在极度亮、暗场景下的曝光收敛速度,有效提高曝光量调整的效率,节约拍摄的时间,提高用户视觉体验。
以上实施例提供了一种通过基础曝光量和比例系数来调整图像传感器曝光量的方案。在另一可选的实现方式中,根据比较结果和预设亮度区间的像素点占比,调整图像传感器的曝光量,可以包括:若图像的平均亮度信息大于目标亮度信息,则根据平均亮度信息和目标亮度信息的亮度信息比值以及亮部占比,调整图像传感器的曝光量。
可选的,根据平均亮度信息和目标亮度信息的亮度信息比值以及亮部占比,调整图像传感器的曝光量,可以包括:根据平均亮度信息和目标亮度信息的亮度信息比值,通过关于亮度信息比值的指数函数计算调整前的曝光量与调整后的曝光量的曝光量比值;根据通过指数函数计算得到的曝光量比值,调整图像传感器的曝光量;其中,指数函数的底数包括亮部占比。
具体来说,关于亮度信息比值的指数函数,可以是指指数函数的变量包括亮度信息比值,即变量可以是亮部信息比值的函数,例如,指数函数的变量可以为亮度信息比值与一系数之和或乘积等。指数函数的底数包括亮部占比,可以是指底数是亮部占比的函数,例如指数函数的底数可以为亮部占比与一系数之和或乘积等。
为了保证亮度信息比值/亮部占比与调整后的曝光量的相关关系不变,指数函数的变量与亮度信息比值可以为正相关关系,指数函数的底数与亮部占比可以为正相关关系。本领域技术人员可以根据实际需要调整指数函数的底数和变量的具体形式,本实施例对此不作限制。
图6为本发明实施例提供的一种基于指数函数的曝光量比值与亮度信息比值的对应关系示意图。如图6所示,横轴为图像的平均亮度信息与目标亮度信息的比值,纵轴为调整前的曝光量与调整后的曝光量的比值,图中的曲线表示通过指数函数计算曝光量比值的方案,直线表示通过线性函数计算曝光量比值的方案,以更加清楚地对两种方案进行对比。在一个实施方式中,曝光量可以曝光时间。
图6中,直线可以用线性函数y=x表示,其中y为调整前的曝光量与调整后的曝光量的曝光量比值,x为平均亮度信息和目标亮度信息的亮度信息比值,调整前的曝光量与调整后的曝光量的曝光量比值可以等于平均亮度信息和目标亮度信息的亮度信息比值,当平均亮度信息是目标亮度信息的N倍时,调整后的曝光量为调整前的曝光量的1/N倍。
在通过指数函数计算调整前的曝光量与调整后的曝光量的曝光量比值时,指数函数的底数可以包括亮部占比,指数函数的变量可以包括平均亮度信息和目标亮度信息的亮度信息比值。
图6中,曲线可以用函数y=a
(x-1)表示,其中,y为调整前的曝光量与调整后的曝光量的比值,x为平均亮度信息和目标亮度信息的亮度信息比值,x>1,底数a与亮部占比为正相关关系,且a>1,例如a可以为亮部占比乘以大于1的系数。
如图6所示,在平均亮度信息远离目标亮度信息时,即x远离1时,通过指数函数确定的曝光量比值相对于通过线性函数确定的曝光量比值更大,即通过指数函数确定的调整后的曝光量更小,以减少更多的曝光量,从而实现快速收敛,提高曝光量调整的效率。在平均亮度信息靠近目标亮度信息时,即x靠近1时,通过指数函数确定的曝光量比值相对于通过线性函数确定的曝光量比值更小,即通过指数函数确定的调整后的曝光量相对于线性函数确定的曝光量更大,以实现平稳收敛,保证曝光量调整的稳定性。
亮部占比决定了指数函数的底数,亮部占比越大,曲线越抖,从而可以实现更加激进的调整策略,在亮部占比过高时能够减少更多的曝光量,提高在极亮场景下的曝光收敛速度,节约拍摄的时间。
在又一可选的实现方式中,根据比较结果和预设亮度区间的像素点占比,调整图像传感器的曝光量,可以包括:若图像的平均亮度信息小于目标亮度信息,则根据平均亮度信息和目标亮度信息的亮度信息比值以及暗部占比,调整图像传感器的曝光量。
其中,根据平均亮度信息和目标亮度信息的亮度信息比值以及暗部占比,调整图像传感器的曝光量,可以包括:根据平均亮度信息和目标亮度信息的亮度信息比值,通过关于亮度信息比值的对数函数计算调整后的曝光量与调整前的曝光量的曝光量比值;根据通过对数函数计算得到的曝光量比值,调整图像传感器的曝光量;其中,对数函数的底数包括暗部占比。
具体来说,关于亮度信息比值的对数函数,可以是指对数函数的变量包括亮度信息比值,即变量可以是暗部信息比值的函数,例如,对数函数的变量可以为亮度信息比值与一系数之和或乘积等。对数函数的底数包括暗部占比,可以是指底数是暗部占比的函数,例如对数函数的底数可以为暗部占比与一系数之和或乘积等。
其中,对数函数的变量与亮度信息比值可以为正相关关系,对数函数的底数与暗部占比可以为正相关关系。本领域技术人员可以根据实际需要调整对数函数的底数和变量的具体形式,本实施例对此不作限制。
图7为本发明实施例提供的一种基于对数函数的曝光量比值与亮度信息比值的对应关系示意图。如图7所示,横轴为图像的平均亮度信息与目标亮度信息的比值,纵轴为调整后的曝光量与调整前的曝光量的比值,图中的曲线表示通过对数函数计算曝光量比值的方案,直线表示通过线性函数计算曝光量比值的方案,以更加清楚地对两种方案进行对比。
图7中,直线可以用线性函数y=2-x表示,其中y为调整后的曝光量与调整前的曝光量的曝光量比值,x为平均亮度信息和目标亮度信息的亮度信息比值,当平均亮度信息和目标亮度信息的亮度信息比值增加时,调整后的曝光量与调整前的曝光量的曝光量比值线性减少。
在通过对数函数计算调整后的曝光量与调整前的曝光量的曝光量比值时,对数函数的底数可以包括暗部占比,对数函数的变量可以包括平均亮度信息和目标亮度信息的亮度信息比值。
图7中,曲线可以用函数y=log
ax+1表示,其中,y为调整后的曝光量与调整前的曝光量的曝光量比值,x为平均亮度信息和目标亮度信息的亮度信息比值,x<1,底数a与暗部占比为正相关关系,且a<1。例如,a可以为暗部占比,或者a可以为暗部占比乘一系数。
如图7所示,在平均亮度信息远离目标亮度信息时,即x远离1时,通过对数函数确定的曝光量比值相对于通过线性函数确定的曝光量比值更大,即通过对数函数确定的调整后的曝光量更大,以增加更多的曝光量,从而实现快速收敛,提高曝光量调整的效率。在平均亮度信息靠近目标亮度信息时,即x靠近1时,通过对数函数确定的曝光量比值相对于通过线性函数确定的曝光量比值更小,即通过对数函数确定的调整后的曝光量更小,以实现平稳收敛,保证曝光量调整的稳定性。
暗部占比决定了对数函数的底数,暗部占比越大,曲线越抖,从而可以实现更加激进的调整策略,在暗部占比过高时能够减少更多的曝光量,提高在极暗场景下的曝光收敛速度,节约拍摄的时间。
通过图6和图7所示的方案,能够根据图像的亮部占比和暗部占比,预测当前图像的实际曝光水平,在平均亮度信息与目标亮度信息的亮度信息比值固定的情况下,亮部占比与调整后的曝光量为负相关关系,暗部占比与调整后的曝光量为正相关关系,从而使得拍摄设备在曝光收敛时的速度更快,且更加稳定,在较暗的夜景,或者晴天大太阳下,也能够实现较好的快速收敛效果。
可以理解的是,图6和图7只是示例性的,本领域技术人员可以根据实际需要来调整以上方案,例如,可以在通过增加常数、乘以系数等方式对函数进行调整。
图8为本发明实施例提供的又一种曝光控制方法的流程示意图。如图8所示,曝光控制方法可以包括:
步骤801、通过拍摄设备的图像传感器获取关于待拍摄物体的光信号。
步骤802、将光信号转换为关于待拍摄物体的电信号,电信号为数字信号,以形成图像。
步骤803、通过数字信号,确定图像中预设亮度区间的像素点占比。
步骤804、根据预设亮度区间的像素点占比调整图像传感器的曝光量。
本实施例中,确定预设亮度区间的像素点占比以及根据预设亮度区间的像素点占比调整图像传感器的曝光量的具体实现原理和过程可以参考前述各实施例,此处不再赘述。
除了前述各实施例中提供的根据图像的平均亮度信息和目标亮度信息的比较结果以及预设亮度区间的像素点占比调整图像传感器的曝光量的方案以外,还可以通过其它方式实现根据预设亮度区间的像素点占比调整图像传感器的曝光量。
在一个可选的实施方式中,预设亮度区间的像素点占比,可以包括:亮部占比和/或暗部占比;暗部占比为图像中像素值小于第一数值的像素点的比例;亮部占比为图像中像素值大于第二数值的像素点的比例。
对图像传感器的曝光量进行调整的目的可以为使得图像的亮部占比和暗 部占比相等。可选的,根据预设亮度区间的像素点占比调整图像传感器的曝光量,可以包括:若图像的亮部占比大于暗部占比,则减少亮度传感器的曝光量;和/或,若图像的暗部占比大于亮部占比,则增加亮度传感器的曝光量。
具体来说,图像中的亮部占比远大于暗部占比,或者亮部占比远小于暗部占比时,说明图像中已有过多的点超过了拍摄设备可感知的动态范围,此时可以调整曝光量,使得图像的亮部占比和暗部占比相等,既不会太暗,也不会太亮,从而使图像的曝光量适应于当前环境,提高图像的拍摄效果。
在另一可选的实施方式中,可以为亮部占比和/或暗部占比设置对应的阈值,并通过与阈值进行比较来实现对曝光量的调整。
可选的,根据预设亮度区间的像素点占比调整图像传感器的曝光量,可以包括:若亮部占比大于亮部阈值,则减少亮度传感器的曝光量;或者,若暗部占比大于暗部阈值,则增加亮度传感器的曝光量。这样,可以将图像中的亮部占比或暗部占比调整到对应的阈值,能够快速实现曝光量的调整,同时防止图像中过亮或者过暗的点过多,使得拍摄的图像能够有效反映待拍摄物体的亮度信息,提高图像拍摄效果。
本实施例提供的曝光控制方法,通过拍摄设备的图像传感器获取关于待拍摄物体的光信号,将光信号转换为关于待拍摄物体的电信号,电信号为数字信号,以形成图像,通过数字信号,确定图像中预设亮度区间的像素点占比,根据预设亮度区间的像素点占比,可以快速实现曝光量的调整,提高拍摄的效率和用户体验度。
在一可选的实施方式中,通过数字信号,确定图像中预设亮度区间的像素点占比,包括:
通过数字信号,确定图像对应的亮度直方图;
根据亮度直方图,确定预设亮度区间的像素点占比。
在一可选的实施方式中,根据预设亮度区间的像素点占比调整图像传感器的曝光量,包括:
将图像的平均亮度信息与目标亮度信息进行比较,并根据比较结果和预设亮度区间的像素点占比,调整图像传感器的曝光量。
在一可选的实施方式中,在图像的平均亮度信息小于目标亮度信息时,需增加的曝光量与暗部占比为正相关关系;和/或,
在图像的平均亮度信息大于目标亮度信息时,需减少的曝光量与亮部占 比为正相关关系。
在一可选的实施方式中,根据比较结果和预设亮度区间的像素点占比,调整图像传感器的曝光量,包括:
根据平均亮度信息和目标亮度信息的亮度信息比值,确定基础曝光量;
根据预设亮度区间的像素点占比,确定比例系数;
根据基础曝光量与比例系数,调整图像传感器的曝光量。
在一可选的实施方式中,根据比较结果和预设亮度区间的像素点占比,调整图像传感器的曝光量,包括:
若图像的平均亮度信息小于目标亮度信息,则根据平均亮度信息和目标亮度信息的亮度信息比值以及暗部占比,调整图像传感器的曝光量。
在一可选的实施方式中,在暗部占比固定时,需增加的曝光量与平均亮度信息与目标亮度信息的亮度信息比值为负相关关系。
在一可选的实施方式中,根据平均亮度信息和目标亮度信息的亮度信息比值以及暗部占比,调整图像传感器的曝光量,包括:
根据平均亮度信息和目标亮度信息的亮度信息比值,通过关于亮度信息比值的对数函数计算调整后的曝光量与调整前的曝光量的曝光量比值;
根据通过对数函数计算得到的曝光量比值,调整图像传感器的曝光量;
其中,对数函数的底数包括暗部占比。
在一可选的实施方式中,根据比较结果和预设亮度区间的像素点占比,调整图像传感器的曝光量,包括:
若图像的平均亮度信息大于目标亮度信息,则根据平均亮度信息和目标亮度信息的亮度信息比值以及亮部占比,调整图像传感器的曝光量。
在一可选的实施方式中,在亮部占比固定时,需减少的曝光量与平均亮度信息与目标亮度信息的亮度信息比值为正相关关系。
在一可选的实施方式中,根据平均亮度信息和目标亮度信息的亮度信息比值以及亮部占比,调整图像传感器的曝光量,包括:
根据平均亮度信息和目标亮度信息的亮度信息比值,通过关于亮度信息比值的指数函数计算调整前的曝光量与调整后的曝光量的曝光量比值;
根据通过指数函数计算得到的曝光量比值,调整图像传感器的曝光量;
其中,指数函数的底数包括亮部占比。
在一可选的实施方式中,根据预设亮度区间的像素点占比调整图像传感 器的曝光量,包括:
根据预设亮度区间的像素点占比,调整下述至少一项:光圈大小、曝光时间、曝光增益,以调整图像传感器的曝光量。
在一可选的实施方式中,方法还包括:根据环境亮度确定目标亮度信息。
本实施例未详细描述的部分,可参考对图1-图7所示实施例的相关说明。
另外,需要注意的是,本发明各实施例中的步骤的执行顺序并不限于上述序号所限定的顺序,本领域技术人员可以根据具体的应用需求和设计需求进行任意配置,在此不再赘述。
图9为本发明实施例提供的一种曝光控制装置的结构示意图。曝光控制装置可以执行上述图1所对应的曝光控制方法,参考附图9所示,曝光控制装置可以包括:
存储器11,用于存储计算机程序;
处理器12,用于运行存储器中存储的计算机程序以实现:
获取关于待拍摄物体的光信号经过拍摄设备的图像传感器转换后得到的关于待拍摄物体的数字信号,以形成图像;
通过数字信号,确定图像的亮度信息;
将亮度信息与目标亮度信息进行比较,并根据比较结果调整图像传感器的曝光量。
可选的,该曝光控制装置的结构中还可以包括通信接口13,用于与其他设备或通信网络通信。
在一个可实施的方式中,对于不同的亮度信息,增加或减少的曝光量不同。
在一个可实施的方式中,图像的亮度信息包括图像的平均亮度信息;
在将亮度信息与目标亮度信息进行比较,并根据比较结果调整图像传感器的曝光量时,处理器12具体用于:
将平均亮度信息与目标亮度信息进行比较,并根据比较结果调整图像传感器的曝光量。
在一个可实施的方式中,在将图像的平均亮度信息与目标亮度信息进行比较,并根据比较结果调整图像传感器的曝光量时,处理器12具体用于:
在平均亮度信息小于目标亮度信息时,增加图像传感器的曝光量,其中, 增加的曝光量与平均亮度信息为负相关关系;
在平均亮度信息大于目标亮度信息时,减少图像传感器的曝光量,其中,减少的曝光量与平均亮度信息为正相关关系。
在一个可实施的方式中,平均亮度信息与目标亮度信息的比值等于调整前的曝光量与调整后的曝光量的比值。
在一个可实施的方式中,在平均亮度信息小于目标亮度信息时,调整后的曝光量与平均亮度信息的乘积大于调整前的曝光量与目标亮度信息的乘积;以及
在平均亮度信息大于目标亮度信息时,调整后的曝光量与平均亮度的乘积小于调整前的曝光量与目标亮度信息的乘积。
在一个可实施的方式中,在将图像的平均亮度信息与目标亮度信息进行比较,并根据比较结果调整图像传感器的曝光量时,处理器12具体用于:
将图像的平均亮度信息与目标亮度信息进行比较,并根据比较结果和预设亮度区间的像素点占比,调整图像传感器的曝光量。
在一个可实施的方式中,预设亮度区间的像素点占比,包括:亮部占比和/或暗部占比;
暗部占比为图像中像素值小于第一数值的像素点的比例;
亮部占比为图像中像素值大于第二数值的像素点的比例。
在一个可实施的方式中,处理器12还用于:
根据图像,确定对应的亮度直方图;
根据亮度直方图,确定预设亮度区间的像素点占比。
在一个可实施的方式中,在图像的平均亮度信息小于目标亮度信息时,需增加的曝光量与暗部占比为正相关关系;和/或,
在图像的平均亮度信息大于目标亮度信息时,需减少的曝光量与亮部占比为正相关关系。
在一个可实施的方式中,在根据比较结果和预设亮度区间的像素点占比,调整图像传感器的曝光量时,处理器12具体用于:
根据平均亮度信息和目标亮度信息的亮度信息比值,确定基础曝光量;
根据预设亮度区间的像素点占比,确定比例系数;
根据基础曝光量与比例系数,调整图像传感器的曝光量。
在一个可实施的方式中,在根据比较结果和预设亮度区间的像素点占比, 调整图像传感器的曝光量时,处理器12具体用于:
若图像的平均亮度信息小于目标亮度信息,则根据平均亮度信息和目标亮度信息的亮度信息比值以及暗部占比,调整图像传感器的曝光量。
在一个可实施的方式中,在根据平均亮度信息和目标亮度信息的亮度信息比值以及暗部占比,调整图像传感器的曝光量时,处理器12具体用于:
根据平均亮度信息和目标亮度信息的亮度信息比值,通过关于亮度信息比值的对数函数计算调整后的曝光量与调整前的曝光量的曝光量比值;
根据通过对数函数计算得到的曝光量比值,调整图像传感器的曝光量;
其中,对数函数的底数包括暗部占比。
在一个可实施的方式中,在根据比较结果和预设亮度区间的像素点占比,调整图像传感器的曝光量时,处理器12具体用于:
若图像的平均亮度信息大于目标亮度信息,则根据平均亮度信息和目标亮度信息的亮度信息比值以及亮部占比,调整图像传感器的曝光量。
在一个可实施的方式中,在根据平均亮度信息和目标亮度信息的亮度信息比值以及亮部占比,调整图像传感器的曝光量时,处理器12具体用于:
根据平均亮度信息和目标亮度信息的亮度信息比值,通过关于亮度信息比值的指数函数计算调整前的曝光量与调整后的曝光量的曝光量比值;
根据通过指数函数计算得到的曝光量比值,调整图像传感器的曝光量;
其中,指数函数的底数包括亮部占比。
在一个可实施的方式中,在将亮度信息与目标亮度信息进行比较,并根据比较结果调整图像传感器的曝光量时,处理器12具体用于:
将亮度信息与目标亮度信息进行比较,并根据比较结果调整下述至少一项:光圈大小、曝光时间、曝光增益,以调整图像传感器的曝光量。
在一个可实施的方式中,处理器12还用于:
根据环境亮度确定目标亮度信息。
图9所示曝光控制装置可以执行图1-图7所示实施例的方法,本实施例未详细描述的部分,可参考对图1-图7所示实施例的相关说明。该技术方案的执行过程和技术效果参见图1-图7所示实施例中的描述,在此不再赘述。
图10为本发明实施例提供的另一种曝光控制装置的结构示意图。曝光控制装置可以执行上述图8所对应的曝光控制方法,参考附图10所示,曝光控制 装置可以包括:
存储器21,用于存储计算机程序;
处理器22,用于运行存储器中存储的计算机程序以实现:
获取关于待拍摄物体的光信号经过拍摄设备的图像传感器转换后得到的关于待拍摄物体的数字信号,以形成图像;
通过数字信号,确定图像中预设亮度区间的像素点占比;
根据预设亮度区间的像素点占比调整图像传感器的曝光量。
可选的,该曝光控制装置的结构中还可以包括通信接口23,用于与其他设备或通信网络通信。
在一个可实施的方式中,预设亮度区间的像素点占比,包括:亮部占比和/或暗部占比;
暗部占比为图像中像素值小于第一数值的像素点的比例;
亮部占比为图像中像素值大于第二数值的像素点的比例。
在一个可实施的方式中,在通过数字信号,确定图像中预设亮度区间的像素点占比时,处理器22具体用于:
通过数字信号,确定图像对应的亮度直方图;
根据亮度直方图,确定预设亮度区间的像素点占比。
在一个可实施的方式中,在根据预设亮度区间的像素点占比调整图像传感器的曝光量时,处理器22具体用于:
将图像的平均亮度信息与目标亮度信息进行比较,并根据比较结果和预设亮度区间的像素点占比,调整图像传感器的曝光量。
在一个可实施的方式中,在图像的平均亮度信息小于目标亮度信息时,需增加的曝光量与暗部占比为正相关关系;和/或,
在图像的平均亮度信息大于目标亮度信息时,需减少的曝光量与亮部占比为正相关关系。
在一个可实施的方式中,在根据比较结果和预设亮度区间的像素点占比,调整图像传感器的曝光量时,处理器22具体用于:
根据平均亮度信息和目标亮度信息的亮度信息比值,确定基础曝光量;
根据预设亮度区间的像素点占比,确定比例系数;
根据基础曝光量与比例系数,调整图像传感器的曝光量。
在一个可实施的方式中,在根据比较结果和预设亮度区间的像素点占比, 调整图像传感器的曝光量时,处理器22具体用于:
若图像的平均亮度信息小于目标亮度信息,则根据平均亮度信息和目标亮度信息的亮度信息比值以及暗部占比,调整图像传感器的曝光量。
在一个可实施的方式中,在暗部占比固定时,需增加的曝光量与平均亮度信息与目标亮度信息的亮度信息比值为负相关关系。
在一个可实施的方式中,在根据平均亮度信息和目标亮度信息的亮度信息比值以及暗部占比,调整图像传感器的曝光量时,处理器22具体用于:
根据平均亮度信息和目标亮度信息的亮度信息比值,通过关于亮度信息比值的对数函数计算调整后的曝光量与调整前的曝光量的曝光量比值;
根据通过对数函数计算得到的曝光量比值,调整图像传感器的曝光量;
其中,对数函数的底数包括暗部占比。
在一个可实施的方式中,在根据比较结果和预设亮度区间的像素点占比,调整图像传感器的曝光量时,处理器22具体用于:
若图像的平均亮度信息大于目标亮度信息,则根据平均亮度信息和目标亮度信息的亮度信息比值以及亮部占比,调整图像传感器的曝光量。
在一个可实施的方式中,在亮部占比固定时,需减少的曝光量与平均亮度信息与目标亮度信息的亮度信息比值为正相关关系。
在一个可实施的方式中,在根据平均亮度信息和目标亮度信息的亮度信息比值以及亮部占比,调整图像传感器的曝光量时,处理器22具体用于:
根据平均亮度信息和目标亮度信息的亮度信息比值,通过关于亮度信息比值的指数函数计算调整前的曝光量与调整后的曝光量的曝光量比值;
根据通过指数函数计算得到的曝光量比值,调整图像传感器的曝光量;
其中,指数函数的底数包括亮部占比。
在一个可实施的方式中,在根据预设亮度区间的像素点占比调整图像传感器的曝光量时,处理器22具体用于:
根据预设亮度区间的像素点占比,调整下述至少一项:光圈大小、曝光时间、曝光增益,以调整图像传感器的曝光量。
在一个可实施的方式中,处理器22还用于:
根据环境亮度确定目标亮度信息。
图10所示曝光控制装置可以执行图8所示实施例的方法,本实施例未详细描述的部分,可参考对图8所示实施例的相关说明。该技术方案的执行过程和 技术效果参见图8所示实施例中的描述,在此不再赘述。
图11为本发明实施例提供的又一种曝光控制装置的结构示意图。曝光控制装置可以执行上述图1-图7所对应的曝光处理方法,参考附图11所示,曝光控制装置可以包括:
图像传感器31,用于获取关于待拍摄物体的光信号,将光信号转换为关于待拍摄物体的电信号,电信号为数字信号,以形成图像;
确定电路32,用于通过数字信号,确定图像的亮度信息;
处理电路33,用于将亮度信息与目标亮度信息进行比较,并根据比较结果调整图像传感器31的曝光量。
在一个可实施的方式中,对于不同的亮度信息,增加或减少的曝光量不同。
在一个可实施的方式中,图像的亮度信息包括图像的平均亮度信息;
在将亮度信息与目标亮度信息进行比较,并根据比较结果调整图像传感器31的曝光量时,处理电路33具体用于:
将平均亮度信息与目标亮度信息进行比较,并根据比较结果调整图像传感器31的曝光量。
在一个可实施的方式中,在将图像的平均亮度信息与目标亮度信息进行比较,并根据比较结果调整图像传感器31的曝光量时,处理电路33具体用于:
在平均亮度信息小于目标亮度信息时,增加图像传感器31的曝光量,其中,增加的曝光量与平均亮度信息为负相关关系;
在平均亮度信息大于目标亮度信息时,减少图像传感器31的曝光量,其中,减少的曝光量与平均亮度信息为正相关关系。
在一个可实施的方式中,平均亮度信息与目标亮度信息的比值等于调整前的曝光量与调整后的曝光量的比值。
在一个可实施的方式中,在平均亮度信息小于目标亮度信息时,调整后的曝光量与平均亮度信息的乘积大于调整前的曝光量与目标亮度信息的乘积;以及
在平均亮度信息大于目标亮度信息时,调整后的曝光量与平均亮度的乘积小于调整前的曝光量与目标亮度信息的乘积。
在一个可实施的方式中,在将图像的平均亮度信息与目标亮度信息进行 比较,并根据比较结果调整图像传感器31的曝光量时,处理电路33具体用于:
将图像的平均亮度信息与目标亮度信息进行比较,并根据比较结果和预设亮度区间的像素点占比,调整图像传感器31的曝光量。
在一个可实施的方式中,预设亮度区间的像素点占比,包括:亮部占比和/或暗部占比;
暗部占比为图像中像素值小于第一数值的像素点的比例;
亮部占比为图像中像素值大于第二数值的像素点的比例。
在一个可实施的方式中,处理电路33还用于:
根据图像,确定对应的亮度直方图;
根据亮度直方图,确定预设亮度区间的像素点占比。
在一个可实施的方式中,在图像的平均亮度信息小于目标亮度信息时,需增加的曝光量与暗部占比为正相关关系;和/或,
在图像的平均亮度信息大于目标亮度信息时,需减少的曝光量与亮部占比为正相关关系。
在一个可实施的方式中,在根据比较结果和预设亮度区间的像素点占比,调整图像传感器31的曝光量时,处理电路33具体用于:
根据平均亮度信息和目标亮度信息的亮度信息比值,确定基础曝光量;
根据预设亮度区间的像素点占比,确定比例系数;
根据基础曝光量与比例系数,调整图像传感器31的曝光量。
在一个可实施的方式中,在根据比较结果和预设亮度区间的像素点占比,调整图像传感器31的曝光量时,处理电路33具体用于:
若图像的平均亮度信息小于目标亮度信息,则根据平均亮度信息和目标亮度信息的亮度信息比值以及暗部占比,调整图像传感器31的曝光量。
在一个可实施的方式中,在根据平均亮度信息和目标亮度信息的亮度信息比值以及暗部占比,调整图像传感器31的曝光量时,处理电路33具体用于:
根据平均亮度信息和目标亮度信息的亮度信息比值,通过关于亮度信息比值的对数函数计算调整后的曝光量与调整前的曝光量的曝光量比值;
根据通过对数函数计算得到的曝光量比值,调整图像传感器31的曝光量;
其中,对数函数的底数包括暗部占比。
在一个可实施的方式中,在根据比较结果和预设亮度区间的像素点占比,调整图像传感器31的曝光量时,处理电路33具体用于:
若图像的平均亮度信息大于目标亮度信息,则根据平均亮度信息和目标亮度信息的亮度信息比值以及亮部占比,调整图像传感器31的曝光量。
在一个可实施的方式中,在根据平均亮度信息和目标亮度信息的亮度信息比值以及亮部占比,调整图像传感器31的曝光量时,处理电路33具体用于:
根据平均亮度信息和目标亮度信息的亮度信息比值,通过关于亮度信息比值的指数函数计算调整前的曝光量与调整后的曝光量的曝光量比值;
根据通过指数函数计算得到的曝光量比值,调整图像传感器31的曝光量;
其中,指数函数的底数包括亮部占比。
在一个可实施的方式中,在将亮度信息与目标亮度信息进行比较,并根据比较结果调整图像传感器31的曝光量时,处理电路33具体用于:
将亮度信息与目标亮度信息进行比较,并根据比较结果调整下述至少一项:光圈大小、曝光时间、曝光增益,以调整图像传感器31的曝光量。
在一个可实施的方式中,处理电路33还用于:
根据环境亮度确定目标亮度信息。
图11所示曝光控制装置可以执行图1-图7所示实施例的方法。可以理解的是,图1-图7所示实施例的方法,可以通过硬件电路来实现。例如,根据数字信号计算图像的亮度信息,可以通过累加器来实现;计算比值可以通过除法器来实现;调整曝光量可以通过向对应的装置发送指令来实现,例如可以向光圈驱动装置发送指令,以使光圈驱动装置根据指令驱动光圈,从而调整曝光量。
此外,以上电路还可以通过集成的芯片来实现。例如,确定电路32可以实现为一图像信号处理器(Image Signal Processor,ISP),通过图像信号处理器可以快速地在硬件层面实现图像亮度信息的计算。同理,处理电路33可以实现为一处理器,例如数字信号处理器(Digital Signal Processor,DSP)、现场可编程逻辑门阵列(Field Programmable Gate Array、FPGA)等。
本实施例未详细描述的部分,可参考对图1-图7所示实施例的相关说明。该技术方案的执行过程和技术效果参见图1-图7所示实施例中的描述,在此不再赘述。
图12为本发明实施例提供的又一种曝光控制装置的结构示意图。曝光控 制装置可以执行上述图8所对应的曝光处理方法,参考附图12所示,曝光控制装置可以包括:
图像传感器41,用于获取关于待拍摄物体的光信号,将光信号转换为关于待拍摄物体的电信号,电信号为数字信号,以形成图像;
确定电路42,用于通过数字信号,确定图像中预设亮度区间的像素点占比;
处理电路43,用于根据预设亮度区间的像素点占比调整图像传感器41的曝光量。
在一个可实施的方式中,预设亮度区间的像素点占比,包括:亮部占比和/或暗部占比;
暗部占比为图像中像素值小于第一数值的像素点的比例;
亮部占比为图像中像素值大于第二数值的像素点的比例。
在一个可实施的方式中,在通过数字信号,确定图像中预设亮度区间的像素点占比时,确定电路42具体用于:
通过数字信号,确定图像对应的亮度直方图;
根据亮度直方图,确定预设亮度区间的像素点占比。
在一个可实施的方式中,在根据预设亮度区间的像素点占比调整图像传感器41的曝光量时,处理电路43具体用于:
将图像的平均亮度信息与目标亮度信息进行比较,并根据比较结果和预设亮度区间的像素点占比,调整图像传感器41的曝光量。
在一个可实施的方式中,在图像的平均亮度信息小于目标亮度信息时,需增加的曝光量与暗部占比为正相关关系;和/或,
在图像的平均亮度信息大于目标亮度信息时,需减少的曝光量与亮部占比为正相关关系。
在一个可实施的方式中,在根据比较结果和预设亮度区间的像素点占比,调整图像传感器41的曝光量时,处理电路43具体用于:
根据平均亮度信息和目标亮度信息的亮度信息比值,确定基础曝光量;
根据预设亮度区间的像素点占比,确定比例系数;
根据基础曝光量与比例系数,调整图像传感器41的曝光量。
在一个可实施的方式中,在根据比较结果和预设亮度区间的像素点占比,调整图像传感器41的曝光量时,处理电路43具体用于:
若图像的平均亮度信息小于目标亮度信息,则根据平均亮度信息和目标亮度信息的亮度信息比值以及暗部占比,调整图像传感器41的曝光量。
在一个可实施的方式中,在暗部占比固定时,需增加的曝光量与平均亮度信息与目标亮度信息的亮度信息比值为负相关关系。
在一个可实施的方式中,在根据平均亮度信息和目标亮度信息的亮度信息比值以及暗部占比,调整图像传感器41的曝光量时,处理电路43具体用于:
根据平均亮度信息和目标亮度信息的亮度信息比值,通过关于亮度信息比值的对数函数计算调整后的曝光量与调整前的曝光量的曝光量比值;
根据通过对数函数计算得到的曝光量比值,调整图像传感器41的曝光量;
其中,对数函数的底数包括暗部占比。
在一个可实施的方式中,在根据比较结果和预设亮度区间的像素点占比,调整图像传感器41的曝光量时,处理电路43具体用于:
若图像的平均亮度信息大于目标亮度信息,则根据平均亮度信息和目标亮度信息的亮度信息比值以及亮部占比,调整图像传感器41的曝光量。
在一个可实施的方式中,在亮部占比固定时,需减少的曝光量与平均亮度信息与目标亮度信息的亮度信息比值为正相关关系。
在一个可实施的方式中,在根据平均亮度信息和目标亮度信息的亮度信息比值以及亮部占比,调整图像传感器41的曝光量时,处理电路43具体用于:
根据平均亮度信息和目标亮度信息的亮度信息比值,通过关于亮度信息比值的指数函数计算调整前的曝光量与调整后的曝光量的曝光量比值;
根据通过指数函数计算得到的曝光量比值,调整图像传感器41的曝光量;
其中,指数函数的底数包括亮部占比。
在一个可实施的方式中,在根据预设亮度区间的像素点占比调整图像传感器41的曝光量时,处理电路43具体用于:
根据预设亮度区间的像素点占比,调整下述至少一项:光圈大小、曝光时间、曝光增益,以调整图像传感器41的曝光量。
在一个可实施的方式中,还处理电路43具体用于:
根据环境亮度确定目标亮度信息。
图12所示曝光控制装置可以执行图8所示实施例的方法。可以理解的是,图8所示实施例的方法,可以通过硬件电路来实现。例如,根据数字信号计算图像中预设亮度区间的像素点占比,可以通过比较器、累加器、除法器等来 实现;调整曝光量可以通过向对应的装置发送指令来实现,例如可以向光圈驱动装置发送指令,以使光圈驱动装置根据指令驱动光圈,从而调整曝光量。
此外,以上电路还可以通过集成的芯片来实现。例如,确定电路42可以实现为一图像信号处理器,通过图像信号处理器可以快速地在硬件层面实现图像亮度信息的计算。同理,处理电路43可以实现为一处理器,例如数字信号处理器、现场可编程逻辑门阵列等。
本实施例未详细描述的部分,可参考对图8所示实施例的相关说明。该技术方案的执行过程和技术效果参见图8所示实施例中的描述,在此不再赘述。
本发明实施例还提供一种拍摄设备,包括图9或图10所示的曝光控制装置。可选的,拍摄设备还可以包括图像传感器。
本发明实施例还提供另一种拍摄设备,包括图11或图12所示的曝光控制装置。
本发明各实施例的拍摄设备可以为任意具有拍摄功能的设备,包括但不限于:手机相机、运动相机、飞机相机、专业相机、红外相机等。
本发明实施例提供的拍摄设备中各部件的结构、功能均可以参见前述实施例,此处不再赘述。
本发明实施例还提供一种可移动平台,包括以上的拍摄设备。其中,可移动平台可以为无人机或无人车等。
图13为本发明实施例提供的一种可移动平台的结构示意图。如图13所示,可移动平台可以包括:机体131、动力***132和拍摄设备133。
其中,拍摄设备133和动力***132设于机体131,动力***132用于为可移动平台提供动力。拍摄设备133可以执行前述任一实施例的曝光控制方法。
本发明实施例提供的可移动平台中各部件的结构、功能均可以参见前述实施例,此处不再赘述。
另外,本发明实施例提供了一种可读存储介质,可读存储介质中存储有指令,指令在拍摄设备上运行时,使得拍摄设备执行如上述图1-图8所示实施例中的曝光控制方法。
以上各个实施例中的技术方案、技术特征在与本相冲突的情况下均可以单独,或者进行组合,只要未超出本领域技术人员的认知范围,均属于本发明保护范围内的等同实施例。
在本发明所提供的几个实施例中,应该理解到,所揭露的相关装置和方 法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个***,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得计算机处理器(processor)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read_Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁盘或者光盘等各种可以存储程序代码的介质。
以上所述仅为本发明的实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。
Claims (71)
- 一种曝光控制方法,其特征在于,包括:通过拍摄设备的图像传感器获取关于待拍摄物体的光信号;将所述光信号转换为关于所述待拍摄物体的电信号,所述电信号为数字信号,以形成图像;通过所述数字信号,确定所述图像的亮度信息;将所述亮度信息与目标亮度信息进行比较,并根据比较结果调整所述图像传感器的曝光量。
- 根据权利要求1所述的方法,其特征在于,对于不同的亮度信息,增加或减少的曝光量不同。
- 根据权利要求1所述的方法,其特征在于,所述图像的亮度信息包括所述图像的平均亮度信息;将所述亮度信息与目标亮度信息进行比较,并根据比较结果调整所述图像传感器的曝光量,包括:将所述平均亮度信息与目标亮度信息进行比较,并根据比较结果调整所述图像传感器的曝光量。
- 根据权利要求3所述的方法,其特征在于,将所述图像的平均亮度信息与目标亮度信息进行比较,并根据比较结果调整所述图像传感器的曝光量,包括:在所述平均亮度信息小于所述目标亮度信息时,增加所述图像传感器的曝光量,其中,增加的曝光量与所述平均亮度信息为负相关关系;在所述平均亮度信息大于所述目标亮度信息时,减少所述图像传感器的曝光量,其中,减少的曝光量与所述平均亮度信息为正相关关系。
- 根据权利要求3所述的方法,其特征在于,所述平均亮度信息与所述目标亮度信息的比值等于调整前的曝光量与调整后的曝光量的比值。
- 根据权利要求3所述的方法,其特征在于,在所述平均亮度信息小于所述目标亮度信息时,调整后的曝光量与所述平均亮度信息的乘积大于调整前的曝光量与所述目标亮度信息的乘积;以及在所述平均亮度信息大于所述目标亮度信息时,调整后的曝光量与所述平均亮度的乘积小于调整前的曝光量与所述目标亮度信息的乘积。
- 根据权利要求3所述的方法,其特征在于,将所述图像的平均亮度信 息与目标亮度信息进行比较,并根据比较结果调整所述图像传感器的曝光量,包括:将所述图像的平均亮度信息与目标亮度信息进行比较,并根据比较结果和预设亮度区间的像素点占比,调整所述图像传感器的曝光量。
- 根据权利要求7所述的方法,其特征在于,所述预设亮度区间的像素点占比,包括:亮部占比和/或暗部占比;所述暗部占比为所述图像中像素值小于第一数值的像素点的比例;所述亮部占比为所述图像中像素值大于第二数值的像素点的比例。
- 根据权利要求7所述的方法,其特征在于,还包括:根据所述图像,确定对应的亮度直方图;根据所述亮度直方图,确定所述预设亮度区间的像素点占比。
- 根据权利要求8所述的方法,其特征在于,在所述图像的平均亮度信息小于目标亮度信息时,需增加的曝光量与所述暗部占比为正相关关系;和/或,在所述图像的平均亮度信息大于目标亮度信息时,需减少的曝光量与所述亮部占比为正相关关系。
- 根据权利要求7所述的方法,其特征在于,根据比较结果和预设亮度区间的像素点占比,调整所述图像传感器的曝光量,包括:根据所述平均亮度信息和目标亮度信息的亮度信息比值,确定基础曝光量;根据所述预设亮度区间的像素点占比,确定比例系数;根据所述基础曝光量与所述比例系数,调整所述图像传感器的曝光量。
- 根据权利要求7所述的方法,其特征在于,根据比较结果和预设亮度区间的像素点占比,调整所述图像传感器的曝光量,包括:若所述图像的平均亮度信息小于所述目标亮度信息,则根据所述平均亮度信息和目标亮度信息的亮度信息比值以及暗部占比,调整所述图像传感器的曝光量。
- 根据权利要求12所述的方法,其特征在于,根据所述平均亮度信息和目标亮度信息的亮度信息比值以及暗部占比,调整所述图像传感器的曝光量,包括:根据所述平均亮度信息和目标亮度信息的亮度信息比值,通过关于所述 亮度信息比值的对数函数计算调整后的曝光量与调整前的曝光量的曝光量比值;根据通过所述对数函数计算得到的所述曝光量比值,调整所述图像传感器的曝光量;其中,所述对数函数的底数包括所述暗部占比。
- 根据权利要求7所述的方法,其特征在于,根据比较结果和预设亮度区间的像素点占比,调整所述图像传感器的曝光量,包括:若所述图像的平均亮度信息大于所述目标亮度信息,则根据所述平均亮度信息和目标亮度信息的亮度信息比值以及亮部占比,调整所述图像传感器的曝光量。
- 根据权利要求14所述的方法,其特征在于,根据所述平均亮度信息和目标亮度信息的亮度信息比值以及亮部占比,调整所述图像传感器的曝光量,包括:根据所述平均亮度信息和目标亮度信息的亮度信息比值,通过关于所述亮度信息比值的指数函数计算调整前的曝光量与调整后的曝光量的曝光量比值;根据通过所述指数函数计算得到的所述曝光量比值,调整所述图像传感器的曝光量;其中,所述指数函数的底数包括所述亮部占比。
- 根据权利要求1所述的方法,其特征在于,将所述亮度信息与目标亮度信息进行比较,并根据比较结果调整所述图像传感器的曝光量,包括:将所述亮度信息与目标亮度信息进行比较,并根据比较结果调整下述至少一项:光圈大小、曝光时间、曝光增益,以调整所述图像传感器的曝光量。
- 根据权利要求1-16中任一项所述的方法,其特征在于,还包括:根据环境亮度确定所述目标亮度信息。
- 一种曝光控制方法,其特征在于,包括:通过拍摄设备的图像传感器获取关于待拍摄物体的光信号;将所述光信号转换为关于所述待拍摄物体的电信号,所述电信号为数字信号,以形成图像;通过所述数字信号,确定所述图像中预设亮度区间的像素点占比;根据所述预设亮度区间的像素点占比调整所述图像传感器的曝光量。
- 根据权利要求18所述的方法,其特征在于,所述预设亮度区间的像素点占比,包括:亮部占比和/或暗部占比;所述暗部占比为所述图像中像素值小于第一数值的像素点的比例;所述亮部占比为所述图像中像素值大于第二数值的像素点的比例。
- 根据权利要求18所述的方法,其特征在于,通过所述数字信号,确定所述图像中预设亮度区间的像素点占比,包括:通过所述数字信号,确定所述图像对应的亮度直方图;根据所述亮度直方图,确定所述预设亮度区间的像素点占比。
- 根据权利要求19所述的方法,其特征在于,根据所述预设亮度区间的像素点占比调整所述图像传感器的曝光量,包括:将所述图像的平均亮度信息与目标亮度信息进行比较,并根据比较结果和预设亮度区间的像素点占比,调整所述图像传感器的曝光量。
- 根据权利要求21所述的方法,其特征在于,在所述图像的平均亮度信息小于目标亮度信息时,需增加的曝光量与所述暗部占比为正相关关系;和/或,在所述图像的平均亮度信息大于目标亮度信息时,需减少的曝光量与所述亮部占比为正相关关系。
- 根据权利要求21所述的方法,其特征在于,根据比较结果和预设亮度区间的像素点占比,调整所述图像传感器的曝光量,包括:根据所述平均亮度信息和目标亮度信息的亮度信息比值,确定基础曝光量;根据所述预设亮度区间的像素点占比,确定比例系数;根据所述基础曝光量与所述比例系数,调整所述图像传感器的曝光量。
- 根据权利要求21所述的方法,其特征在于,根据比较结果和预设亮度区间的像素点占比,调整所述图像传感器的曝光量,包括:若所述图像的平均亮度信息小于所述目标亮度信息,则根据所述平均亮度信息和目标亮度信息的亮度信息比值以及暗部占比,调整所述图像传感器的曝光量。
- 根据权利要求24所述的方法,其特征在于,在所述暗部占比固定时,需增加的曝光量与所述平均亮度信息与所述目 标亮度信息的亮度信息比值为负相关关系。
- 根据权利要求24所述的方法,其特征在于,根据所述平均亮度信息和目标亮度信息的亮度信息比值以及暗部占比,调整所述图像传感器的曝光量,包括:根据所述平均亮度信息和目标亮度信息的亮度信息比值,通过关于所述亮度信息比值的对数函数计算调整后的曝光量与调整前的曝光量的曝光量比值;根据通过所述对数函数计算得到的所述曝光量比值,调整所述图像传感器的曝光量;其中,所述对数函数的底数包括所述暗部占比。
- 根据权利要求21所述的方法,其特征在于,根据比较结果和预设亮度区间的像素点占比,调整所述图像传感器的曝光量,包括:若所述图像的平均亮度信息大于所述目标亮度信息,则根据所述平均亮度信息和目标亮度信息的亮度信息比值以及亮部占比,调整所述图像传感器的曝光量。
- 根据权利要求27所述的方法,其特征在于,在所述亮部占比固定时,需减少的曝光量与所述平均亮度信息与所述目标亮度信息的亮度信息比值为正相关关系。
- 根据权利要求27所述的方法,其特征在于,根据所述平均亮度信息和目标亮度信息的亮度信息比值以及亮部占比,调整所述图像传感器的曝光量,包括:根据所述平均亮度信息和目标亮度信息的亮度信息比值,通过关于所述亮度信息比值的指数函数计算调整前的曝光量与调整后的曝光量的曝光量比值;根据通过所述指数函数计算得到的所述曝光量比值,调整所述图像传感器的曝光量;其中,所述指数函数的底数包括所述亮部占比。
- 根据权利要求18所述的方法,其特征在于,根据所述预设亮度区间的像素点占比调整所述图像传感器的曝光量,包括:根据所述预设亮度区间的像素点占比,调整下述至少一项:光圈大小、曝光时间、曝光增益,以调整所述图像传感器的曝光量。
- 根据权利要求21-29中任一项所述的方法,其特征在于,还包括:根据环境亮度确定所述目标亮度信息。
- 一种曝光控制装置,其特征在于,包括:存储器,用于存储计算机程序;处理器,用于运行所述存储器中存储的计算机程序以实现:获取关于待拍摄物体的光信号经过拍摄设备的图像传感器转换后得到的关于所述待拍摄物体的数字信号,以形成图像;通过所述数字信号,确定所述图像的亮度信息;将所述亮度信息与目标亮度信息进行比较,并根据比较结果调整所述图像传感器的曝光量。
- 根据权利要求32所述的装置,其特征在于,对于不同的亮度信息,增加或减少的曝光量不同。
- 根据权利要求32所述的装置,其特征在于,所述图像的亮度信息包括所述图像的平均亮度信息;在将所述亮度信息与目标亮度信息进行比较,并根据比较结果调整所述图像传感器的曝光量时,所述处理器具体用于:将所述平均亮度信息与目标亮度信息进行比较,并根据比较结果调整所述图像传感器的曝光量。
- 根据权利要求34所述的装置,其特征在于,在将所述图像的平均亮度信息与目标亮度信息进行比较,并根据比较结果调整所述图像传感器的曝光量时,所述处理器具体用于:在所述平均亮度信息小于所述目标亮度信息时,增加所述图像传感器的曝光量,其中,增加的曝光量与所述平均亮度信息为负相关关系;在所述平均亮度信息大于所述目标亮度信息时,减少所述图像传感器的曝光量,其中,减少的曝光量与所述平均亮度信息为正相关关系。
- 根据权利要求34所述的装置,其特征在于,所述平均亮度信息与所述目标亮度信息的比值等于调整前的曝光量与调整后的曝光量的比值。
- 根据权利要求34所述的装置,其特征在于,在所述平均亮度信息小于所述目标亮度信息时,调整后的曝光量与所述平均亮度信息的乘积大于调整前的曝光量与所述目标亮度信息的乘积;以及在所述平均亮度信息大于所述目标亮度信息时,调整后的曝光量与所述平均亮度的乘积小于调整前的曝光量与所述目标亮度信息的乘积。
- 根据权利要求34所述的装置,其特征在于,在将所述图像的平均亮度信息与目标亮度信息进行比较,并根据比较结果调整所述图像传感器的曝光量时,所述处理器具体用于:将所述图像的平均亮度信息与目标亮度信息进行比较,并根据比较结果和预设亮度区间的像素点占比,调整所述图像传感器的曝光量。
- 根据权利要求38所述的装置,其特征在于,所述预设亮度区间的像素点占比,包括:亮部占比和/或暗部占比;所述暗部占比为所述图像中像素值小于第一数值的像素点的比例;所述亮部占比为所述图像中像素值大于第二数值的像素点的比例。
- 根据权利要求38所述的装置,其特征在于,所述处理器还用于:根据所述图像,确定对应的亮度直方图;根据所述亮度直方图,确定所述预设亮度区间的像素点占比。
- 根据权利要求39所述的装置,其特征在于,在所述图像的平均亮度信息小于目标亮度信息时,需增加的曝光量与所述暗部占比为正相关关系;和/或,在所述图像的平均亮度信息大于目标亮度信息时,需减少的曝光量与所述亮部占比为正相关关系。
- 根据权利要求38所述的装置,其特征在于,在根据比较结果和预设亮度区间的像素点占比,调整所述图像传感器的曝光量时,所述处理器具体用于:根据所述平均亮度信息和目标亮度信息的亮度信息比值,确定基础曝光量;根据所述预设亮度区间的像素点占比,确定比例系数;根据所述基础曝光量与所述比例系数,调整所述图像传感器的曝光量。
- 根据权利要求38所述的装置,其特征在于,在根据比较结果和预设亮度区间的像素点占比,调整所述图像传感器的曝光量时,所述处理器具体用于:若所述图像的平均亮度信息小于所述目标亮度信息,则根据所述平均亮度信息和目标亮度信息的亮度信息比值以及暗部占比,调整所述图像传感器 的曝光量。
- 根据权利要求43所述的装置,其特征在于,在根据所述平均亮度信息和目标亮度信息的亮度信息比值以及暗部占比,调整所述图像传感器的曝光量时,所述处理器具体用于:根据所述平均亮度信息和目标亮度信息的亮度信息比值,通过关于所述亮度信息比值的对数函数计算调整后的曝光量与调整前的曝光量的曝光量比值;根据通过所述对数函数计算得到的所述曝光量比值,调整所述图像传感器的曝光量;其中,所述对数函数的底数包括所述暗部占比。
- 根据权利要求38所述的装置,其特征在于,在根据比较结果和预设亮度区间的像素点占比,调整所述图像传感器的曝光量时,所述处理器具体用于:若所述图像的平均亮度信息大于所述目标亮度信息,则根据所述平均亮度信息和目标亮度信息的亮度信息比值以及亮部占比,调整所述图像传感器的曝光量。
- 根据权利要求45所述的装置,其特征在于,在根据所述平均亮度信息和目标亮度信息的亮度信息比值以及亮部占比,调整所述图像传感器的曝光量时,所述处理器具体用于:根据所述平均亮度信息和目标亮度信息的亮度信息比值,通过关于所述亮度信息比值的指数函数计算调整前的曝光量与调整后的曝光量的曝光量比值;根据通过所述指数函数计算得到的所述曝光量比值,调整所述图像传感器的曝光量;其中,所述指数函数的底数包括所述亮部占比。
- 根据权利要求32所述的装置,其特征在于,在将所述亮度信息与目标亮度信息进行比较,并根据比较结果调整所述图像传感器的曝光量时,所述处理器具体用于:将所述亮度信息与目标亮度信息进行比较,并根据比较结果调整下述至少一项:光圈大小、曝光时间、曝光增益,以调整所述图像传感器的曝光量。
- 根据权利要求32-47中任一项所述的装置,其特征在于,所述处理器 还用于:根据环境亮度确定所述目标亮度信息。
- 一种曝光控制装置,其特征在于,包括:存储器,用于存储计算机程序;处理器,用于运行所述存储器中存储的计算机程序以实现:获取关于待拍摄物体的光信号经过拍摄设备的图像传感器转换后得到的关于所述待拍摄物体的数字信号,以形成图像;通过所述数字信号,确定所述图像中预设亮度区间的像素点占比;根据所述预设亮度区间的像素点占比调整所述图像传感器的曝光量。
- 根据权利要求49所述的装置,其特征在于,所述预设亮度区间的像素点占比,包括:亮部占比和/或暗部占比;所述暗部占比为所述图像中像素值小于第一数值的像素点的比例;所述亮部占比为所述图像中像素值大于第二数值的像素点的比例。
- 根据权利要求49所述的装置,其特征在于,在通过所述数字信号,确定所述图像中预设亮度区间的像素点占比时,所述处理器具体用于:通过所述数字信号,确定所述图像对应的亮度直方图;根据所述亮度直方图,确定所述预设亮度区间的像素点占比。
- 根据权利要求50所述的装置,其特征在于,在根据所述预设亮度区间的像素点占比调整所述图像传感器的曝光量时,所述处理器具体用于:将所述图像的平均亮度信息与目标亮度信息进行比较,并根据比较结果和预设亮度区间的像素点占比,调整所述图像传感器的曝光量。
- 根据权利要求52所述的装置,其特征在于,在所述图像的平均亮度信息小于目标亮度信息时,需增加的曝光量与所述暗部占比为正相关关系;和/或,在所述图像的平均亮度信息大于目标亮度信息时,需减少的曝光量与所述亮部占比为正相关关系。
- 根据权利要求52所述的装置,其特征在于,在根据比较结果和预设亮度区间的像素点占比,调整所述图像传感器的曝光量时,所述处理器具体用于:根据所述平均亮度信息和目标亮度信息的亮度信息比值,确定基础曝光 量;根据所述预设亮度区间的像素点占比,确定比例系数;根据所述基础曝光量与所述比例系数,调整所述图像传感器的曝光量。
- 根据权利要求52所述的装置,其特征在于,在根据比较结果和预设亮度区间的像素点占比,调整所述图像传感器的曝光量时,所述处理器具体用于:若所述图像的平均亮度信息小于所述目标亮度信息,则根据所述平均亮度信息和目标亮度信息的亮度信息比值以及暗部占比,调整所述图像传感器的曝光量。
- 根据权利要求55所述的装置,其特征在于,在所述暗部占比固定时,需增加的曝光量与所述平均亮度信息与所述目标亮度信息的亮度信息比值为负相关关系。
- 根据权利要求55所述的装置,其特征在于,在根据所述平均亮度信息和目标亮度信息的亮度信息比值以及暗部占比,调整所述图像传感器的曝光量时,所述处理器具体用于:根据所述平均亮度信息和目标亮度信息的亮度信息比值,通过关于所述亮度信息比值的对数函数计算调整后的曝光量与调整前的曝光量的曝光量比值;根据通过所述对数函数计算得到的所述曝光量比值,调整所述图像传感器的曝光量;其中,所述对数函数的底数包括所述暗部占比。
- 根据权利要求52所述的装置,其特征在于,在根据比较结果和预设亮度区间的像素点占比,调整所述图像传感器的曝光量时,所述处理器具体用于:若所述图像的平均亮度信息大于所述目标亮度信息,则根据所述平均亮度信息和目标亮度信息的亮度信息比值以及亮部占比,调整所述图像传感器的曝光量。
- 根据权利要求58所述的装置,其特征在于,在所述亮部占比固定时,需减少的曝光量与所述平均亮度信息与所述目标亮度信息的亮度信息比值为正相关关系。
- 根据权利要求58所述的装置,其特征在于,在根据所述平均亮度信 息和目标亮度信息的亮度信息比值以及亮部占比,调整所述图像传感器的曝光量时,所述处理器具体用于:根据所述平均亮度信息和目标亮度信息的亮度信息比值,通过关于所述亮度信息比值的指数函数计算调整前的曝光量与调整后的曝光量的曝光量比值;根据通过所述指数函数计算得到的所述曝光量比值,调整所述图像传感器的曝光量;其中,所述指数函数的底数包括所述亮部占比。
- 根据权利要求49所述的装置,其特征在于,在根据所述预设亮度区间的像素点占比调整所述图像传感器的曝光量时,所述处理器具体用于:根据所述预设亮度区间的像素点占比,调整下述至少一项:光圈大小、曝光时间、曝光增益,以调整所述图像传感器的曝光量。
- 根据权利要求52-60中任一项所述的装置,其特征在于,所述处理器还用于:根据环境亮度确定所述目标亮度信息。
- 一种曝光控制装置,其特征在于,包括:图像传感器,用于获取关于待拍摄物体的光信号,将所述光信号转换为关于所述待拍摄物体的电信号,所述电信号为数字信号,以形成图像;确定电路,用于通过所述数字信号,确定所述图像的亮度信息;处理电路,用于将所述亮度信息与目标亮度信息进行比较,并根据比较结果调整所述图像传感器的曝光量。
- 根据权利要求63所述的装置,其特征在于,对于不同的亮度信息,增加或减少的曝光量不同。
- 根据权利要求63所述的装置,其特征在于,所述图像的亮度信息包括所述图像的平均亮度信息;在将所述亮度信息与目标亮度信息进行比较,并根据比较结果调整所述图像传感器的曝光量时,所述处理电路具体用于:将所述平均亮度信息与目标亮度信息进行比较,并根据比较结果调整所述图像传感器的曝光量。
- 根据权利要求65所述的装置,其特征在于,在将所述图像的平均亮 度信息与目标亮度信息进行比较,并根据比较结果调整所述图像传感器的曝光量时,所述处理电路具体用于:将所述图像的平均亮度信息与目标亮度信息进行比较,并根据比较结果和预设亮度区间的像素点占比,调整所述图像传感器的曝光量。
- 一种曝光控制装置,其特征在于,包括:图像传感器,用于获取关于待拍摄物体的光信号,将所述光信号转换为关于所述待拍摄物体的电信号,所述电信号为数字信号,以形成图像;确定电路,用于通过所述数字信号,确定所述图像中预设亮度区间的像素点占比;处理电路,用于根据所述预设亮度区间的像素点占比调整所述图像传感器的曝光量。
- 根据权利要求67所述的装置,其特征在于,在根据所述预设亮度区间的像素点占比调整所述图像传感器的曝光量时,所述处理电路具体用于:将所述图像的平均亮度信息与目标亮度信息进行比较,并根据比较结果和预设亮度区间的像素点占比,调整所述图像传感器的曝光量。
- 一种拍摄设备,其特征在于,包括权利要求32-68任一项所述的曝光控制装置。
- 一种可移动平台,其特征在于,包括权利要求69所述的拍摄设备。
- 一种可读存储介质,其特征在于,所述可读存储介质中存储有指令,所述指令在拍摄设备上运行时,使得所述拍摄设备执行如上述权利要求1-31任一项所述的方法。
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2020/092945 WO2021237575A1 (zh) | 2020-05-28 | 2020-05-28 | 曝光控制方法、装置、设备、可移动平台和存储介质 |
CN202080004411.1A CN112567730A (zh) | 2020-05-28 | 2020-05-28 | 曝光控制方法、装置、设备、可移动平台和存储介质 |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2020/092945 WO2021237575A1 (zh) | 2020-05-28 | 2020-05-28 | 曝光控制方法、装置、设备、可移动平台和存储介质 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2021237575A1 true WO2021237575A1 (zh) | 2021-12-02 |
Family
ID=75034952
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2020/092945 WO2021237575A1 (zh) | 2020-05-28 | 2020-05-28 | 曝光控制方法、装置、设备、可移动平台和存储介质 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN112567730A (zh) |
WO (1) | WO2021237575A1 (zh) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114449176A (zh) * | 2022-01-10 | 2022-05-06 | 瑞芯微电子股份有限公司 | 自动曝光方法、动态范围识别方法、装置、介质及设备 |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114650370A (zh) * | 2022-03-10 | 2022-06-21 | 维沃移动通信有限公司 | 图像拍摄方法、装置、电子设备及可读存储介质 |
CN115174820B (zh) * | 2022-09-06 | 2022-11-25 | 安徽科大擎天科技有限公司 | 一种相机自动曝光的快速调节方法 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030011693A1 (en) * | 2001-07-13 | 2003-01-16 | Fuji Photo Film Co., Ltd. | Solid-state image sensor having control cells for developing signals for image-shooting control under poor illumination |
CN1941853A (zh) * | 2005-09-28 | 2007-04-04 | 索尼株式会社 | 成像设备、以及曝光控制设备、方法和程序 |
CN101031032A (zh) * | 2006-03-03 | 2007-09-05 | 索尼株式会社 | 图像拾取设备、曝光控制方法、及计算机程序 |
CN108833802A (zh) * | 2018-09-18 | 2018-11-16 | Oppo广东移动通信有限公司 | 曝光控制方法、装置和电子设备 |
US20200043151A1 (en) * | 2017-10-24 | 2020-02-06 | Adobe Inc. | Empirical exposure normalization |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102262330B (zh) * | 2010-05-25 | 2016-05-11 | 北京中星微电子有限公司 | 自动曝光的方法及装置 |
CN102148936B (zh) * | 2011-05-04 | 2012-10-17 | 展讯通信(上海)有限公司 | 一种高动态范围成像优化方法及装置 |
KR101937708B1 (ko) * | 2012-07-09 | 2019-04-11 | 삼성전자 주식회사 | 카메라 제어 시스템과 이를 포함하는 단말기 및 카메라 제어 방법 |
CN102984463A (zh) * | 2012-09-14 | 2013-03-20 | 旗瀚科技有限公司 | 图像处理方法及*** |
CN103826066B (zh) * | 2014-02-26 | 2017-05-03 | 芯原微电子(上海)有限公司 | 一种自动曝光调整方法及*** |
KR20180078961A (ko) * | 2016-12-30 | 2018-07-10 | 삼성전자주식회사 | 이미지 촬상 장치 및 이의 구동 방법 |
CN109819155B (zh) * | 2017-11-20 | 2021-01-05 | 瑞昱半导体股份有限公司 | 自动曝光控制方法与使用其的电子装置 |
CN110798626B (zh) * | 2019-12-02 | 2020-07-28 | 重庆紫光华山智安科技有限公司 | 一种自动曝光调节方法、***及设备 |
-
2020
- 2020-05-28 CN CN202080004411.1A patent/CN112567730A/zh active Pending
- 2020-05-28 WO PCT/CN2020/092945 patent/WO2021237575A1/zh active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030011693A1 (en) * | 2001-07-13 | 2003-01-16 | Fuji Photo Film Co., Ltd. | Solid-state image sensor having control cells for developing signals for image-shooting control under poor illumination |
CN1941853A (zh) * | 2005-09-28 | 2007-04-04 | 索尼株式会社 | 成像设备、以及曝光控制设备、方法和程序 |
CN101031032A (zh) * | 2006-03-03 | 2007-09-05 | 索尼株式会社 | 图像拾取设备、曝光控制方法、及计算机程序 |
US20200043151A1 (en) * | 2017-10-24 | 2020-02-06 | Adobe Inc. | Empirical exposure normalization |
CN108833802A (zh) * | 2018-09-18 | 2018-11-16 | Oppo广东移动通信有限公司 | 曝光控制方法、装置和电子设备 |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114449176A (zh) * | 2022-01-10 | 2022-05-06 | 瑞芯微电子股份有限公司 | 自动曝光方法、动态范围识别方法、装置、介质及设备 |
Also Published As
Publication number | Publication date |
---|---|
CN112567730A (zh) | 2021-03-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021237575A1 (zh) | 曝光控制方法、装置、设备、可移动平台和存储介质 | |
CN107635102B (zh) | 高动态范围图像曝光补偿值获取方法和装置 | |
RU2523027C1 (ru) | Синхронизация вспышки с использованием сигнала тактирования интерфейса датчика изображения | |
JP6083897B2 (ja) | 撮像装置及び画像信号処理装置 | |
RU2542928C2 (ru) | Система и способ для обработки данных изображения с использованием процессора сигнала изображения, имеющего логику окончательной обработки | |
US8781225B2 (en) | Automatic tone mapping method and image processing device | |
US20060215908A1 (en) | Image pickup apparatus and image processing method | |
US20090295937A1 (en) | Dynamic range compression apparatus, dynamic range compression method, computer-readable recording medium, integrated circuit, and imaging apparatus | |
WO2012044432A1 (en) | Image signal processor line buffer configuration for processing raw image data | |
CN107533756B (zh) | 图像处理装置、摄像装置、图像处理方法以及存储图像处理装置的图像处理程序的存储介质 | |
US8885078B2 (en) | Image processing apparatus, image processing method, and recording medium storing image processing program | |
CN114189634B (zh) | 图像采集方法、电子设备及计算机存储介质 | |
JP2019029833A (ja) | 撮像装置 | |
US11496694B2 (en) | Dual sensor imaging system and imaging method thereof | |
KR20120122574A (ko) | 디지털 카메라 장치에서 영상 처리 장치 및 방법 | |
US10475162B2 (en) | Image processing device, method, and storage medium for gamma correction based on illuminance | |
EP2446414B1 (en) | Lens roll-off correction operation using values corrected based on brightness information | |
CN111970501A (zh) | 纯色场景ae色彩处理方法、装置、电子设备及存储介质 | |
CN114666512B (zh) | 一种快速自动曝光的调节方法及*** | |
JP2009004966A (ja) | 撮像装置 | |
CN111050087B (zh) | 一种基于rgb统计信息的红外防过曝方法及其***和装置 | |
US9148584B1 (en) | Automatic exposure with digital gain optimized for noise reduction | |
WO2022226917A1 (zh) | 图像处理方法及电子设备 | |
JP7263018B2 (ja) | 画像処理装置、画像処理方法およびプログラム | |
US11100610B2 (en) | Image processing apparatus, image processing method, and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 20937455 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20937455 Country of ref document: EP Kind code of ref document: A1 |