CN110493539B - Automatic exposure processing method, processing device and electronic equipment - Google Patents

Automatic exposure processing method, processing device and electronic equipment Download PDF

Info

Publication number
CN110493539B
CN110493539B CN201910765412.7A CN201910765412A CN110493539B CN 110493539 B CN110493539 B CN 110493539B CN 201910765412 A CN201910765412 A CN 201910765412A CN 110493539 B CN110493539 B CN 110493539B
Authority
CN
China
Prior art keywords
preview image
pixel points
brightness
part area
imaging device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910765412.7A
Other languages
Chinese (zh)
Other versions
CN110493539A (en
Inventor
赵正涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201910765412.7A priority Critical patent/CN110493539B/en
Publication of CN110493539A publication Critical patent/CN110493539A/en
Application granted granted Critical
Publication of CN110493539B publication Critical patent/CN110493539B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/67Focus control based on electronic image sensor signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/71Circuitry for evaluating the brightness variation

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Studio Devices (AREA)

Abstract

The application discloses an automatic exposure processing method of an imaging device. The processing method comprises the following steps: the method comprises the steps of respectively obtaining a first preview image of an imaging device in an original state and a second preview image of the imaging device in a zooming state, processing a histogram of the first preview image and a histogram of the second preview image to determine the brightness distribution of pixel points in the first preview image and the second preview image, and controlling the imaging device to automatically expose according to the brightness distribution of the pixel points in the first preview image and the second preview image in the zooming state. According to the automatic exposure processing method, the light metering mode is determined again according to the histogram of the first preview image and the histogram of the second preview image, so that automatic exposure in a zooming state is more accurate, the effect of a shot image is better, and user experience is improved. The application also discloses a processing device, an electronic device and a computer readable medium.

Description

Automatic exposure processing method, processing device and electronic equipment
Technical Field
The present disclosure relates to the field of image technologies, and in particular, to a processing method and a processing apparatus for automatic exposure of an imaging device, and an electronic device.
Background
During shooting, the camera selects a photometric mode according to the scene recognition result, so that automatic exposure processing is performed on the image. However, the preview scene may change after the camera is zoomed, and if the automatic exposure processing is performed in the same light measurement mode without zooming, the image taken may not be good.
Disclosure of Invention
The application provides an automatic exposure processing method of an imaging device, which comprises the following steps:
respectively acquiring a first preview image of an imaging device in an original state and a second preview image of the imaging device in a zoom state;
processing the histogram of the first preview image and the histogram of the second preview image to determine the brightness distribution of pixel points in the first preview image and the second preview image; and
and controlling the imaging device to automatically expose in a zooming state according to the brightness distribution of pixel points in the first preview image and the second preview image.
The application provides an automatic exposure processing apparatus of an imaging apparatus, including:
the acquisition module is used for respectively acquiring a first preview image of the imaging device in an original state and a second preview image of the imaging device in a zoom state;
the processing module is used for processing the histogram of the first preview image and the histogram of the second preview image to determine the brightness distribution of pixel points in the first preview image and the second preview image; and
and the control module is used for controlling the imaging device to automatically expose in a zooming state according to the brightness distribution of the pixel points in the first preview image and the second preview image.
The application provides an electronic device, including an imaging apparatus and a processor, the processor is configured to:
respectively acquiring a first preview image of an imaging device in an original state and a second preview image of the imaging device in a zoom state;
processing the histogram of the first preview image and the histogram of the second preview image to determine the brightness distribution of pixel points in the first preview image and the second preview image; and
and controlling the imaging device to automatically expose in a zooming state according to the brightness distribution of pixel points in the first preview image and the second preview image.
An electronic device includes an imaging apparatus, a processor, and a memory; and
one or more programs, wherein the one or more programs are stored in the memory and executed by the one or more processors, the programs comprising instructions for performing any of the automatic exposure processing methods described above.
One or more non-transitory computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform any of the automatic exposure processing methods described above.
In the automatic exposure processing method, the processing device, the electronic device, and the computer-readable storage medium of the imaging device according to the embodiments of the present application, the imaging device respectively obtains the preview images in the initial state without zooming and in the zoom state, and processes the preview images before and after zooming to respectively obtain the histograms of the two preview images, where the histograms include luminance distributions of the preview images, so as to provide a basis for automatic exposure of the imaging device in different states, and the automatic exposure in the zoom state is not completely performed according to related parameters in the non-zoom state, but a light metering mode is selected and re-determined according to the histogram of the first preview image and the histogram of the second preview image, so that the automatic exposure in the zoom state is more accurate, the image capturing effect is better, and user experience is improved.
Drawings
The foregoing and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic flow chart of a processing method of automatic exposure according to some embodiments of the present disclosure.
Fig. 2 is a schematic structural diagram of an electronic device according to some embodiments of the present application.
FIG. 3 is a block schematic diagram of a processing device according to certain embodiments of the present application.
FIG. 4 is a preview image of an auto-exposure of some embodiments of the present application.
FIG. 5 is a schematic diagram of a histogram of a process for automatic exposure according to some embodiments of the present application.
FIG. 6 is a preview image of a method of processing an auto-exposure in accordance with certain embodiments of the present application.
FIG. 7 is yet another preview image of the method of processing an auto-exposure in accordance with certain embodiments of the present application.
Fig. 8 is a flow chart illustrating a processing method of automatic exposure according to some embodiments of the present disclosure.
FIG. 9 is a schematic diagram of a histogram of a process for automatic exposure according to some embodiments of the present application.
FIG. 10 is a flow chart illustrating a method of processing an auto exposure according to some embodiments of the present disclosure.
FIG. 11 is a histogram illustrating a method of processing an auto exposure according to some embodiments of the present application.
FIG. 12 is a schematic flow chart of a method for processing an auto exposure according to some embodiments of the present disclosure.
FIG. 13 is a schematic diagram of yet another histogram of the process of auto-exposure according to some embodiments of the present application.
FIG. 14 is a schematic flow chart of a method for processing an auto exposure according to some embodiments of the present disclosure.
FIG. 15 is a schematic diagram of a process for automatic exposure in accordance with certain embodiments of the present application.
FIG. 16 is a schematic diagram of a connection between a mobile terminal and a computer-readable storage medium according to some embodiments of the present application.
FIG. 17 is a block diagram of an electronic device according to some embodiments of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention.
In the description of the present invention, it is to be understood that the terms "first", "second" and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, features defined as "first", "second", may explicitly or implicitly include one or more of the described features. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
The following disclosure provides many different embodiments or examples for implementing different features of the invention. To simplify the disclosure of the present invention, the components and arrangements of specific examples are described below. Of course, they are merely examples and are not intended to limit the present invention. Furthermore, the present invention may repeat reference numerals and/or letters in the various examples, such repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed. In addition, the present invention provides examples of various specific processes and materials, but one of ordinary skill in the art may recognize applications of other processes and/or uses of other materials.
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention.
With the development of the imaging technology, the enlargement or reduction of the subject in the image can be realized by means of digital zooming and even optical zooming on the imaging device of the portable mobile terminal. Generally, an imaging device selects a metering mode to automatically expose an image according to a scene recognition result, and performs automatic exposure processing on the image by using the same metering mode before and after zooming when a zooming action occurs during shooting, and then in some scenes, the image shot by still using the same exposure strategy after zooming may have poor image effect due to overexposure.
Referring to fig. 1, the present application provides a processing method of automatic exposure, including:
s10: respectively acquiring a first preview image of an imaging device in an original state and a second preview image of the imaging device in a zoom state;
s20: processing the histogram of the first preview image and the histogram of the second preview image to determine the brightness distribution of pixel points in the first preview image and the second preview image;
s30: and controlling the imaging device to automatically expose in a zooming state according to the brightness distribution of pixel points in the first preview image and the second preview image.
Referring to fig. 2 and fig. 3, an electronic device 100 is provided in an embodiment of the present disclosure. The electronic device 100 includes an imaging apparatus 10 and a processor 20, and the imaging apparatus 10 is configured to acquire a first preview image in an original state and a second preview image in a zoom state, and send the first preview image and the second preview image to the processor 20. The processor 20 is configured to process the histogram of the first preview image and the histogram of the second preview image to determine the brightness distribution of the pixel points in the first preview image and the second preview image, and control the imaging device 10 to perform automatic exposure in a zoom state according to the brightness distribution of the pixel points in the first preview image and the second preview image.
The embodiment of the present application further provides an automatic exposure processing apparatus 110, and the automatic exposure processing method according to the embodiment of the present application can be implemented by the processing apparatus 110.
Specifically, the processing device 110 includes an acquisition module 112, a processing module 114, and a control module 116. S10 may be implemented by the detection module 112, S20 may be implemented by the processing module 114, and S30 may be implemented by the control module 116. In other words, the obtaining module 112 is configured to obtain a first preview image of the imaging apparatus 10 in an original state and a second preview image in a zoom state, respectively. The processing module 114 is configured to process the histogram of the first preview image and the histogram of the second preview image to determine a brightness distribution of pixel points in the first preview image and the second preview image. The control module 116 is configured to control the imaging apparatus 10 to perform automatic exposure according to the brightness distribution of the pixel points in the first preview image and the second preview image in the zoom state.
In the processing method, the processing apparatus 110 and the electronic device 100 according to the embodiment of the application, the imaging apparatus 10 obtains the first preview image in the initial state without zooming, and obtains the second preview image in the zooming state, and sends the first preview image and the second preview image to the processor 20 and sends the second preview image to the processor 20, the processor 20 processes the first preview image and the second preview image before and after zooming so as to obtain the histograms of the two preview images, respectively, the histograms include the brightness distribution of the pixels of the preview image, so as to provide a basis for the automatic exposure of the imaging apparatus 10 in different states, the automatic exposure in the zooming state is not performed completely according to the related parameters in the un-zoomed state, but the light measuring mode is determined again or the automatic exposure and zooming processing is performed by adopting the light measuring mode before according to the histogram of the first preview image and the histogram of the second preview image, so as to make the, the shot image effect is better, and the user experience is improved.
Referring to fig. 4 and 5, an image is composed of arranged pixels, the brightness of the image is also called brightness, which is the brightness level of a color, and the brightness value of the image can be represented by the brightness values of all the pixels composing the image, the brightness value of each pixel is within 0-255, including black to white, 0 represents full black, 255 represents full white, and a histogram is a distribution range of all the pixels included in the image between 0-255. In the histogram, the abscissa represents the increase in luminance from left to right, the ordinate represents the increase in luminance at a certain pixel from bottom to top, and the higher the peak value at a certain point, the more pixels at that luminance are represented. The histogram may reflect the brightness of the preview image as a whole, for example, in fig. 4, the image includes a bright area and a dark area, and in the schematic diagram of fig. 5, the brightness distribution of the image pixels. Therefore, the imaging apparatus 10 selects the photometry mode in accordance with the luminance distribution of the histogram, and controls the imaging apparatus 10 so as to perform the automatic exposure processing.
The photometric mode is a mode in which the imaging apparatus 10 captures the reflectivity of a subject, the imaging apparatus 10 includes a charge-coupled device, the charge-coupled device transmits an optical signal to the processor 20 of the imaging apparatus 10 for analysis, and the processor 20 adjusts an exposure value according to the reflectivity of the subject. In general, the photometric mode includes four modes, i.e., center-weighted photometry, local photometry, spot photometry, and evaluative photometry. The central emphasis metering refers to metering with the light brightness of the central part in the whole image as the main consideration of exposure and the light brightness around the whole image only as the auxiliary consideration. The spot light measurement refers to taking a central minimum range area in the whole image as an exposure reference point during the light measurement, and the imaging device 10 uses the light measured in the narrow area as an exposure basis. The average metering refers to that the average value is obtained according to the brightness of the whole image range during metering, the evaluation metering refers to that the whole image is divided into a plurality of metering areas according to the average value as the exposure basis, each area is independently metered, and then the exposure value is obtained through integral weighting, the imaging device 10 can identify the content of the shot scene, automatically select a certain metering mode, adjust the imaging device 10, and control the imaging device 10 to perform automatic exposure processing. The automatic exposure processing may be performed by selecting a certain photometric mode by the user.
The electronic device 100 may be implemented in various forms. For example, the mobile devices described in this application may include mobile phones, computers, cameras, and the like.
Referring to fig. 6 and 7, in the embodiment of the present application, the imaging device 10 may be one or more cameras, and if the imaging device 10 is a plurality of cameras, each camera has a corresponding zoom range, and when the current zoom multiple is within the predetermined zoom range, the corresponding camera is controlled to start to operate. The imaging device 10 zoom may be either an optical zoom or a digital zoom. The switching of the camera can be realized by switching the zoom range, that is, when the camera zooms, if the zoom multiple falls into the zoom range corresponding to the camera, the current camera is switched to the camera in the zoom range to acquire an image. The zoom factor of the first preview image in the initial state may be set to be one time, and the zoom factor of the second preview image in the zoom state is greater than one time. Therefore, the shot scene is richer in the first preview image acquired in the initial state, that is, the first preview image in the initial state further includes contents other than the second preview image in the zoom state, so that the histogram luminance distributions of the first preview image and the second preview image are different, and therefore, the photometric mode that may be selected by different luminance distributions is also different, and thus, the target image with inconsistent luminance is obtained when the imaging apparatus 10 performs automatic exposure.
Referring to fig. 7 and 8, in some embodiments, S30 includes:
s31: and if the brightness of the pixel points in the first preview image is distributed in the bright part area and the dark part area and the brightness of the pixel points in the second preview image is distributed in the dark part area, controlling the imaging device to automatically expose according to the brightness distribution of the pixel points in the first preview image in a zooming state.
In some embodiments, S31 may be implemented by control module 116. Or, the control module 116 is configured to control the imaging device 10 to perform automatic exposure according to the brightness distribution of the pixel points in the first preview image in the zoom state if the brightness distribution of the pixel points in the first preview image is in the bright portion area and the dark portion area and the brightness distribution of the pixel points in the second preview image is in the dark portion area.
In some embodiments, the processor 20 is configured to control the imaging device 10 to perform automatic exposure in the zoom state according to the brightness distribution of the pixel points in the first preview image if the brightness distribution of the pixel points in the first preview image is in the bright portion area and the dark portion area and the brightness distribution of the pixel points in the second preview image is in the dark portion area.
Specifically, the imaging device 10 selects a metering mode according to the luminance distribution of the pixel points in the preview image, and further determines whether exposure compensation is required according to the metering mode. The brightness of the pixel points in the first preview image is distributed in the bright part area and the dark part area, and the brightness of the pixel points in the second preview image is distributed in the dark part area. The first preview image can be considered to have both bright and dark regions, while the second preview image is entirely dark. If the metering mode is determined according to the brightness distribution of the pixel points in the second preview image, the metering mode determines that exposure compensation is required, and controlling the imaging device 10 to automatically expose the shot scene may cause the whole target image to be slightly bright, which may result in overexposure of the target image. And confirming a light metering mode according to the brightness distribution of the pixel points in the first preview image, judging that exposure compensation is not needed or the exposure compensation value is lower than that obtained by the second preview image, and controlling the imaging device 10 to automatically expose the shot scene to enable the shot target image to be normal and obtain a target image with good effect.
The exposure compensation is an exposure control method, which is an additional compensation for increasing the exposure amount, and after the exposure amount is determined, if it is determined that the brightness distribution of the pixel points of the preview image is entirely in the bright area or entirely in the dark area, the processor 20 may additionally increase the exposure amount or decrease the exposure amount. When the picture is too dark, the imaging apparatus 10 increases the exposure amount, i.e., increases the exposure compensation. When the picture is too bright, the exposure is reduced, namely, the exposure compensation is reduced. If the second preview image in the zoom state is entirely dark, the processor 20 determines that exposure compensation needs to be performed on the shot scene to obtain a normally exposed target image, and since the brightness distribution of the second preview image is in the dark region, the processor 20 determines that exposure compensation needs to be added to increase the brightness, the exposure compensation of the imaging device 10 causes the target image obtained by the imaging device 10 to be entirely white and bright, and the original effect is lost. And the brightness distribution condition of the first preview image is selected to perform exposure compensation on the target image, the first preview image comprises a bright part area and a dark part area, and compared with the second preview image which only comprises a bright part, when exposure compensation is performed, exposure compensation can be performed according to the proportion of the bright part area and the dark part area of the first preview image so as to judge whether the exposure amount is increased or reduced, so that when the imaging device 10 is controlled to perform automatic exposure, the target image with normal exposure can be obtained, and the user experience is improved.
Generally, the exposure compensation value is about + -2-3 EV, and if the EV value is increased, the EV value is increased by 1.0, which is equivalent to doubling the amount of the absorbed light. If the EV value is to be reduced, every 1.0 reduction in the EV value corresponds to a doubling of the amount of light taken. For example, the first preview image has a bright area and a dark area, and it is determined that it is not necessary to increase the exposure compensation value, that is, the exposure compensation value is 0 EV. The second preview image only has a dark area, and it is determined that the 2EV exposure compensation value needs to be added to improve the overall brightness of the target image, so that the imaging device 10 selects the brightness distribution of the first preview image in the zoom state without additionally adding the exposure compensation value to the shot scene, that is, without improving the overall brightness of the image, the normal exposure can be performed, and the target image obtained in the zoom state is accurate.
Further, the exposure compensation adjusts exposure parameters, which may include exposure time, brightness gain value, and aperture value, so that the imaging device 10 is normally exposed. The exposure time refers to the time when the photosensitive element in the image forming apparatus 10 receives light, and the longer the exposure time of the photosensitive element in the image forming apparatus 10 is, the brighter the image is, whereas the shorter the exposure time is, the darker the image is, on the premise that the ambient brightness is not changed. If the scene in the image is too bright and the bright part has no hierarchy or detail, the exposure is overexposed, if the scene in the image is too dark and cannot reflect the color of the scene, the exposure compensation is underexposed, the shutter speed can be changed during the actual adjustment, in short, the exposure compensation is adjusted to be EV, and the final adjustment mode is realized by increasing or reducing the shutter speed. For example, if it is determined that exposure compensation is required to adjust the exposure parameters based on the brightness of the second preview image being in the dark region, the processor 20 controls the imaging device 10 to decrease the shutter speed to increase the exposure amount so that the target image is entirely bright, and if the brightness of the first preview image includes both the light region and the dark region, it is determined that exposure compensation is not required, i.e., the target image is obtained without adjusting the exposure parameters and is not entirely bright.
In some examples, if the brightness distribution of the pixel points in the first preview image is in the bright portion region and the dark portion region and the brightness distribution of the pixel points in the second preview image is in the dark portion region, the brightness distribution of the second preview image is adjusted according to the brightness distribution of the first preview image, so that the adjusted brightness distribution of the second preview image includes both the bright portion region and the dark portion region. And controlling the imaging device 10 to perform automatic exposure according to the adjusted brightness distribution of the pixel points in the second preview image in the zooming state.
In other examples, if the luminance distribution of the pixel points in the first preview image is in the bright portion region and the dark portion region and the luminance distribution of the pixel points in the second preview image is in the dark portion region, the histogram may be regenerated according to the luminance distribution of the pixel points in the first preview image and the luminance distribution of the pixel points in the second preview image, the weight of the luminance distribution of the first preview image and the weight of the luminance distribution of the second preview image may be set to regenerate the histogram, and the imaging device 10 may be controlled to perform automatic exposure according to the regenerated luminance distribution of the histogram in the zoom state.
In addition, if the luminance distribution of the pixel points in the first preview image only exists in the bright area or only exists in the dark area, the luminance distribution of the pixel points in the second preview image also only exists in the bright area or only exists in the dark area. Since the second preview image is acquired in the zoom state, the generated target image has the same scene as the image acquired by the second preview image, and the imaging device 10 is controlled to perform automatic exposure in the zoom state according to the brightness distribution of the pixel points in the second preview image, so that accurate exposure can be performed to obtain an effective target image.
Referring to fig. 9 and 10, in some embodiments, S30 includes:
s32: and if the brightness of the pixel points in the first preview image is distributed in the bright part area and the dark part area and the brightness of the pixel points in the second preview image is distributed in the bright part area, controlling the imaging device to automatically expose according to the brightness distribution of the pixel points in the second preview image in a zooming state.
In some embodiments, the control module 116 is configured to control the imaging device 10 to perform automatic exposure according to the brightness distribution of the pixel points in the second preview image in the zoom state if the brightness distribution of the pixel points in the first preview image is in the bright portion area and the dark portion area and the brightness distribution of the pixel points in the second preview image is in the bright portion area.
In some embodiments, the processor 20 is configured to control the imaging device 10 to perform automatic exposure in the zoom state according to the brightness distribution of the pixel points in the second preview image if the brightness distribution of the pixel points in the first preview image is in the bright portion area and the dark portion area and the brightness distribution of the pixel points in the second preview image is in the bright portion area.
Specifically. And if the brightness of the pixel points in the first preview image is distributed in the bright part area and the dark part area, the brightness of the pixel points in the second preview image is distributed in the bright part area. The first preview image can be considered to have both bright and dark regions, while the second preview image is entirely bright. If the photometric mode is determined according to the brightness distribution of the pixel points in the second preview image, the photometric mode determines that exposure compensation is required to adjust the exposure parameters to reduce the exposure, and the imaging device 10 is controlled to automatically expose the shot scene so that the brightness of the target image is reduced as a whole compared with that of the second preview image, so that the target image is prevented from being overexposed, and the normally exposed target image is obtained.
In this way, when the shot scene is all bright areas in the zoom state, exposure compensation is performed on the brightness distribution of the second preview image, and the overall brightness of the target image is reduced to obtain a correctly exposed target image.
In some examples, when in the zoom state, the imaging device 10 acquires the brightness distribution of the pixel points in the first preview image in the bright area and the dark area and the brightness distribution of the pixel points in the second preview image in the bright area in the initial state, and directly outputs the second preview image as the target image.
Referring to fig. 11 and 12, in some embodiments, S30 further includes:
s33: if the brightness of the pixel points in the first preview image is distributed in the bright portion region and the dark portion region and the brightness of the pixel points in the second preview image is distributed in the bright portion region and the dark portion region, the imaging device 10 is controlled to perform automatic exposure according to the brightness distribution of the pixel points in the second preview image in the zoom state.
In some embodiments, the control module 116 is configured to control the imaging device 10 to perform automatic exposure according to the brightness distribution of the pixel points in the second preview image in the zoom state if the brightness distribution of the pixel points in the first preview image is in the bright portion area and the dark portion area and the brightness distribution of the pixel points in the second preview image is in the bright portion area and the dark portion area.
In some embodiments, the processor 20 is configured to control the imaging device 10 to perform automatic exposure according to the brightness distribution of the pixel points in the second preview image in the zoom state if the brightness distribution of the pixel points in the first preview image is in the bright portion area and the dark portion area and the brightness distribution of the pixel points in the second preview image is in the bright portion area and the dark portion area.
Specifically, in the histogram, if the luminance distribution of the pixel points in the first preview image is in the bright portion region and the dark portion region and the luminance distribution of the pixel points in the second preview image is in the bright portion region and the dark portion region, if the exposure compensation is determined according to the luminance distribution of the second preview image, it can be considered that the exposure parameter obtained by the metering mode determined by the luminance distribution of the second preview image can be accurately exposed, and the imaging device 10 is controlled to automatically expose the shot scene, so that the obtained target image is accurately imaged.
Specifically, the brightness of the pixel points in the first preview image is distributed in the bright portion region and the dark portion region, and the brightness of the pixel points in the second preview image is also distributed in the bright portion region and the dark portion region. It can be considered that both the first preview image and the second preview image have bright regions and dark regions. And confirming a light metering mode according to the brightness distribution of the pixel points in the second preview image, and when judging whether exposure compensation is needed or not in the light metering mode, controlling the imaging device 10 to automatically expose according to the exposure parameters determined by the brightness distribution of the second preview image because the content scenes of the second preview image and the target image are consistent, so that the obtained target image has a good imaging effect.
Further, when the photometric mode determines whether exposure compensation is required, the exposure compensation value may be selected according to a ratio of the bright area to the dark area in the second preview image. If the ratio of the bright area to the dark area in the second preview image is the same, the exposure compensation is not performed, if the bright area in the second preview image is less than the dark area, the exposure compensation value is increased to increase the exposure amount, if the bright area in the second preview image is more than the dark area, the exposure compensation value is decreased to decrease the exposure amount, and thus the target image with normal exposure can be obtained all the time.
Referring to fig. 13, in some embodiments, S20 includes:
s21: respectively counting the number of pixel points of each brightness in the histogram of the first preview image and the histogram of the second preview image;
s22: if the number of the pixel points is larger than or equal to a preset threshold value, counting the number of the pixel points under the brightness;
s23: and if the number of the pixel points is less than the preset threshold value, ignoring the number of the pixel points under the brightness.
In certain embodiments, S21-S23 may be implemented by processing module 114. Or, the processing module 114 is configured to count the number of pixels with each luminance in the histogram of the first preview image and the histogram of the second preview image, count the number of pixels with the luminance if the number of pixels is greater than or equal to a predetermined threshold, and ignore the number of pixels with the luminance if the number of pixels is less than the predetermined threshold.
In some embodiments, the processor 20 is configured to count the number of pixels with different brightness in the histogram of the first preview image and the histogram of the second preview image, respectively, count the number of pixels with different brightness if the number of pixels is greater than or equal to a predetermined threshold, and ignore the number of pixels with different brightness if the number of pixels is less than the predetermined threshold.
Specifically, the number of pixel points of each luminance in the histogram of the first preview image and the histogram of the second preview image is counted, and whether the histogram includes a dark area and a bright area can be determined according to the luminance of each histogram. If the number of pixels at a certain brightness is greater than or equal to the predetermined threshold, it may be considered that the histogram includes the brightness, and if the number of pixels is less than the predetermined threshold, it may be considered that the histogram does not include the brightness, or it may be considered that the brightness is too small to affect the imaging device 10, and the number of pixels at the brightness may be ignored.
And judging whether the histogram is in a bright part area or a dark part area, setting the proportion of the number of the pixel points in the dark part area or the bright part area to the total number of the pixel points, and if the proportion of the number of the pixel points in the dark part area or the bright part area to the total number of the pixel points is greater than or equal to a preset value, only including the dark part area or only including the bright part area. Otherwise, the histogram includes both the bright portion region and the dark portion region or only the bright portion region, for example, the preset value is set to 90%, and if the proportion of the pixel points in the dark portion region to the total number of the pixel points is greater than or equal to 90%, the histogram includes only the dark portion region.
Referring to fig. 14, for determining whether the brightness of the pixel is in the dark portion or the bright portion, the range may be divided in the histogram, the dark portion area is between 0 and 127, and the bright portion area is between 127 and 255, if the ratio of the number of the pixel in the dark portion area to the total number of the pixel is greater than or equal to the preset value falling between 0 and 127, the dark portion area is determined, and if the ratio of the number of the pixel in the dark portion area to the total number of the pixel is greater than or equal to the preset value falling between 127 and 255, the bright portion area is determined, otherwise, the histogram includes both the bright portion area and the dark portion area or only the bright portion area.
Referring to fig. 15 and 16, one or more non-transitory computer-readable storage media 500 containing computer-executable instructions that, when executed by one or more processors 20, cause the processors 20 to perform any of the above-described automatic exposure processing methods are also provided in embodiments of the present application.
The embodiment of the application also provides the electronic equipment 100. The electronic device 100 includes an imaging apparatus 10, a processor 20, and a memory 30 and one or more programs, wherein the one or more programs are stored in the memory 30 and configured to be executed by the one or more processors 20. The program includes a program for executing the automatic exposure processing method of any one of the above embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the above embodiments may be implemented by a computer program to instruct related hardware, and the program of the automatic exposure processing method may be stored in a non-volatile computer-readable storage medium 500, and when executed, may include the processes of the embodiments of the methods described above. The storage medium of the automatic exposure processing method may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), or the like.
The above examples only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (7)

1. An automatic exposure processing method of an imaging apparatus, comprising:
respectively acquiring a first preview image of the imaging device in an original state and a second preview image of the imaging device in a zoom state;
processing the histogram of the first preview image and the histogram of the second preview image to determine the brightness distribution of the pixel points in the first preview image and the second preview image; and
controlling the imaging device to automatically expose in the zooming state according to the brightness distribution of pixel points in the first preview image and the second preview image;
if the brightness of the pixel points in the first preview image is distributed in a bright part area and a dark part area and the brightness of the pixel points in the second preview image is distributed in the dark part area, controlling the imaging device to automatically expose in the zooming state according to the brightness distribution of the pixel points in the first preview image; or
If the brightness of the pixel points in the first preview image is distributed in a bright part area and a dark part area and the brightness of the pixel points in the second preview image is distributed in the bright part area, controlling the imaging device to automatically expose in the zooming state according to the brightness distribution of the pixel points in the second preview image; or
And if the brightness of the pixel points in the first preview image is distributed in a bright part area and a dark part area, and the brightness of the pixel points in the second preview image is distributed in the bright part area and the dark part area, controlling the imaging device to automatically expose in the zooming state according to the brightness distribution of the pixel points in the second preview image.
2. The automatic exposure processing method of claim 1, wherein the processing the histogram of the first preview image and the histogram of the second preview image to determine the brightness distribution of the pixel points in the first preview image and the second preview image comprises:
respectively counting the number of pixel points with each brightness in the histogram of the first preview image and the histogram of the second preview image;
if the number of the pixel points is larger than or equal to a preset threshold value, counting the number of the pixel points under the brightness;
and if the number of the pixel points is smaller than the preset threshold value, ignoring the number of the pixel points under the brightness.
3. An automatic exposure processing apparatus of an image forming apparatus, comprising:
the acquisition module is used for respectively acquiring a first preview image of the imaging device in an original state and a second preview image of the imaging device in a zoom state;
the processing module is used for processing the histogram of the first preview image and the histogram of the second preview image to determine the brightness distribution of pixel points in the first preview image and the second preview image; and
the control module is used for controlling the imaging device to automatically expose in the zooming state according to the brightness distribution of pixel points in the first preview image and the second preview image;
if the brightness of the pixel points in the first preview image is distributed in a bright part area and a dark part area and the brightness of the pixel points in the second preview image is distributed in the dark part area, controlling the imaging device to automatically expose in the zooming state according to the brightness distribution of the pixel points in the first preview image; or
If the brightness of the pixel points in the first preview image is distributed in a bright part area and a dark part area and the brightness of the pixel points in the second preview image is distributed in the bright part area, controlling the imaging device to automatically expose in the zooming state according to the brightness distribution of the pixel points in the second preview image; or
And if the brightness of the pixel points in the first preview image is distributed in a bright part area and a dark part area, and the brightness of the pixel points in the second preview image is distributed in the bright part area and the dark part area, controlling the imaging device to automatically expose in the zooming state according to the brightness distribution of the pixel points in the second preview image.
4. An electronic device comprising an imaging apparatus and a processor, wherein the processor is configured to:
respectively acquiring a first preview image of the imaging device in an original state and a second preview image of the imaging device in a zoom state;
processing the histogram of the first preview image and the histogram of the second preview image to determine the brightness distribution of the pixel points in the first preview image and the second preview image; and
controlling the imaging device to automatically expose in the zooming state according to the brightness distribution of pixel points in the first preview image and the second preview image;
if the brightness of the pixel points in the first preview image is distributed in a bright part area and a dark part area and the brightness of the pixel points in the second preview image is distributed in the dark part area, controlling the imaging device to automatically expose in the zooming state according to the brightness distribution of the pixel points in the first preview image; or
If the brightness of the pixel points in the first preview image is distributed in a bright part area and a dark part area and the brightness of the pixel points in the second preview image is distributed in the bright part area, controlling the imaging device to automatically expose in the zooming state according to the brightness distribution of the pixel points in the second preview image; or
And if the brightness of the pixel points in the first preview image is distributed in a bright part area and a dark part area, and the brightness of the pixel points in the second preview image is distributed in the bright part area and the dark part area, controlling the imaging device to automatically expose in the zooming state according to the brightness distribution of the pixel points in the second preview image.
5. The electronic device of claim 4, wherein the processor is further configured to:
respectively counting the number of pixel points with each brightness in the histogram of the first preview image and the histogram of the second preview image;
if the number of the pixel points is larger than or equal to a preset threshold value, counting the number of the pixel points under the brightness;
and if the number of the pixel points is smaller than the preset threshold value, ignoring the number of the pixel points under the brightness.
6. An electronic device comprising an imaging apparatus, a processor, and a memory; and
one or more programs, wherein the one or more programs are stored in the memory and executed by the one or more processors, the programs comprising instructions for performing the automatic exposure processing method of any of claims 1-2.
7. One or more non-transitory computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform the auto-exposure processing method of any one of claims 1-2.
CN201910765412.7A 2019-08-19 2019-08-19 Automatic exposure processing method, processing device and electronic equipment Active CN110493539B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910765412.7A CN110493539B (en) 2019-08-19 2019-08-19 Automatic exposure processing method, processing device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910765412.7A CN110493539B (en) 2019-08-19 2019-08-19 Automatic exposure processing method, processing device and electronic equipment

Publications (2)

Publication Number Publication Date
CN110493539A CN110493539A (en) 2019-11-22
CN110493539B true CN110493539B (en) 2021-03-23

Family

ID=68551478

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910765412.7A Active CN110493539B (en) 2019-08-19 2019-08-19 Automatic exposure processing method, processing device and electronic equipment

Country Status (1)

Country Link
CN (1) CN110493539B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021196208A1 (en) * 2020-04-03 2021-10-07 深圳市大疆创新科技有限公司 Image processing method, zoom camera, camera load device, and unmanned aerial vehicle
WO2022067490A1 (en) * 2020-09-29 2022-04-07 深圳市大疆创新科技有限公司 Light metering method and apparatus for digital zoom, photographing device, and mobile platform
CN112422842B (en) * 2020-11-18 2022-05-31 重庆紫光华山智安科技有限公司 Self-adaptive exposure method, medium and terminal
CN112689100B (en) * 2020-12-25 2022-08-02 北京灵汐科技有限公司 Image detection method, device, equipment and storage medium
CN112887630A (en) * 2021-04-06 2021-06-01 南昌欧菲光电技术有限公司 Automatic exposure method, electronic device, and computer-readable storage medium
CN114615439B (en) * 2022-03-08 2024-03-05 北京有竹居网络技术有限公司 Exposure statistical method, device, electronic equipment and medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1898945A (en) * 2004-07-30 2007-01-17 卡西欧计算机株式会社 Image pickup device with brightness correcting function and method of correcting brightness of image
CN101554043A (en) * 2006-05-29 2009-10-07 比特-赛德有限公司 Method and arrangement for processing records of imaging sensors, corresponding computer program, and corresponding computer-readable storage medium
CN103826066A (en) * 2014-02-26 2014-05-28 芯原微电子(上海)有限公司 Automatic exposure adjusting method and system
CN104517271A (en) * 2014-12-29 2015-04-15 小米科技有限责任公司 Image processing method and device
US9288428B2 (en) * 2010-05-11 2016-03-15 Olympus Corporation Shooting apparatus and method for controlling shooting apparatus
CN105635565A (en) * 2015-12-21 2016-06-01 华为技术有限公司 Shooting method and equipment
CN106575497A (en) * 2014-07-30 2017-04-19 株式会社索思未来 Image correction device and video content reproduction device
CN109478061A (en) * 2016-07-28 2019-03-15 深圳市大疆创新科技有限公司 Image exposure adjustment based on target
CN109495693A (en) * 2017-09-11 2019-03-19 佳能株式会社 Picture pick-up device and method, image processing equipment and method and storage medium
CN109792485A (en) * 2016-09-30 2019-05-21 高通股份有限公司 System and method for blending image
CN110072078A (en) * 2018-01-24 2019-07-30 佳能株式会社 Monitor camera, the control method of monitor camera and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011142597A (en) * 2010-01-09 2011-07-21 Seiko Epson Corp Projector and control method thereof
JP6120500B2 (en) * 2012-07-20 2017-04-26 キヤノン株式会社 Imaging apparatus and control method thereof
US20170302844A1 (en) * 2016-04-13 2017-10-19 Canon Kabushiki Kaisha Image capturing apparatus, control method therefor, and storage medium
CN106385541A (en) * 2016-09-30 2017-02-08 虹软(杭州)科技有限公司 Method for realizing zooming through wide-angle photographing component and long-focus photographing component
CN108154514B (en) * 2017-12-06 2021-08-13 Oppo广东移动通信有限公司 Image processing method, device and equipment

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1898945A (en) * 2004-07-30 2007-01-17 卡西欧计算机株式会社 Image pickup device with brightness correcting function and method of correcting brightness of image
CN101554043A (en) * 2006-05-29 2009-10-07 比特-赛德有限公司 Method and arrangement for processing records of imaging sensors, corresponding computer program, and corresponding computer-readable storage medium
US9288428B2 (en) * 2010-05-11 2016-03-15 Olympus Corporation Shooting apparatus and method for controlling shooting apparatus
CN103826066A (en) * 2014-02-26 2014-05-28 芯原微电子(上海)有限公司 Automatic exposure adjusting method and system
CN106575497A (en) * 2014-07-30 2017-04-19 株式会社索思未来 Image correction device and video content reproduction device
CN104517271A (en) * 2014-12-29 2015-04-15 小米科技有限责任公司 Image processing method and device
CN105635565A (en) * 2015-12-21 2016-06-01 华为技术有限公司 Shooting method and equipment
CN109478061A (en) * 2016-07-28 2019-03-15 深圳市大疆创新科技有限公司 Image exposure adjustment based on target
CN109792485A (en) * 2016-09-30 2019-05-21 高通股份有限公司 System and method for blending image
CN109495693A (en) * 2017-09-11 2019-03-19 佳能株式会社 Picture pick-up device and method, image processing equipment and method and storage medium
CN110072078A (en) * 2018-01-24 2019-07-30 佳能株式会社 Monitor camera, the control method of monitor camera and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Tone-mapping functions and multiple-exposure techniques for high dynamic-range images;Cvetkovic S;《IEEE Transactions on Consumer Electronics》;20080531;全文 *
关于相机照拍夜视图像曝光亮度估计仿真;匡银虎;《计算机仿真》;20181130;全文 *

Also Published As

Publication number Publication date
CN110493539A (en) 2019-11-22

Similar Documents

Publication Publication Date Title
CN110493539B (en) Automatic exposure processing method, processing device and electronic equipment
US8106965B2 (en) Image capturing device which corrects a target luminance, based on which an exposure condition is determined
US8121404B2 (en) Exposure control apparatus and image pickup apparatus
US7925047B2 (en) Face importance level determining apparatus and method, and image pickup apparatus
CN108337446B (en) High dynamic range image acquisition method, device and equipment based on double cameras
JP2001311980A (en) Exposure controller
US20140333824A1 (en) Method for Automatically Switching Terminal Focus Mode and Terminal
CN108616689B (en) Portrait-based high dynamic range image acquisition method, device and equipment
CN107846556B (en) Imaging method, imaging device, mobile terminal and storage medium
JP2011139171A (en) Video processing apparatus, and video processing method
CN111246114B (en) Photographing processing method and device, terminal equipment and storage medium
JP4554094B2 (en) Imaging device
CN111314622A (en) Adaptive adjustment method, device and system for image brightness under various scenes
EP2763396A1 (en) Automatic exposure bracketing
US20070097254A1 (en) Devices and methods for calculating pixel values representative of a scene
US11496694B2 (en) Dual sensor imaging system and imaging method thereof
CN112653845A (en) Exposure control method, exposure control device, electronic equipment and readable storage medium
CN111434104A (en) Image processing device, imaging device, image processing method, and program
CN110891145B (en) Method for obtaining image by photographing and electronic equipment
CN113438411A (en) Image shooting method, image shooting device, computer equipment and computer readable storage medium
CN108337448B (en) High dynamic range image acquisition method and device, terminal equipment and storage medium
CN113747062B (en) HDR scene detection method and device, terminal and readable storage medium
JP5849515B2 (en) Exposure calculation device and camera
JP2002369074A (en) Exposure controller for optical equipment and its program and its method
JP4789776B2 (en) Imaging apparatus and imaging method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant