CN114615439B - Exposure statistical method, device, electronic equipment and medium - Google Patents

Exposure statistical method, device, electronic equipment and medium Download PDF

Info

Publication number
CN114615439B
CN114615439B CN202210220396.5A CN202210220396A CN114615439B CN 114615439 B CN114615439 B CN 114615439B CN 202210220396 A CN202210220396 A CN 202210220396A CN 114615439 B CN114615439 B CN 114615439B
Authority
CN
China
Prior art keywords
value
image
color temperature
field image
camera
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
CN202210220396.5A
Other languages
Chinese (zh)
Other versions
CN114615439A (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.)
Beijing Youzhuju Network Technology Co Ltd
Original Assignee
Beijing Youzhuju Network Technology Co 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 Beijing Youzhuju Network Technology Co Ltd filed Critical Beijing Youzhuju Network Technology Co Ltd
Priority to CN202210220396.5A priority Critical patent/CN114615439B/en
Publication of CN114615439A publication Critical patent/CN114615439A/en
Application granted granted Critical
Publication of CN114615439B publication Critical patent/CN114615439B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/73Circuitry for compensating brightness variation in the scene by influencing the exposure time
    • 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

Landscapes

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

Abstract

The disclosure relates to an exposure statistics method, an exposure statistics device, electronic equipment and a medium, and particularly relates to the technical field of camera control. The method comprises the following steps: when the camera is in a digital zoom mode, acquiring reference data of a full-view field image; and carrying out exposure statistics on the target view field image according to the reference data. The embodiment of the disclosure is used for solving the problem of poor scene adaptability of the existing automatic exposure technology.

Description

Exposure statistical method, device, electronic equipment and medium
Technical Field
The disclosure relates to the technical field of camera control, and in particular relates to an exposure statistical method, an exposure statistical device, electronic equipment and a medium.
Background
The automatic exposure is to automatically adjust and adjust exposure time, aperture and sensitivity value according to the intensity of light so that the photo brightness is normal and overexposure or underexposure is prevented, but under the scene with larger contrast like day and night scene, the automatic exposure technology has error when the camera is in a zooming mode. The prior art designs two schemes to reduce the influence caused by the scene contrast around the clock when the camera is in the zooming mode, one is that the photo brightness of the photo shot in the daytime is normal by using the full-size picture of the camera for exposure, and the other is that the photo brightness of the photo shot at night is normal by using the picture cut after digital zooming for exposure, however, the selection of the two schemes is relatively fixed, the automatic selection cannot be carried out according to the switching of the scene around the clock, the photo shot at night is overexposed or the photo contrast of the photo shot in the daytime is low, and the use experience of a user is influenced.
Disclosure of Invention
In order to solve the above technical problems or at least partially solve the above technical problems, the present disclosure provides an exposure statistics method, an apparatus, an electronic device, and a medium, which can switch an exposure statistics scheme according to a scene change to improve image quality.
In order to achieve the above object, the technical solution provided by the embodiments of the present disclosure is as follows:
in a first aspect, there is provided an exposure statistics method, the method comprising:
when the camera is in a digital zoom mode, acquiring reference data of a full-view field image, wherein the reference data comprises a sensitivity value and/or a color temperature value;
determining a target view field image for exposure statistics according to a preset parameter range where the reference data are located;
wherein the target field of view image comprises: a full field image of the camera, or a field image of the camera after digital zoom.
Optionally, the reference data is a sensitivity value;
determining a target field image for exposure statistics based on the reference data, comprising:
determining the full field image as a target field image if the sensitivity value is less than or equal to the sensitivity threshold;
in the case where the sensitivity value is greater than the sensitization threshold, the field image of the camera after digital zooming is determined as the target field image.
Optionally, the reference data is a color temperature value;
determining a target view field image for exposure statistics according to a preset parameter range where the reference data is located, including:
determining the full field image as a target field image if the color temperature value is greater than the color temperature threshold;
in the case where the color temperature value is less than or equal to the color temperature threshold value, the field-of-view image of the camera after digital zooming is determined as the target field-of-view image.
Optionally, the method is applied to an electronic device including a camera and a near infrared sensor, and the method further includes:
when the camera is in a digital zoom mode, acquiring an energy value through a near infrared sensor;
determining a target view field image for exposure statistics according to a preset parameter range where the reference data is located, including:
and determining a target view field image for exposure statistics according to the preset parameter range where the reference data is located and the energy range where the energy value is located.
Optionally, the reference data includes a sensitivity value and a color temperature value, and determining the target field image for performing exposure statistics according to a preset parameter range where the reference data is located and an energy range where the energy value is located, including:
determining the full-view field image as a target view field image under the condition that the light sensitivity value is smaller than or equal to a light sensitivity threshold, the color temperature value is larger than a color temperature threshold and the energy value is larger than an energy threshold;
In the case where the sensitivity value is greater than the light sensing threshold, the color temperature value is less than or equal to the color temperature threshold, and the energy value is less than or equal to the energy threshold, the field-of-view image of the camera after digital zooming is determined as the target field-of-view image.
Optionally, the reference data includes a sensitivity value, and determining the target field image for performing exposure statistics according to a preset parameter range where the reference data is located and an energy range where the energy value is located, including:
determining the full field image as a target field image when the sensitivity value is less than or equal to the sensitivity threshold and the energy value is greater than the energy threshold;
and under the condition that the light sensitivity value is larger than the light sensitivity threshold value and the energy value is smaller than or equal to the energy threshold value, determining the field image of the camera after digital zooming as a target field image.
Optionally, the reference data includes a color temperature value, and determining the target field image for performing exposure statistics according to a preset parameter range where the reference data is located and an energy range where the energy value is located, including:
determining the full view field image as a target view field image under the condition that the color temperature value is larger than the color temperature threshold value and the energy value is larger than the energy threshold value;
and determining the field of view image of the camera after digital zooming as a target field of view image in the case that the color temperature value is less than or equal to the color temperature threshold and the energy value is less than or equal to the energy threshold.
In a second aspect, there is provided an exposure statistics apparatus, the apparatus comprising:
the receiving module is used for acquiring reference data of the full-view field image when the camera is in the digital zoom mode, wherein the reference data comprises a sensitivity value and/or a color temperature value;
the processing module is used for determining a target view field image for exposure statistics according to a preset parameter range where the reference data are located;
wherein the target field of view image comprises: a full field image of the camera, or a field image of the camera after digital zoom.
Optionally, the reference data is a sensitivity value; the processing module is specifically used for determining the full-view field image as a target view field image under the condition that the sensitivity value is smaller than or equal to the sensitization threshold value;
in the case where the sensitivity value is greater than the sensitization threshold, the field image of the camera after digital zooming is determined as the target field image.
Optionally, the reference data is a color temperature value; the processing module is specifically used for determining the full view field image as a target view field image under the condition that the color temperature value is larger than the color temperature threshold value;
in the case where the color temperature value is less than or equal to the color temperature threshold value, the field-of-view image of the camera after digital zooming is determined as the target field-of-view image.
Optionally, the exposure statistics device comprises a camera and a near infrared sensor;
the receiving module is also used for acquiring an energy value through the near infrared sensor when the camera is in the digital zoom mode;
and the processing module is also used for determining a target view field image for exposure statistics according to the preset parameter range where the reference data is located and the energy range where the energy value is located.
Optionally, the reference data includes a sensitivity value and a color temperature value, and the processing module is specifically configured to determine the full-field image as the target field image when the sensitivity value is less than or equal to a sensitivity threshold, the color temperature value is greater than a color temperature threshold, and the energy value is greater than an energy threshold;
in the case where the sensitivity value is greater than the light sensing threshold, the color temperature value is less than or equal to the color temperature threshold, and the energy value is less than or equal to the energy threshold, the field-of-view image of the camera after digital zooming is determined as the target field-of-view image.
Optionally, the reference data includes a sensitivity value, and the processing module is specifically configured to determine the full field image as the target field image when the sensitivity value is less than or equal to a sensitivity threshold and the energy value is greater than an energy threshold;
and under the condition that the light sensitivity value is larger than the light sensitivity threshold value and the energy value is smaller than or equal to the energy threshold value, determining the field image of the camera after digital zooming as a target field image.
Optionally, the reference data includes a color temperature value, and the processing module is specifically configured to determine the full field image as the target field image when the color temperature value is greater than the color temperature threshold and the energy value is greater than the energy threshold;
and determining the field of view image of the camera after digital zooming as a target field of view image in the case that the color temperature value is less than or equal to the color temperature threshold and the energy value is less than or equal to the energy threshold.
In a third aspect, there is provided an electronic device comprising: a processor, a memory and a computer program stored on the memory and executable on the processor, which when executed by the processor implements the exposure statistics method as described in the first aspect or any of its alternative embodiments.
In a fourth aspect, there is provided a computer-readable storage medium comprising: the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the exposure statistics method according to the first aspect or any of its alternative embodiments.
In a fifth aspect, a computer program product is provided, comprising: the computer program product, when run on a computer, causes the computer to implement the exposure statistics method as described in the first aspect or any of its alternative embodiments.
Compared with the prior art, the technical scheme provided by the embodiment of the disclosure has the following advantages:
the embodiment of the disclosure provides an exposure statistics method, when a camera is in a digital zoom mode, reference data of a full-view field image before digital zooming in the camera is firstly obtained, the reference data comprises a light sensitivity value and/or a color temperature value, so that the light intensity of a shooting environment is accurately determined, and then whether exposure statistics is carried out based on the full-view field image of the camera or the view field image after digital zooming is determined according to the reference data, so that the current shooting scene is further accurately determined by obtaining the light data of the shooting scene, the automatic selection of an appropriate view field image for exposure statistics is realized, the shot photo is normally exposed and is not influenced due to the change of the shooting scene, and the use experience of a user is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
In order to more clearly illustrate the embodiments of the present disclosure or the solutions in the prior art, the drawings that are required for the description of the embodiments or the prior art will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
Fig. 1 is a schematic diagram of an application scenario of an exposure statistics method according to an embodiment of the disclosure;
FIG. 2 is a schematic illustration of an image of a field of view of a target in accordance with an embodiment of the present disclosure;
FIG. 3 is a flowchart illustrating an exposure statistics method according to an embodiment of the disclosure;
fig. 4 is a second application scenario diagram of an exposure statistics method according to an embodiment of the disclosure;
FIG. 5 is a second flowchart of an exposure statistics method according to an embodiment of the disclosure;
FIG. 6 is a block diagram of an exposure statistics apparatus according to an embodiment of the present disclosure;
fig. 7 is a block diagram of an electronic device according to an embodiment of the disclosure.
Detailed Description
In order that the above objects, features and advantages of the present disclosure may be more clearly understood, a further description of aspects of the present disclosure will be provided below. It should be noted that, without conflict, the embodiments of the present disclosure and features in the embodiments may be combined with each other.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present disclosure, but the present disclosure may be practiced otherwise than as described herein; it will be apparent that the embodiments in the specification are only some, but not all, embodiments of the disclosure.
In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the technical terms required to be used in the description of the embodiments or the prior art will be briefly described as follows:
the digital zooming is called digital zooming (digital zoom), and each pixel area in the picture is increased by a processor in the digital camera, so that the purpose of amplification is achieved, the original image is a full-view image, and the amplified image is the image after digital zooming.
Currently, the automatic exposure (Automatic Exposure) is to automatically adjust the exposure time, aperture and sensitivity value according to the intensity of light so that the photo brightness is normal and overexposure or underexposure is prevented, but when the camera is in a zoom mode under a scene with larger contrast like a day-night scene, the automatic exposure technology is in error, which results in poor contrast of the digitally zoomed image photographed in daytime, so that the picture is not transparent, or the exposure area in the full-view image photographed at night is too large.
In the prior art, two schemes are designed to reduce the influence caused by the day and night scene contrast when the camera is in a digital zooming mode, one scheme is that the photo shot in the daytime can be normal in brightness by using a full-size picture of the camera for exposure, and the other scheme is that the photo shot at night is normal in brightness by using a picture cut after digital zooming for exposure, but the two schemes are fixed.
For example, in a general dynamic range scene such as a building, a landscape, etc. in daytime, the full-view scheme can make the picture have better contrast and the picture clear, while if the field-of-view scheme after digital zooming is adopted, the picture contrast is lower and the picture is blurred. In contrast, in the scene with more high light at night, such as the scene of LED advertising board, neon lamp, building light, etc., the field of view scheme after the digital zoom is adopted can effectively restrain highlight and overexposure area, and if the full field of view scheme is adopted, the light overexposure can be caused. In addition, in the digital zoom mode, the automatic exposure statistical scheme of the default camera can only be selected from two, so that automatic selection cannot be performed according to switching of day and night scenes, so that the photo shot at night is overexposed or the contrast of the photo shot in daytime is low, and the use experience of a user is affected.
In order to solve the technical problems, the embodiment of the disclosure provides an exposure statistics method, when a camera is in a digital zoom mode, reference data of a full-view image before digital zooming in the camera is acquired first, including a sensitivity value and/or a color temperature value, so as to accurately determine light intensity of a shooting environment, and then according to the reference data, whether exposure statistics is performed based on the full-view image of the camera or based on the view image of the camera after digital zooming is performed, thereby realizing further accurate determination of a current shooting scene by acquiring light data of the shooting scene, realizing automatic selection of an appropriate view image for exposure statistics, enabling the shot photo to be normally exposed, not being affected due to change of the shooting scene, and improving use experience of a user.
The exposure counting method described in the embodiments of the present disclosure may be applied to an exposure counting device or an electronic apparatus, where the exposure counting device may be a functional module and/or a functional entity in the electronic apparatus that may implement the exposure counting method.
The electronic device may be a camera-equipped device including, but not limited to: a smart Phone (such as an Android Phone, an IOS Phone, a Windows Phone, etc.), a tablet computer, a palm computer, a notebook computer, or a wearable device, and the electronic device may be one of a surveillance camera, a web camera, a civil camera, and a professional camera.
Referring to fig. 1, fig. 1 is a schematic diagram of an application scenario of an exposure statistics method according to an embodiment of the disclosure, where an electronic device includes a camera 110 and a platform 120. Wherein the platform 120 may be an application. In the scene, when the camera 110 is in the digital zoom mode, reference data of the full-view image, including a sensitivity value and/or a color temperature value, is acquired from the platform 120, and the current shooting scene is judged to be daytime or night according to the preset parameter range where the reference data is located, so that exposure statistics based on the target view image is determined, a scheme of accurately adjusting the exposure statistics according to the intensity of light of the shooting scene is realized, a photograph of normal exposure is obtained, and the use experience of a user is improved.
Wherein the target field of view image comprises a full field of view image of the camera 110, or a field of view image of the camera 110 after digital zoom. As shown in fig. 2, fig. 2 is a schematic diagram of a target field image according to an embodiment of the present disclosure, where (a) in fig. 2 is a full field image in a viewfinder of the camera 110, and (b) in fig. 2 is a field image of the camera 110 in the viewfinder after digital zooming.
In an application scenario as shown in fig. 1, the camera 110 shoots under a daytime scene, when the camera 110 is in a digital zoom mode, a preview image in the camera is shown in a graph (b), and the camera 110 obtains a sensitivity value and/or a color temperature value of a full-field image from the platform end 120, and since the sensitivity value in the daytime is less than 800 and the color temperature value is greater than 3000K, a detection result of a current shooting scene can be determined to be in the daytime according to the sensitivity value and/or the color temperature value of the full-field image, and further, the camera 110 performs exposure statistics based on the full-field image, so that a photo with better contrast can be obtained.
As shown in fig. 3, fig. 3 is a flowchart of a method for calculating exposure according to an embodiment of the disclosure, where the method includes:
s301, when the camera is in a digital zoom mode, acquiring reference data of a full-field image.
The digital zoom mode refers to zooming in a lens to enlarge a photographed object in a current picture or zooming out the lens to reduce the photographed object in the current picture when the focal length of the camera is unchanged.
The reference data includes a sensitivity value (International Standardization Organization, ISO) and/or a color temperature value, and may further include an aperture and a shutter time, and it is understood that parameters that can be used to calculate the brightness of the full-field image are suitable for the exposure statistics method provided in the present disclosure, and are not described herein.
In some embodiments, the exposure statistics method provided by the present disclosure may be applied to an electronic device including a camera and a near infrared sensor, and when the camera is in a digital zoom mode, on the basis of reference data of a full-field image, an energy value is acquired through the near infrared sensor, so that the reference data and the energy value are combined to perform shooting scene detection, so as to accurately determine whether a shooting scene is day or night.
In the above embodiment, when the camera is in the digital zoom mode, there may be a situation that the contrast of the image is poor, and the reference data of the full-field image is obtained, where the reference data includes a sensitivity value and/or a color temperature value, and the energy value sent by the near infrared sensor may also be obtained, and accurate detection of the shooting environment may be performed through the reference data and the energy value, so as to determine whether the shooting environment is daytime or nighttime, and further perform exposure statistics based on subsequent processing to improve the contrast of the image, so that the picture is more transparent.
S302, determining a target view field image for exposure statistics according to a preset parameter range where the reference data are located.
The exposure statistics refers to that three variables of shutter time, gain and aperture of a camera are obtained and multiplied to obtain an exposure statistics value, so that whether an image is overexposed, underexposed or normally exposed is determined.
The target field of view image includes: a full field image of the camera, or a field image of the camera after digital zoom.
In some embodiments, determining exposure statistics based on the target field of view image based on the difference in reference data includes the following three cases:
(1) The reference data is a sensitivity value
The camera in the present disclosure presumes the ambient brightness of the shooting scene according to the acquired sensitivity value, thereby determining whether the shooting scene is daytime or night. It should be noted that, the division of the shooting scene is not limited to day and night, but can be day indoor, day outdoor, night indoor and night outdoor, and further subdivided according to different light sources, such as a night fluorescent lamp, a night incandescent lamp and a night LED lamp, wherein the night incandescent lamp represents a night scene with the light source being the incandescent lamp, and can be understood that the main light source is the incandescent lamp when the night camera shoots, and the meaning of other subdivided scenes is similar, and is not repeated herein.
In general, the ambient brightness of a photographing scene in daytime is large, the sensitivity value is small, and the ambient brightness of the photographing scene in night is small, and the sensitivity value is large. Therefore, the sensitivity threshold may be determined according to the sensitivity data of the actual shooting environment, as shown in table 1, table 1 is a sensitivity value corresponding to different scenes, table 1 is only shown as an example, and the determination is performed according to the actual data for the sensitivity value in different scenes, which is not limited herein.
Scene(s) Sensitivity value
Daytime outdoor 100
Daytime indoor 394
Night scene of light 157
Conventional night scene 1 1181
Conventional night scene 2 2859
TABLE 1
In some embodiments, a photosensitive threshold is preset, under the condition that the photosensitive value is smaller than or equal to the photosensitive threshold, a shooting scene can be determined to be in daytime, and a full-view field image is determined to be a target view field image, so that exposure statistics is carried out on the full-view field image, and an image with high contrast and definition is obtained; when the sensitivity value is larger than the sensitization threshold value, the shooting scene can be determined to be at night, and the view field image of the camera after digital zooming is determined to be a target view field image, so that exposure statistics is carried out on the view field image.
For example, setting the sensitization threshold to 800, when the sensitization value is less than or equal to 800, determining that the shooting scene is daytime, and further determining the full-view field image as the target view field image, so as to perform exposure statistics on the full-view field image; when the sensitivity value is greater than 800, the current shooting scene can be determined to be at night, and the view field image of the camera after digital zooming is further determined to be a target view field image, so that exposure statistics is carried out on the view field image.
According to the embodiment, the sensitivity is compared with the sensitization threshold value to determine whether the shooting scene is daytime or evening, and the corresponding target view field image is subjected to exposure statistics, so that the target view field image for exposure statistics is flexibly switched according to the shooting scene, clear images can be shot for different scene cameras, and the use experience sense of a user is improved.
(2) The reference data is the color temperature value
The camera can also determine according to the obtained color temperature value, and the light can also influence the camera to distinguish whether the shooting scene is the daytime or the night in the actual life, so that the shooting scene is the daytime scene or the night scene according to different color temperature values corresponding to different scenes based on the color temperature characteristics of the light source. As shown in table 2, table 2 shows color temperature values corresponding to different scenes.
Scene(s) Color temperature value
Daytime outdoor 6357K
Daytime indoor 4093K
Low-brightness incandescent lamp 2320K
High-brightness incandescent lamp 2862K
TABLE 2
In some embodiments, a color temperature threshold is preset, and if the color temperature value is greater than the color temperature threshold, it can be determined that the shooting scene is daytime, and then the full-view field image is determined as the target view field image, so that exposure statistics is performed on the full-view field image; and under the condition that the color temperature value is smaller than or equal to the color temperature threshold value, determining that the shooting scene is at night, and determining a view field image of the camera after digital zooming as a target view field image, so as to carry out exposure statistics on the view field image.
For example, when the color temperature threshold is set to 3000 according to table 2, it may be determined that the photographed scene is daytime and the full-field image is further determined as the target field image, so that exposure statistics is performed for the full-field image when the color temperature value is greater than 3000; when the color temperature value is less than or equal to 3000, it may be determined that the current photographing scene is night.
According to the embodiment, shooting scenes of the camera are distinguished according to different color temperature values of different scenes, and daytime scenes and night scenes are distinguished by setting the color temperature threshold, so that exposure statistics is performed on the daytime scenes based on full-view images, exposure statistics is performed on the night scenes based on view images after digital zooming, and clear images with good visual effects are obtained on the different scenes.
(3) The reference data are a sensitivity value and a color temperature value
In some embodiments, in the case where the sensitivity value is less than or equal to the sensitivity threshold and the color temperature value is greater than the color temperature threshold, the shooting scene may be determined to be daytime, and the full-field image is determined to be the target field image, so that exposure statistics is performed for the full-field image; when the sensitivity value is larger than the light sensing threshold value and the color temperature value is smaller than or equal to the color temperature threshold value, the shooting scene can be determined to be at night, and then the view field image of the camera after digital zooming is determined to be a target view field image, so that exposure statistics is carried out on the view field image.
In addition to the above three cases, in order to improve the accuracy of detecting the intensity of light of a shooting scene, the exposure statistics method provided by the present disclosure may be applied to an electronic device including a camera and a near infrared sensor, and according to the obtained energy value, the sensitivity value and the color temperature value, it may be determined that exposure statistics is performed based on a target field image.
Fig. 4 shows a second application scenario of the exposure statistics method according to the embodiment of the present disclosure, where an electronic device includes a camera 401, a near infrared sensor 402, and a platform 403. In this scenario, when the camera 401 is in the digital zoom mode, reference data of an image, including a sensitivity value and/or a color temperature value, and an energy value transmitted to the platform 430 by the near infrared sensor 402 are acquired from the platform 430, and then it is determined whether to perform exposure statistics based on a full-field image of the camera 401 or to perform exposure statistics based on a field image of the camera 401 after digital zooming according to a preset parameter range in which the reference data is located and an energy range in which the energy value is located. In practical application, because the camera 401 only has difficulty in distinguishing daytime scenes and fluorescent lamp night scenes with similar numerical values according to the reference data, the daytime scenes and the fluorescent lamp night scenes can be distinguished more accurately by combining the energy value provided by the near infrared sensor 402, so that different target view field images are determined to carry out exposure statistics under the similar scenes, and the quality of the shot pictures is improved.
It should be noted that the above application scenario is only an exemplary scenario, where the camera 401 and the near infrared sensor 402 may be disposed on the same electronic device, or the near infrared sensor 402 may be used as an external auxiliary device of the electronic device, and not be disposed on the same electronic device as the camera 401.
In some embodiments, the exposure statistics based on the target field image are determined according to the preset parameter range where the reference data is located and the energy range where the energy value is located, and the following description will be divided into three cases:
A. determination based on sensitivity, color temperature and energy values
The method and the device can accurately distinguish whether the shooting scene is day or night according to the sensitivity value, the color temperature value and the energy value. It can be understood that the sun is used as a light source in daytime, the energy value is higher, and the light effect exists in the night scene, and the scene detection analysis result can be more accurate by combining the energy value on the basis of preliminary judgment according to the light sensitivity value and the color temperature value. Generally, the night light source can be divided into a cold light source and a hot light source, for example, a fluorescent lamp, an LED lamp is the cold light source, and an incandescent lamp is the hot light source, so that in order to accurately distinguish between a daytime scene and a night scene, the influence of energy values of different light sources on the scene detection analysis result needs to be eliminated. As shown in table 3, table 3 is the energy values corresponding to different scenarios.
Scene(s) Energy value
Daytime 9.84
Night incandescent lamp 4.40
Night fluorescent lamp 0.16
Night LED lamp 0.13
TABLE 3 Table 3
In some embodiments, a photosensitive threshold, a color temperature threshold and an energy threshold are preset, and when the sensitivity value is smaller than or equal to the photosensitive threshold, the color temperature value is larger than the color temperature threshold and the energy value is larger than the energy threshold, the shooting scene can be accurately detected to be daytime, and then the full-view field image is determined to be a target view field image so as to carry out exposure statistics on the full-view field image; when the sensitivity value is larger than the sensitization threshold, the color temperature value is smaller than or equal to the color temperature threshold, and the energy value is smaller than or equal to the energy threshold, the shooting scene can be accurately detected to be at night, and then the view field image of the camera after digital zooming is determined to be a target view field image, so that exposure statistics is carried out on the view field image.
B. Determination based on sensitivity and energy values
In some embodiments, in the event that the sensitivity value is less than or equal to the sensitivity threshold and the energy value is greater than the energy threshold, determining the full field of view image as the target field of view image to perform exposure statistics for the full field of view image; and under the condition that the light sensitivity value is larger than the light sensitivity threshold and the energy value is smaller than or equal to the energy threshold, determining a view field image of the camera after digital zooming as a target view field image, and carrying out exposure statistics on the view field image.
C. Determination from color temperature and energy values
In some embodiments, in the event that the color temperature value is greater than the color temperature threshold and the energy value is greater than the energy threshold, determining the full field of view image as the target field of view image to perform exposure statistics for the full field of view image; and under the condition that the color temperature value is smaller than or equal to the color temperature threshold value and the energy value is smaller than or equal to the energy threshold value, determining a view field image of the camera after digital zooming as a target view field image so as to carry out exposure statistics on the view field image.
According to the embodiment, the scene detection analysis is carried out according to the acquired sensitivity value, color temperature value and energy value of the full-view field image, so that whether a shooting scene is daytime or night is determined, the influence of light on night scene detection is eliminated by combining the three parameters, the accuracy of scene detection is improved, the proper target view field image is automatically selected according to the shooting scene for exposure statistics, the quality of the image in a digital zoom mode is improved, and therefore the image with high contrast and definition is obtained.
In summary, the embodiment of the disclosure provides an exposure statistics method, when a camera is in a digital zoom mode, reference data of a full-view image in the camera is acquired first, including a sensitivity value and/or a color temperature value, so as to accurately determine light intensity of a shooting environment, and then whether exposure statistics is performed based on the full-view image of the camera or based on the view image of the camera after digital zoom is determined according to a preset parameter range where the reference data is located, so that the current shooting scene is further accurately determined by acquiring the light data of the shooting scene, and then the proper view image is automatically selected for exposure statistics, so that the shot photo is normally exposed and is not affected due to the change of the shooting scene, and the use experience of a user is improved.
As shown in fig. 5, fig. 5 is a flowchart second of an exposure statistics method according to an embodiment of the disclosure, where the method includes:
s501, when the camera is in the digital zoom mode, a sensitivity value and a color temperature value of the full-field image are acquired, and an energy value is acquired by a near infrared sensor.
S502, judging whether the sensitivity value is smaller than or equal to a photosensitive threshold.
If the sensitivity value is less than or equal to the photosensitive threshold, then executing S503;
if the sensitivity value is greater than the photosensitive threshold, S506 is performed.
The darker night scenes can be screened out through S502, so that exposure statistics based on the field image after digital zooming of the camera are determined for the shooting scene of the darker night.
S503, judging whether the energy value is larger than an energy threshold value.
If the energy value is greater than the energy threshold, then S504 is performed;
if the energy value is less than or equal to the energy threshold, S506 is performed.
Further screening out night scenes with cold light sources as light sources through S503, so that the view field image of the camera after digital zooming is determined as the target view field image aiming at the night scenes of the type.
S504, judging whether the color temperature value is larger than a color temperature threshold value.
If the color temperature value is greater than the color temperature threshold, executing S505;
If the color temperature value is less than or equal to the color temperature threshold value, S506 is performed.
The daytime scene and the night scene with the light source being the hot light source can be accurately distinguished through the S504, so that the exposure statistics based on the full-view field image in the daytime scene can be determined in a targeted manner, or the exposure statistics based on the view field image after the digital zooming of the camera can be determined in the night scene with the light source being the hot light source.
S505, determining the full field image as a target field image.
When the sensitivity value is smaller than or equal to the light sensing threshold, the color temperature value is larger than the color temperature threshold, and the energy value is larger than the energy threshold, the shooting scene can be determined to be in daytime, and the full-view field image is determined to be a target view field image so as to carry out exposure statistics on the full-view field image.
S506, determining a field image of the camera after digital zooming as a target field image.
As shown in fig. 6, fig. 6 is a block diagram of an exposure statistics apparatus according to an embodiment of the disclosure, the apparatus includes:
the receiving module 601 is configured to obtain reference data of a full-field image when the camera is in a digital zoom mode, where the reference data includes a sensitivity value and/or a color temperature value;
a processing module 602, configured to determine a target field image for performing exposure statistics according to the reference data;
Wherein the target field of view image comprises: a full field image of the camera, or a field image of the camera after digital zoom.
In some embodiments, the reference data is a sensitivity value; the processing module 602 is specifically configured to determine the full field image as the target field image if the sensitivity value is less than or equal to the sensitivity threshold;
in the case where the sensitivity value is greater than the sensitization threshold, the field view image of the camera after digital zooming is determined as the target field image.
In some embodiments, the reference data is a color temperature value; the processing module 602 is specifically configured to determine the full field of view image as the target field of view image when the color temperature value is greater than the color temperature threshold;
in the case where the color temperature value is less than or equal to the color temperature threshold value, the view field map of the camera after digital zooming is determined as the target view field image.
In some embodiments, the exposure statistics device includes a camera and a near infrared sensor;
the receiving module 601 is further configured to obtain an energy value through the near infrared sensor when the camera is in the digital zoom mode;
the processing module 602 is further configured to determine, according to a preset parameter range in which the reference data is located and an energy range in which the energy value is located, exposure statistics based on the target field image.
In some embodiments, the reference data includes a sensitivity value and a color temperature value, and the processing module 602 is specifically configured to determine the full field of view image as the target field of view image when the sensitivity value is less than or equal to the sensitivity threshold, the color temperature value is greater than the color temperature threshold, and the energy value is greater than the energy threshold;
in the case where the sensitivity value is greater than the light sensing threshold, the color temperature value is less than or equal to the color temperature threshold, and the energy value is less than or equal to the energy threshold, the field of view image of the camera after digital zooming is determined as the target field of view image.
In some embodiments, the reference data includes a sensitivity value, and the processing module 602 is specifically configured to determine the full field of view image as the target field of view image if the sensitivity value is less than or equal to the sensitivity threshold and the energy value is greater than the energy threshold;
and under the condition that the light sensitivity value is larger than the light sensitivity threshold value and the energy value is smaller than or equal to the energy threshold value, determining the view field image of the camera after digital zooming as a target view field image.
In some embodiments, the reference data includes a color temperature value, and the processing module 602 is specifically configured to determine the full field of view image as the target field of view image if the color temperature value is greater than the color temperature threshold and the energy value is greater than the energy threshold;
And determining a view field image of the camera after digital zooming as a target view field image under the condition that the color temperature value is smaller than or equal to a color temperature threshold value and the energy value is smaller than or equal to an energy threshold value.
As shown in fig. 7, fig. 7 is a block diagram of an electronic device according to an embodiment of the present disclosure, where the embodiment of the present disclosure provides an electronic device, the electronic device includes: a processor 701, a memory 702, and a computer program stored on the memory 702 and executable on the processor 701, which when executed by the processor 701, implements the respective processes of the exposure statistics method in the above-described method embodiments. And the same technical effects can be achieved, and in order to avoid repetition, the description is omitted here.
The embodiment of the invention provides a computer readable storage medium, which is characterized in that the computer readable storage medium stores a computer program, and when the computer program is executed by a processor, the computer program realizes each process of the exposure statistics method in the embodiment of the method, and can achieve the same technical effect, so that repetition is avoided, and no redundant description is provided herein.
The computer readable storage medium may be a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, an optical disk, or the like.
The embodiment of the invention provides a computer program product, which stores a computer program, and when the computer program is executed by a processor, the computer program realizes each process of the exposure statistics method in the embodiment of the method, and can achieve the same technical effect, so that repetition is avoided, and the description is omitted here.
It will be appreciated by those skilled in the art that embodiments of the present disclosure may be provided as a method, system, or computer program product. Accordingly, the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present disclosure may take the form of a computer program product embodied on one or more computer-usable storage media having computer-usable program code embodied therein.
In this disclosure, the processor may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
In the present disclosure, memory may include volatile memory, random Access Memory (RAM), and/or nonvolatile memory, such as Read Only Memory (ROM) or flash RAM, in a computer readable medium. Memory is an example of a computer-readable medium.
In the present disclosure, computer readable media include both permanent and non-permanent, removable and non-removable storage media. Storage media may embody any method or technology for storage of information, which may be computer readable instructions, data structures, program modules, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Disks (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should be noted that in this document, relational terms such as "first" and "second" and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
The above is merely a specific embodiment of the disclosure to enable one skilled in the art to understand or practice the disclosure. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the disclosure. Thus, the present disclosure is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (9)

1. An exposure statistical method, comprising:
when the camera is in a digital zoom mode, acquiring reference data of a full-view field image, wherein the reference data comprises a sensitivity value and/or a color temperature value;
determining a target view field image for exposure statistics according to the reference data;
wherein the target field of view image comprises: the full field image of the camera, or a field image of the camera after digital zooming;
wherein the reference data is a sensitivity value; the determining the target view field image for carrying out exposure statistics according to the reference data comprises the following steps:
determining the full field image as the target field image if the sensitivity value is less than or equal to a sensitivity threshold;
and under the condition that the sensitivity value is larger than a sensitization threshold value, determining a field image of the camera after digital zooming as the target field image.
2. The method of claim 1, wherein the reference data is a color temperature value;
the determining the target view field image for carrying out exposure statistics according to the reference data comprises the following steps:
determining the full field of view image as the target field of view image if the color temperature value is greater than a color temperature threshold;
And under the condition that the color temperature value is smaller than or equal to a color temperature threshold value, determining a field image of the camera after digital zooming as the target field image.
3. The method according to any one of claims 1 to 2, applied to an electronic device comprising the camera and a near infrared sensor, further comprising:
acquiring an energy value through the near infrared sensor when the camera is in a digital zoom mode;
the determining the target view field image for carrying out exposure statistics according to the reference data comprises the following steps:
and determining the target view field image for exposure statistics according to the preset parameter range where the reference data is located and the energy range where the energy value is located.
4. A method according to claim 3, wherein the reference data includes a sensitivity value and a color temperature value, and the determining the target field image for exposure statistics based on a preset parameter range in which the reference data is located and an energy range in which the energy value is located includes:
determining the full field of view image as the target field of view image if the sensitivity value is less than or equal to the sensitivity threshold, the color temperature value is greater than the color temperature threshold, and the energy value is greater than an energy threshold;
And determining a field-of-view image of the camera after digital zooming as the target field-of-view image under the condition that the sensitivity value is larger than the sensitization threshold, the color temperature value is smaller than or equal to the color temperature threshold and the energy value is smaller than or equal to the energy threshold.
5. A method according to claim 3, wherein the reference data includes a sensitivity value, and the determining the target field of view image for exposure statistics based on a preset parameter range in which the reference data is located and an energy range in which the energy value is located includes:
determining the full field of view image as the target field of view image if the sensitivity value is less than or equal to the sensitivity threshold and the energy value is greater than an energy threshold;
and determining a field image of the camera after digital zooming as the target field image under the condition that the light sensitivity value is larger than the light sensitivity threshold and the energy value is smaller than or equal to the energy threshold.
6. A method according to claim 3, wherein the reference data comprises color temperature values, and wherein determining the target field of view image for exposure statistics based on a preset parameter range in which the reference data is located and an energy range in which the energy values are located comprises:
Determining the full field of view image as the target field of view image if the color temperature value is greater than the color temperature threshold and the energy value is greater than an energy threshold;
and determining a field-of-view image of the camera after digital zooming as the target field-of-view image when the color temperature value is less than or equal to the color temperature threshold and the energy value is less than or equal to the energy threshold.
7. An exposure statistics apparatus, comprising:
the receiving module is used for acquiring reference data of the full-view field image when the camera is in the digital zoom mode, wherein the reference data comprises a light sensitivity value and/or a color temperature value;
the processing module is used for determining a target view field image for exposure statistics according to the reference data;
wherein the target field of view image comprises: a full field image of the camera, or a field image of the camera after digital zooming;
wherein the reference data is a sensitivity value; the processing module is specifically configured to determine the full-field image as the target field image when the sensitivity value is less than or equal to a sensitization threshold;
and under the condition that the sensitivity value is larger than a sensitization threshold value, determining a field image of the camera after digital zooming as the target field image.
8. An electronic device, comprising: a processor, a memory and a computer program stored on the memory and executable on the processor, which when executed by the processor implements the exposure statistics method as claimed in any one of claims 1 to 6.
9. A computer-readable storage medium, comprising: the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the exposure statistics method as claimed in any one of claims 1 to 6.
CN202210220396.5A 2022-03-08 2022-03-08 Exposure statistical method, device, electronic equipment and medium Active CN114615439B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210220396.5A CN114615439B (en) 2022-03-08 2022-03-08 Exposure statistical method, device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210220396.5A CN114615439B (en) 2022-03-08 2022-03-08 Exposure statistical method, device, electronic equipment and medium

Publications (2)

Publication Number Publication Date
CN114615439A CN114615439A (en) 2022-06-10
CN114615439B true CN114615439B (en) 2024-03-05

Family

ID=81860165

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210220396.5A Active CN114615439B (en) 2022-03-08 2022-03-08 Exposure statistical method, device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN114615439B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008292663A (en) * 2007-05-23 2008-12-04 Fujifilm Corp Camera and portable electronic equipment
CN109862282A (en) * 2019-02-18 2019-06-07 Oppo广东移动通信有限公司 Character image treating method and apparatus
WO2019157096A1 (en) * 2018-02-08 2019-08-15 Sensormatic Electronics, LLC Surveillance camera for day-night transitions and method therefor
CN110177221A (en) * 2019-06-25 2019-08-27 维沃移动通信有限公司 The image pickup method and device of high dynamic range images
CN110493539A (en) * 2019-08-19 2019-11-22 Oppo广东移动通信有限公司 Automatic exposure processing method, processing unit and electronic equipment
CN111182229A (en) * 2019-12-30 2020-05-19 浙江大华技术股份有限公司 Method for adjusting exposure delay of camera, computer equipment and storage medium
CN111263081A (en) * 2020-02-28 2020-06-09 浙江大华技术股份有限公司 Method and apparatus for determining exposure statistic, storage medium, and electronic apparatus
CN111586282A (en) * 2019-02-18 2020-08-25 北京小米移动软件有限公司 Shooting method, shooting device, terminal and readable storage medium
CN112887630A (en) * 2021-04-06 2021-06-01 南昌欧菲光电技术有限公司 Automatic exposure method, electronic device, and computer-readable storage medium
CN113163123A (en) * 2020-12-30 2021-07-23 浙江宇视科技有限公司 Automatic focusing method and device, electronic equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7474848B2 (en) * 2005-05-05 2009-01-06 Hewlett-Packard Development Company, L.P. Method for achieving correct exposure of a panoramic photograph
US8368803B2 (en) * 2009-09-10 2013-02-05 Seiko Epson Corporation Setting exposure attributes for capturing calibration images
US8488958B2 (en) * 2010-05-25 2013-07-16 Apple Inc. Scene adaptive auto exposure

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008292663A (en) * 2007-05-23 2008-12-04 Fujifilm Corp Camera and portable electronic equipment
WO2019157096A1 (en) * 2018-02-08 2019-08-15 Sensormatic Electronics, LLC Surveillance camera for day-night transitions and method therefor
CN109862282A (en) * 2019-02-18 2019-06-07 Oppo广东移动通信有限公司 Character image treating method and apparatus
CN111586282A (en) * 2019-02-18 2020-08-25 北京小米移动软件有限公司 Shooting method, shooting device, terminal and readable storage medium
CN110177221A (en) * 2019-06-25 2019-08-27 维沃移动通信有限公司 The image pickup method and device of high dynamic range images
CN110493539A (en) * 2019-08-19 2019-11-22 Oppo广东移动通信有限公司 Automatic exposure processing method, processing unit and electronic equipment
CN111182229A (en) * 2019-12-30 2020-05-19 浙江大华技术股份有限公司 Method for adjusting exposure delay of camera, computer equipment and storage medium
CN111263081A (en) * 2020-02-28 2020-06-09 浙江大华技术股份有限公司 Method and apparatus for determining exposure statistic, storage medium, and electronic apparatus
CN113163123A (en) * 2020-12-30 2021-07-23 浙江宇视科技有限公司 Automatic focusing method and device, electronic equipment and storage medium
CN112887630A (en) * 2021-04-06 2021-06-01 南昌欧菲光电技术有限公司 Automatic exposure method, electronic device, and computer-readable storage medium

Also Published As

Publication number Publication date
CN114615439A (en) 2022-06-10

Similar Documents

Publication Publication Date Title
US10630906B2 (en) Imaging control method, electronic device and computer readable storage medium
CN110445988B (en) Image processing method, image processing device, storage medium and electronic equipment
CN107241559B (en) Portrait photographing method and device and camera equipment
CN108337445B (en) Photographing method, related device and computer storage medium
CN109194882B (en) Image processing method, image processing device, electronic equipment and storage medium
CN107948538B (en) Imaging method, imaging device, mobile terminal and storage medium
CN111028190A (en) Image processing method, image processing device, storage medium and electronic equipment
CN108337446B (en) High dynamic range image acquisition method, device and equipment based on double cameras
JP4021716B2 (en) Camera with strobe adjustment function
CN113163127B (en) Image processing method, device, electronic equipment and storage medium
US8593566B2 (en) Method and apparatus for controlling light emission of flash and digital photographing apparatus using the method and apparatus
JP6303304B2 (en) camera
JP2006227613A (en) Camera exposure program combined with image stabilizing function
CN111050078B (en) Photographing method, mobile terminal and computer storage medium
KR930701761A (en) The process of determining the extra system speed and automatically optimizing the exposure parameters of the picture.
US10972676B2 (en) Image processing method and electronic device capable of optimizing hdr image by using depth information
JP2021505086A (en) Image processing methods and image processing equipment, computer-readable storage media and computer equipment
CN103369252A (en) Image processing apparatus and control method therefor
CN101998059A (en) Photographing apparatus and method
CN107682611B (en) Focusing method and device, computer readable storage medium and electronic equipment
CN113840095B (en) Light supplement lamp control method and related device
JP2013168723A (en) Image processing device, imaging device, image processing program, and image processing method
CN114615439B (en) Exposure statistical method, device, electronic equipment and medium
US11343438B1 (en) Instant auto exposure control with multiple cameras
WO2021223113A1 (en) Metering method, camera, electronic device, and computer-readable storage medium

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