CN111263081B - Method and apparatus for determining exposure statistic, storage medium, and electronic apparatus - Google Patents

Method and apparatus for determining exposure statistic, storage medium, and electronic apparatus Download PDF

Info

Publication number
CN111263081B
CN111263081B CN202010130449.5A CN202010130449A CN111263081B CN 111263081 B CN111263081 B CN 111263081B CN 202010130449 A CN202010130449 A CN 202010130449A CN 111263081 B CN111263081 B CN 111263081B
Authority
CN
China
Prior art keywords
target
value
statistic
monitoring area
brightness
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
CN202010130449.5A
Other languages
Chinese (zh)
Other versions
CN111263081A (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.)
Zhejiang Dahua Technology Co Ltd
Original Assignee
Zhejiang Dahua 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 Zhejiang Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN202010130449.5A priority Critical patent/CN111263081B/en
Publication of CN111263081A publication Critical patent/CN111263081A/en
Application granted granted Critical
Publication of CN111263081B publication Critical patent/CN111263081B/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/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/60Control of cameras or camera modules
    • H04N23/67Focus control based on electronic image sensor signals

Abstract

The invention discloses a method and a device for determining an exposure statistic value, a storage medium and an electronic device. Wherein, the method comprises the following steps: acquiring a first brightness statistic value of a current monitoring area monitored by fixed focus equipment in image acquisition equipment, wherein the current monitoring area is an area currently monitored by zoom equipment in the image acquisition equipment, and the fixed focus equipment is used for monitoring all the monitoring areas; and under the condition that the fixed-focus equipment starts a snapshot function and catches an interested target monitoring area, acquiring a second brightness statistic value of the target monitoring area monitored by the fixed-focus equipment, wherein all the monitoring areas comprise: a current monitoring area and a target monitoring area; and determining a target exposure statistic value of the zooming equipment in the target monitoring area according to the first brightness statistic value and the second brightness statistic value. By adopting the technical scheme, the problem that in the related technology, exposure information of a target snapshot area cannot be determined quickly in the use scene of intelligent image quality is solved.

Description

Method and apparatus for determining exposure statistic, storage medium, and electronic apparatus
Technical Field
The present invention relates to the field of computers, and in particular, to a method and an apparatus for determining an exposure statistic value, a storage medium, and an electronic apparatus.
Background
At present, with the development of surveillance cameras, the requirement of quality of surveillance pictures gradually changes from pursuit of single picture quality to intelligent picture quality. In a use scene of intelligent image quality, a target area is generally required to be quickly captured, so that the exposure adjustment speed and the focus adjustment speed of an image become conditions influencing the capture quality.
In the snapshot scheme in the related art, exposure can be performed according to the brightness statistical information of the target area only after the zoom device moves to the target area, so that the snapshot speed is slow, and the influence on the snapshot speed is greater in some scenes with large brightness difference.
Therefore, in the related art, in the use scene of the smart image quality, the problem that the exposure information of the target snapshot area cannot be determined quickly exists, and an effective technical scheme is not provided yet.
Disclosure of Invention
The embodiment of the invention provides a method and a device for determining an exposure statistic value, a storage medium and an electronic device, which are used for at least solving the technical problem that exposure information of a target snapshot area cannot be determined quickly in an intelligent image quality use scene in the related technology.
According to an aspect of the embodiments of the present invention, there is provided a method for determining exposure statistics, including: acquiring a first brightness statistic value of a current monitoring area monitored by fixed focus equipment in image acquisition equipment, wherein the current monitoring area is an area currently monitored by zoom equipment in the image acquisition equipment, and the fixed focus equipment is used for monitoring all the monitoring areas; and under the condition that the fixed-focus equipment starts a snapshot function and catches an interested target monitoring area, acquiring a second brightness statistic value of the target monitoring area monitored by the fixed-focus equipment, wherein all the monitoring areas comprise: a current monitoring area and a target monitoring area; and determining a target exposure statistic value of the zooming equipment in the target monitoring area according to the first brightness statistic value and the second brightness statistic value.
According to another aspect of the embodiments of the present invention, there is also provided an apparatus for determining an exposure statistic, including: the system comprises a first acquisition unit, a second acquisition unit and a control unit, wherein the first acquisition unit is used for acquiring a first brightness statistic value of a current monitoring area monitored by a fixed focus device in image acquisition equipment, the current monitoring area is an area currently monitored by zoom equipment in the image acquisition equipment, and the fixed focus device is used for monitoring all monitoring areas; a second obtaining unit, configured to obtain a second luminance statistic of the target monitoring area monitored by the fixed focus device when the fixed focus device starts a snapshot function and captures an interested target monitoring area, where all the monitoring areas include: a current monitoring area and a target monitoring area; and the first determining unit is used for determining a target exposure statistic value of the zooming equipment in the target monitoring area according to the first brightness statistic value and the second brightness statistic value.
According to still another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium having a computer program stored therein, wherein the computer program is configured to execute the above-mentioned method for determining an exposure statistic when running.
According to another aspect of the embodiments of the present invention, there is also provided an electronic apparatus, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the method for determining the exposure statistic value through the computer program.
In the embodiment of the invention, the currently monitored area of the zooming equipment in the image acquisition equipment is a current monitoring area, the monitored area of the fixed focus equipment in the image acquisition equipment is all monitoring areas, and a first brightness statistic value of the currently monitored area monitored by the fixed focus equipment is firstly obtained; and under the condition that the fixed-focus equipment starts a snapshot function and catches an interested target monitoring area, acquiring a second brightness statistic value of the target monitoring area monitored by the fixed-focus equipment, wherein all the monitoring areas comprise: a current monitoring area and a target monitoring area; and determining a target exposure statistic value of the zooming equipment in the target monitoring area according to the first brightness statistic value and the second brightness statistic value. The method and the device have the advantages that the target exposure statistic of the zooming equipment in the target monitoring area can be predetermined according to the first brightness statistic of the current monitoring area monitored by the zooming equipment currently and the second brightness statistic of the target monitoring area to be snapped by the zooming equipment, the technical effect of rapidly determining the exposure information of the target snapping area is achieved, and the technical problem that in the related technology, the exposure information of the target snapping area cannot be rapidly determined in the use scene of intelligent image quality is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a diagram illustrating an application environment of a method for determining exposure statistics according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating an alternative method for determining exposure statistics according to an embodiment of the present invention;
FIG. 3 is a schematic illustration of monitoring areas of an alternative fixed focus device and zoom device in accordance with embodiments of the present invention;
FIG. 4 is a schematic flow chart diagram illustrating an alternative method for determining exposure statistics in accordance with embodiments of the present invention;
FIG. 5 is a flowchart illustrating an alternative method for determining target exposure statistics in accordance with embodiments of the present invention;
FIG. 6 is a schematic structural diagram of an alternative apparatus for determining exposure statistics according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an alternative electronic device according to an embodiment of the invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to an aspect of an embodiment of the present invention, a method for determining exposure statistics is provided. Alternatively, the above method for determining exposure statistics may be applied, but not limited to, in the application environment shown in fig. 1. As shown in fig. 1, the terminal device 102 obtains a first luminance statistic of a current monitoring area monitored by a fixed focus device in an image acquisition device, where the current monitoring area is an area currently monitored by a zoom device in the image acquisition device, the fixed focus device is configured to monitor all monitoring areas, and obtains a second luminance statistic of a target monitoring area monitored by the fixed focus device under the condition that the fixed focus device starts a snapshot function and captures the target monitoring area of interest, where all monitoring areas include: the current monitoring area and the target monitoring area, and send the first luminance statistic and the second luminance statistic to the server 104 through the network. After receiving the first luminance statistic and the second luminance statistic, the server 104 determines a target exposure statistic of the zoom device in the target monitoring area according to the first luminance statistic and the second luminance statistic. The above is merely an example, and the embodiments of the present application are not limited herein.
Or, the terminal device 102 acquires a first luminance statistic of a current monitoring area monitored by a fixed focus device in the image acquisition device, where the current monitoring area is an area currently monitored by a zoom device in the image acquisition device, and the fixed focus device is used for monitoring all the monitoring areas; and under the condition that the fixed-focus equipment starts a snapshot function and catches an interested target monitoring area, acquiring a second brightness statistic value of the target monitoring area monitored by the fixed-focus equipment, wherein all the monitoring areas comprise: a current monitoring area and a target monitoring area; and determining a target exposure statistic value of the zooming equipment in the target monitoring area according to the first brightness statistic value and the second brightness statistic value. The above is merely an example, and the present embodiment is not limited to this.
Optionally, in this embodiment, the terminal device may include, but is not limited to, at least one of the following: mobile phones (such as Android phones, iOS phones, etc.), notebook computers, tablet computers, palm computers, MID (Mobile Internet Devices), PAD, desktop computers, etc. Such networks may include, but are not limited to: a wired network, a wireless network, wherein the wired network comprises: a local area network, a metropolitan area network, and a wide area network, the wireless network comprising: bluetooth, WIFI, and other networks that enable wireless communication. The server may be a single server or a server cluster composed of a plurality of servers. The above is only an example, and the present embodiment is not limited to this.
Optionally, in this embodiment, as an optional implementation manner, the method may be executed by a server, or may be executed by a terminal device, or may be executed by both the server and the terminal device, and in this embodiment, the description is given by taking an example that the terminal device (for example, the terminal device 102) executes. As shown in fig. 2, the flow of the method for determining exposure statistics may include the steps of:
step S202, acquiring a first luminance statistic value of a current monitoring area monitored by a fixed focus device in an image acquisition device, wherein the current monitoring area is an area currently monitored by a zoom device in the image acquisition device, and the fixed focus device is used for monitoring all the monitoring areas;
step S204, under the condition that the fixed focus equipment starts the snapshot function and captures the interested target monitoring area, acquiring a second brightness statistic value of the target monitoring area monitored by the fixed focus equipment, wherein all the monitoring areas comprise: a current monitoring area and a target monitoring area;
and step S206, determining a target exposure statistic value of the zooming equipment in the target monitoring area according to the first brightness statistic value and the second brightness statistic value.
Alternatively, the above-mentioned method for determining exposure statistics may be, but is not limited to, in the scene of a monitoring camera.
It should be noted that, as shown in fig. 3, the fixed focus device divides the monitored global picture into 9 regions of 3 × 3, each region has its own luminance statistic, and the luminance statistic of the whole picture is an average value of the luminance statistics of the respective regions.
As shown in fig. 3, the currently monitored area currently monitored by the zoom apparatus is a localA area whose luminance statistic value luminA (corresponding to the first luminance statistic value) is 45. The target monitoring area of interest captured by the fixed focus apparatus is a localB area whose luminance statistic value luminanb (corresponding to the second luminance statistic value) is 7. The localA area is an area scene currently monitored by the zoom device, and the localB area is an interesting scene to be reached by the zoom device. EV in fig. 3 represents a luminance statistic value.
According to the embodiment, the currently monitored area of the zooming equipment in the image acquisition equipment is the currently monitored area, the monitored area of the fixed-focus equipment in the image acquisition equipment is all monitored areas, and first luminance statistical values of the currently monitored area monitored by the fixed-focus equipment are obtained; and under the condition that the fixed-focus equipment starts a snapshot function and catches an interested target monitoring area, acquiring a second brightness statistic value of the target monitoring area monitored by the fixed-focus equipment, wherein all the monitoring areas comprise: a current monitoring area and a target monitoring area; and determining a target exposure statistic value of the zooming equipment in the target monitoring area according to the first brightness statistic value and the second brightness statistic value. The method and the device have the advantages that the target exposure statistic of the zooming equipment in the target monitoring area can be predetermined according to the first brightness statistic of the current monitoring area monitored by the zooming equipment currently and the second brightness statistic of the target monitoring area to be snapped by the zooming equipment, the technical effect of rapidly determining the exposure information of the target snapping area is achieved, and the technical problem that in the related technology, the exposure information of the target snapping area cannot be rapidly determined in the use scene of intelligent image quality is solved.
In an optional embodiment, in determining the target exposure statistic of the zoom apparatus in the target monitoring area according to the first brightness statistic and the second brightness statistic, the method further includes: acquiring a first coordinate position of a current monitoring area monitored by the zooming equipment in all monitoring areas monitored by the fixed-focus equipment, and acquiring a second coordinate position of a target monitoring area in all monitoring areas monitored by the fixed-focus equipment; under the condition that the fixed-focus equipment transmits the second coordinate position to the zooming equipment, controlling the monitoring position of the zooming equipment to move from the first coordinate position of the current monitoring area to the second coordinate position of the target monitoring area; and exposing the zoom equipment in the target monitoring area according to the target exposure statistic value.
Optionally, before the first coordinate position and the second coordinate position are obtained, the spatial positions of the fixed-focus panoramic path monitored by the fixed-focus device and the zoom detail path monitored by the zoom device need to be calibrated, on the preview interface, a plurality of markers are identified on the fixed-focus panoramic path monitored by the fixed-focus device, and the plurality of markers correspond to the zoom detail path monitored by the zoom device.
When the fixed-focus device starts the intelligent snapshot function and captures an interested target monitoring area, a first coordinate position (such as a coordinate position corresponding to a localA area in fig. 3) of a current monitoring area monitored by the zoom device in all monitoring areas monitored by the fixed-focus device and a second coordinate position (such as a coordinate position corresponding to a localB area in fig. 3) of the target monitoring area in all monitoring areas monitored by the fixed-focus device can be obtained; then, the fixed-focus apparatus transmits the second coordinate position to the zoom apparatus, and controls the monitoring position of the zoom apparatus to move from the first coordinate position (the position of the localA area shown in fig. 3) to the second coordinate position of the target monitoring area (the position of the localB area shown in fig. 3); and exposing the zoom equipment in the target monitoring area according to the target exposure statistic value.
Optionally, exposing the zoom apparatus according to the target exposure statistic in the target monitoring area includes: adjusting a target shutter value, a target gain value and a target aperture value of the zooming equipment according to the target exposure statistic value; and exposing the zoom device in the target monitoring area according to the target shutter value, the target gain value and the target aperture value.
Alternatively, the target exposure statistics value may be denoted as targetAE, and the target shutter value targetshift, the target gain value targetgain, and the target aperture value targetris of the zoom apparatus may be adjusted according to the value of the targetAE, so that the focusing apparatus exposes the image to be captured in the target monitored area using the target shutter value targetshift, the target gain value targetgain, and the target aperture value targetris.
In an alternative embodiment, for the step S206, the determining the target exposure statistic of the zoom apparatus in the target monitoring area according to the first brightness statistic and the second brightness statistic may be implemented by: determining a brightness adjustment coefficient according to the ratio of the first brightness statistic value to the second brightness statistic value; determining a current exposure statistic value of the zoom equipment at the first coordinate position according to the product of the current shutter value, the current gain value and the current aperture value of the zoom equipment at the first coordinate position; and under the condition that the current brightness statistic value is within a preset brightness tolerance range, determining that the product of the current exposure statistic value and the brightness adjustment coefficient is a target exposure statistic value, wherein the current brightness statistic value is the brightness statistic value of the zooming equipment in the current monitoring area.
Alternatively, the luminance adjustment coefficient, such as the luminance adjustment relation coefficient α ═ luminA/luminA b, is first calculated by the ratio of the first luminance statistic and the second luminance statistic.
Then, determining a current exposure statistic value of the zoom device at the first coordinate position according to a product of a current shutter value, a current gain value and a current aperture value of the zoom device at the first coordinate position, such as orgAE ═ orghaut ═ orggain ═ ogrris, where orghaut denotes the current shutter value, orggain denotes the current gain value, ogrris denotes the current aperture value, and all of the three values have a unit of dB; orgAE refers to the current exposure statistics on the zoom detail road screen.
For a camera (including a zoom device), no matter under what working conditions, there is only one target brightness value targetLumin, a current brightness statistic currLumin _ localA of the zoom device in a current monitoring area is firstly determined, and if the current brightness statistic currLumin _ localA is within the range of targetLumin _ localA ± errorLumin, a target exposure statistic required by the zoom device in the target monitoring area localB can be obtained by using orgAE α.
Optionally, in a case that the current luminance statistic is not within the preset luminance tolerance range, the method further includes: determining the ratio of the current brightness statistic value to a target brightness value as a brightness relation coefficient, wherein the target brightness value is used for indicating that the brightness value of the zooming equipment is adjusted to a preset target brightness value; determining the ratio of the current exposure statistic value to the brightness relation coefficient as a pre-exposure statistic value; and determining the product of the pre-exposure statistic and the adjusting coefficient as a target exposure statistic.
Alternatively, if the current luminance statistic currLumin _ localA is not in the range of targetLumin _ localA ± errolumin, indicating that the current exposure condition of the zoom apparatus in the localA area has not adjusted the luminance statistic to the target luminance value, if to adjust to the target luminance value, it is necessary to calculate the theoretically required exposure statistic (i.e. pre-exposure statistic) of the current localA position from abnormal exposure to normal exposure, first determine the luminance relation coefficient β that the exposure statistic needs to be adjusted as currLumin _ localA/targetLumin _ localA, and then determine the pre-exposure statistic as: the orgsetAE is orgAE/β, and finally the product of the pre-exposure statistic orgsetAE and the adjustment coefficient α is determined as the target exposure statistic.
The following describes a flow of a method for determining exposure statistics with reference to an alternative example, as shown in fig. 4, the method may include the following steps:
step S401, completing the calibration of the spatial position relationship between the fixed-focus panoramic path and the zooming detail path, and performing step S402.
Optionally, the spatial position relationship between the fixed-focus panoramic path and the zooming detail path is calibrated, a plurality of markers can be identified on the fixed-focus panoramic path under the preview page, and the plurality of markers correspond to the zooming detail path. The fixed focus panoramic path can be understood as a picture monitored by fixed focus equipment, and the zooming detail path can be understood as a picture monitored by zooming equipment.
In step S402, the zoom apparatus records the area coordinate position localA of the current monitored scene position in the fixed focus panoramic way, and then proceeds to step S403.
Optionally, the localA refers to a coordinate position of an area on the fixed-focus panoramic road, where a source of the location of the localA is an area on the fixed-focus panoramic road where a currently monitored picture of the zoom device corresponding to the zoom road detail road is mapped.
Step S403, the fixed focus device calculates a luminance statistic value luminea of the area coordinate position localA, where the luminance statistic value refers to an area luminance statistic value of the fixed focus panoramic path, and then performs step S404.
And S404, starting the intelligent snapshot function by the fixed focus equipment, and performing S405.
Step S405, the fixed focus device captures an area of interest localB, counts a luminance statistic value lumineb of the area, where the luminance statistic value refers to an area luminance statistic value of the fixed focus panoramic path, and performs step S406.
Optionally, the localB position refers to a coordinate position of an area on the fixed-focus panoramic road, where the localB position is derived from a position of a target monitoring area generated by a smart snap scheme or other enabling conditions.
Step S406, zooming the zoom device, calculating a target exposure statistic of the target monitoring area, entering a pre-exposure processing module preaecomodule, and performing step S407.
Step 407, after the zoom device reaches the target monitoring area, the exposure is directly completed according to the exposure parameters corresponding to the preset target exposure statistic value without performing brightness statistics, and the process is finished.
Accordingly, a specific implementation manner of the pre-exposure processing module preeemodule in step S406 may include the following steps:
in step S501, a luminance adjustment coefficient α is calculated as luminA/luminab, where both luminA and luminab are luminance values counted on the designated focal panoramic road, and step S502 is performed.
Step S502, the fixed focus device transmits the position coordinate localB and the brightness relation coefficient alpha to the zoom device, and step S503 is carried out.
Step S503, counting the exposure statistic value of the current localA position, wherein the specific formula is as follows: orgAE is orgshut and ogriris, wherein orgshut represents the current shutter value, orggain represents the current gain value, and ogriris represents the current aperture value, and all the values are in dB; orgAE refers to the current exposure statistics on the zoom detail road screen, and proceeds to step S504.
Step S504, determining whether the current brightness statistic value is within the brightness tolerance error lumin range, where the current brightness statistic value refers to the brightness statistic value of the image on the zoom detail road picture, if yes, performing step S505, and if not, performing step S508.
Step S505, it is determined whether the luminance relationship coefficient α is equal to 1, and if so, step S506 is performed, and if not, step S510 is performed.
In step S506, the target exposure statistic targetAE is determined to be orgAE, or the target exposure statistic targetAE is determined to be orgsetAE, where orgAE refers to the current exposure statistic at the localA position on the zoom detail road screen, and orgsetAE refers to the exposure statistic that should be reached for normal exposure if the screen is over-exposed or under-exposed on the zoom detail road screen, and step S507 is performed.
That is, for the above targetAE, at the localA position, if the image brightness of the picture at this time of the zoom detail path (i.e., the above-described current brightness statistic value) currLumin _ localA is within the brightness tolerance errorLumin, it is determined that targetAE is orgAE; if it is out of the luminance tolerance errorLumin range, it is determined that targetAE is orgsetAE.
In step S507, targetrotate, targetgain, and targetris are reallocated using targetAE so that the zoom apparatus is exposed using targetrotate, targetgain, and targetris in the target monitored area. Wherein, targetshift is a target shutter value, targetgain is a target gain value, and targetris is a target aperture value.
Optionally, the targethue, targetgain and targetiris are redistributed by using the targetAE, priority distribution can be performed according to the brightness of the current environment and the movement and the static of the target object, and a specific distribution mode can have different distribution modes according to different scene requirements, for example, if the current environment is at night, the target is a static object, the shutter time and the aperture are preferentially adjusted, so that noise change caused by gain change is avoided; if the current snapshot target is a static target in the real night environment, the fixed shutter time is short exposure, the aperture is preferentially adjusted, and finally the gain is adjusted according to the situation, so that the exposure blur problem of the moving object is avoided. It is understood that the above is only an example, and the present embodiment is not limited thereto.
In step S508, the coefficient of relationship β between the current luminance statistic and the target luminance value is calculated as currLumin _ LocalA/targetEVLumin _ LocalA, and step S509 is performed.
It should be noted that the brightness value is a statistical value extracted by an internet service provider ISP through photoelectric conversion after a sensor (such as a fixed focus device and a zoom device) senses light intensity, and in the field of image processing, the unit of the brightness value is lux; three variables, namely the shutter time, the gain and the aperture, hereinafter referred to as AE, jointly determine the brightness of the final picture presentation. When the device is used, a target brightness value targetLumin is generally set, AE continuously obtains a new real-time brightness value currLumin by adjusting three variables of the target brightness value targetLumin, and the currLumin continuously approaches a targetLumin value.
Step S509, calculating a theoretically required exposure statistic value, called as a pre-exposure statistic value orgsetAE ═ orgAE/β, when the current localA position is from the abnormal exposure to the normal exposure, where the orgsetAE refers to the exposure statistic value that should be reached by the normal exposure if the picture is over-exposed or under-exposed on the localA position on the zoom detail path picture, and performing step S505.
The target exposure statistic value is targetAE ═ orgAE ═ α or targetAE ═ orgsetAE ═ α.
Note that the exposure statistic in this embodiment refers to a result of multiplying three variables, that is, shutter time gain aperture, and this result does not directly correspond to the luminance statistic, but this value and the luminance statistic can be linearly approximated, and the linear approximation can be understood as: (currLumin/targetLumin) ═ (orgAE/targetAE), that is, there is a relationship of equal slopes.
The target exposure statistic value is adjusted according to the condition that if alpha is larger than 1, the brightness of the target area localB is darker than that of the current area localA, and the pre-exposure amount needs to be increased; if α <1 indicates that the luminance of the target region localB is brighter than the luminance of the current region localA, the pre-exposure amount needs to be decreased.
Through this embodiment, realized zooming equipment need not wait for and arrive appointed target monitoring area after, just carry out the adjustment of exposing, but according to the quick calculation target exposure statistics in advance of the information of fixed focus equipment, can pass through preset target exposure statistics, in the realization of taking a candid photograph, according to the operating mode environment of difference, accomplish the distribution adjustment of shutter, gain and light ring, not only guaranteed that the quality of taking a candid photograph of image is not conflicted with speed, improved the speed of taking a candid photograph of image moreover.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
According to still another aspect of the embodiments of the present invention, there is also provided an exposure statistic value determining apparatus, as shown in fig. 6, the apparatus including:
a first obtaining unit 602, configured to obtain a first luminance statistic of a current monitoring area monitored by a fixed focus device in an image acquisition device, where the current monitoring area is an area currently monitored by a zoom device in the image acquisition device, and the fixed focus device is used to monitor all monitoring areas;
a second obtaining unit 604, configured to obtain a second luminance statistic of the target monitoring area monitored by the fixed focus device when the fixed focus device starts a snapshot function and captures the target monitoring area of interest, where all the monitoring areas include: a current monitoring area and a target monitoring area;
a first determining unit 606, configured to determine, according to the first luminance statistic and the second luminance statistic, a target exposure statistic of the zoom device in the target monitoring area.
Alternatively, the first acquiring unit 602 may be configured to execute step S202, the second acquiring unit 604 may be configured to execute step S204, and the first determining unit 606 may be configured to execute step S206.
According to the embodiment, the currently monitored area of the zooming equipment in the image acquisition equipment is the currently monitored area, the monitored area of the fixed-focus equipment in the image acquisition equipment is all monitored areas, and first luminance statistical values of the currently monitored area monitored by the fixed-focus equipment are obtained; and under the condition that the fixed-focus equipment starts a snapshot function and catches an interested target monitoring area, acquiring a second brightness statistic value of the target monitoring area monitored by the fixed-focus equipment, wherein all the monitoring areas comprise: a current monitoring area and a target monitoring area; and determining a target exposure statistic value of the zooming equipment in the target monitoring area according to the first brightness statistic value and the second brightness statistic value. The method and the device have the advantages that the target exposure statistic of the zooming equipment in the target monitoring area can be predetermined according to the first brightness statistic of the current monitoring area monitored by the zooming equipment currently and the second brightness statistic of the target monitoring area to be snapped by the zooming equipment, the technical effect of rapidly determining the exposure information of the target snapping area is achieved, and the technical problem that in the related technology, the exposure information of the target snapping area cannot be rapidly determined in the use scene of intelligent image quality is solved.
As an optional technical solution, the apparatus further includes:
a third obtaining unit, configured to obtain first coordinate positions of a current monitoring area monitored by the zoom device in all monitoring areas monitored by the fixed-focus device, and obtain second coordinate positions of a target monitoring area in all monitoring areas monitored by the fixed-focus device;
the control unit is used for controlling the monitoring position of the zooming equipment to move from the first coordinate position of the current monitoring area to the second coordinate position of the target monitoring area under the condition that the second coordinate position is transmitted to the zooming equipment by the fixed-focus equipment;
and the exposure unit is used for exposing the zooming equipment in the target monitoring area according to the target exposure statistic value.
As an optional technical solution, the exposure unit includes:
the adjusting module is used for adjusting a target shutter value, a target gain value and a target aperture value of the zooming equipment according to the target exposure statistic value;
and the exposure module is used for exposing the zooming equipment in the target monitoring area according to the target shutter value, the target gain value and the target aperture value.
As an optional technical solution, the first determining unit includes:
the first determining module is used for determining a brightness adjusting coefficient according to the ratio of the first brightness statistic value to the second brightness statistic value;
the second determining module is used for determining the current exposure statistic value of the zoom equipment at the first coordinate position according to the product of the current shutter value, the current gain value and the current aperture value of the zoom equipment at the first coordinate position;
and the third determining module is used for determining that the product of the current exposure statistic value and the brightness adjusting coefficient is the target exposure statistic value under the condition that the current brightness statistic value is within the preset brightness tolerance range, wherein the current brightness statistic value is the brightness statistic value of the zoom equipment in the current monitoring area.
As an optional technical solution, the apparatus further includes:
a second determining unit, configured to determine a ratio of the current luminance statistic value to a target luminance value as a luminance relationship coefficient, where the target luminance value is used to instruct to adjust a luminance value of the zoom device to a preset target luminance value;
the third determining unit is used for determining the ratio of the current exposure statistic value to the brightness relation coefficient as a pre-exposure statistic value;
and the fourth determining unit is used for determining the product of the pre-exposure statistic and the adjusting coefficient as the target exposure statistic.
According to a further aspect of embodiments of the present invention, there is also provided a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above-mentioned method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, acquiring a first luminance statistic value of a current monitoring area monitored by a fixed focus device in the image acquisition device, wherein the current monitoring area is an area currently monitored by a zoom device in the image acquisition device, and the fixed focus device is used for monitoring all the monitoring areas;
s2, when the fixed focus device starts the snapshot function and captures the target monitoring area of interest, obtaining a second luminance statistic of the target monitoring area monitored by the fixed focus device, where all the monitoring areas include: a current monitoring area and a target monitoring area;
and S3, determining a target exposure statistic value of the zoom device in the target monitoring area according to the first brightness statistic value and the second brightness statistic value.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
alternatively, in this embodiment, a person skilled in the art may understand that all or part of the steps in the methods of the foregoing embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, ROM (Read-Only Memory), RAM (random access Memory), magnetic or optical disks, and the like.
According to another aspect of the embodiment of the present invention, there is also provided an electronic device for implementing the method for determining exposure statistics, as shown in fig. 7, the electronic device includes a memory 702 and a processor 704, the memory 702 stores a computer program therein, and the processor 704 is configured to execute the steps in any one of the method embodiments through the computer program.
Optionally, in this embodiment, the electronic apparatus may be located in at least one network device of a plurality of network devices of a computer network.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, acquiring a first luminance statistic value of a current monitoring area monitored by a fixed focus device in the image acquisition device, wherein the current monitoring area is an area currently monitored by a zoom device in the image acquisition device, and the fixed focus device is used for monitoring all the monitoring areas;
s2, when the fixed focus device starts the snapshot function and captures the target monitoring area of interest, obtaining a second luminance statistic of the target monitoring area monitored by the fixed focus device, where all the monitoring areas include: a current monitoring area and a target monitoring area;
and S3, determining a target exposure statistic value of the zoom device in the target monitoring area according to the first brightness statistic value and the second brightness statistic value.
Alternatively, it can be understood by those skilled in the art that the structure shown in fig. 7 is only an illustration, and the electronic device may also be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, a Mobile Internet Device (MID), a PAD, and the like. Fig. 7 is a diagram illustrating a structure of the electronic device. For example, the electronic device may also include more or fewer components (e.g., network interfaces, etc.) than shown in FIG. 7, or have a different configuration than shown in FIG. 7.
The memory 702 may be used to store software programs and modules, such as program instructions/modules corresponding to the method and apparatus for determining exposure statistics in the embodiments of the present invention, and the processor 704 executes various functional applications and data processing by running the software programs and modules stored in the memory 702, that is, the method for determining exposure statistics described above is implemented. The memory 702 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 702 can further include memory located remotely from the processor 704, which can be connected to the terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. The memory 702 may be, but not limited to, specifically configured to store information such as sample characteristics of the item and the target virtual resource account number. As an example, as shown in fig. 7, the memory 702 may include, but is not limited to, a first acquiring unit 602, a second acquiring unit 604, and a first determining unit 606 in the exposure statistic determining device. In addition, other module units in the apparatus for determining exposure statistics value may also be included, but are not limited to these, and are not described in detail in this example.
Optionally, the transmitting device 706 is used for receiving or sending data via a network. Examples of the network may include a wired network and a wireless network. In one example, the transmission device 706 includes a Network adapter (NIC) that can be connected to a router via a Network cable and other Network devices to communicate with the internet or a local area Network. In one example, the transmission device 706 is a Radio Frequency (RF) module, which is used to communicate with the internet in a wireless manner.
In addition, the electronic device further includes: a display 708 and a connection bus 710 for connecting the various modular components of the electronic device described above.
In other embodiments, the terminal or the server may be a node in a distributed system, wherein the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting a plurality of nodes through a network communication form. Nodes can form a Peer-To-Peer (P2P, Peer To Peer) network, and any type of computing device, such as a server, a terminal, and other electronic devices, can become a node in the blockchain system by joining the Peer-To-Peer network.
Alternatively, in this embodiment, a person skilled in the art may understand that all or part of the steps in the methods of the foregoing embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present invention may be substantially or partially implemented in the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, and including instructions for causing one or more computer devices (which may be personal computers, servers, or network devices) to execute all or part of the steps of the method according to the embodiments of the present invention.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely illustrative, and for example, a division of a unit is merely a division of a logic function, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that it is obvious to those skilled in the art that various modifications and improvements can be made without departing from the principle of the present invention, and these modifications and improvements should also be considered as the protection scope of the present invention.

Claims (9)

1. A method for determining exposure statistics, comprising:
acquiring a first brightness statistic value of a current monitoring area monitored by fixed focus equipment in image acquisition equipment, wherein the current monitoring area is an area currently monitored by zoom equipment in the image acquisition equipment, and the fixed focus equipment is used for monitoring all monitoring areas;
acquiring a second brightness statistic value of a target monitoring area monitored by the fixed focus equipment under the condition that the fixed focus equipment starts a snapshot function and captures the interested target monitoring area, wherein all the monitoring areas comprise: the current monitoring area and the target monitoring area;
determining a target exposure statistic value of the zooming equipment in the target monitoring area according to the first brightness statistic value and the second brightness statistic value;
wherein, the determining the target exposure statistic of the zoom device in the target monitoring area according to the first brightness statistic and the second brightness statistic comprises:
determining a brightness adjustment coefficient according to the ratio of the first brightness statistic value to the second brightness statistic value;
determining a current exposure statistic value of the zoom device at a first coordinate position according to a product of a current shutter value, a current gain value and a current aperture value of the zoom device at the first coordinate position, wherein the first coordinate position is a position of a current monitoring area monitored by the zoom device in all monitoring areas monitored by the fixed focus device;
and under the condition that the current brightness statistic value is within a preset brightness tolerance range, determining that the product of the current exposure statistic value and the brightness adjustment coefficient is the target exposure statistic value, wherein the current brightness statistic value is the brightness statistic value of the zoom equipment in the current monitoring area.
2. The method of claim 1, wherein, when determining the target exposure statistic of the zoom apparatus in the target monitoring area according to the first brightness statistic and the second brightness statistic, the method further comprises:
acquiring the first coordinate position of a current monitoring area monitored by the zoom equipment in all monitoring areas monitored by the fixed focus equipment, and acquiring the second coordinate position of the target monitoring area in all monitoring areas monitored by the fixed focus equipment; under the condition that the fixed-focus equipment transmits the second coordinate position to the zoom equipment, controlling the monitoring position of the zoom equipment to move from the first coordinate position of the current monitoring area to the second coordinate position of the target monitoring area;
and enabling the zooming equipment to perform exposure in the target monitoring area according to the target exposure statistic value.
3. The method of claim 2, wherein said exposing the zoom apparatus in the target monitoring area according to the target exposure statistics comprises:
adjusting a target shutter value, a target gain value and a target aperture value of the zooming equipment according to the target exposure statistic value;
and enabling the zooming equipment to perform exposure in the target monitoring area according to the target shutter value, the target gain value and the target aperture value.
4. The method of claim 1, wherein in case that the current luminance statistic is not within the preset luminance tolerance range, the method further comprises:
determining a ratio of the current brightness statistic value to a target brightness value as a brightness relation coefficient, wherein the target brightness value is used for indicating that a brightness value of the zooming equipment is adjusted to a preset target brightness value;
determining the ratio of the current exposure statistic value to the brightness relation coefficient as a pre-exposure statistic value;
and determining the product of the pre-exposure statistic and the adjusting coefficient as the target exposure statistic.
5. An apparatus for determining exposure statistics, comprising:
a first obtaining unit, configured to obtain a first luminance statistic of a current monitoring area monitored by a fixed focus device in an image acquisition device, where the current monitoring area is an area currently monitored by a zoom device in the image acquisition device, and the fixed focus device is used to monitor all monitoring areas;
a second obtaining unit, configured to obtain a second luminance statistic of a target monitoring area monitored by the fixed focus device when the fixed focus device starts a snapshot function and captures the target monitoring area of interest, where all the monitoring areas include: the current monitoring area and the target monitoring area;
a first determining unit, configured to determine a target exposure statistic of the zoom apparatus in the target monitoring area according to the first brightness statistic and the second brightness statistic;
the first determining unit is further configured to determine a luminance adjustment coefficient according to a ratio of the first luminance statistic and the second luminance statistic; determining a current exposure statistic value of the zoom device at a first coordinate position according to a product of a current shutter value, a current gain value and a current aperture value of the zoom device at the first coordinate position, wherein the first coordinate position is a position of a current monitoring area monitored by the zoom device in all monitoring areas monitored by the fixed focus device; and under the condition that the current brightness statistic value is within a preset brightness tolerance range, determining that the product of the current exposure statistic value and the brightness adjustment coefficient is the target exposure statistic value, wherein the current brightness statistic value is the brightness statistic value of the zoom equipment in the current monitoring area.
6. The apparatus of claim 5, further comprising:
a third obtaining unit, configured to obtain the first coordinate position of a current monitoring area monitored by the zoom device in all monitoring areas monitored by the fixed-focus device, and obtain a second coordinate position of the target monitoring area in all monitoring areas monitored by the fixed-focus device;
a control unit, configured to control a monitoring position of the zoom apparatus to move from the first coordinate position of the current monitoring area to the second coordinate position of the target monitoring area when the fixed-focus apparatus transmits the second coordinate position to the zoom apparatus;
and the exposure unit is used for exposing the zooming equipment in the target monitoring area according to the target exposure statistic value.
7. The apparatus according to claim 6, wherein the exposure unit comprises:
the adjusting module is used for adjusting a target shutter value, a target gain value and a target aperture value of the zooming equipment according to the target exposure statistic value;
and the exposure module is used for exposing the zooming equipment in the target monitoring area according to the target shutter value, the target gain value and the target aperture value.
8. A computer-readable storage medium comprising a stored program, wherein the program when executed performs the method of any of claims 1 to 4.
9. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 4 by means of the computer program.
CN202010130449.5A 2020-02-28 2020-02-28 Method and apparatus for determining exposure statistic, storage medium, and electronic apparatus Active CN111263081B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010130449.5A CN111263081B (en) 2020-02-28 2020-02-28 Method and apparatus for determining exposure statistic, storage medium, and electronic apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010130449.5A CN111263081B (en) 2020-02-28 2020-02-28 Method and apparatus for determining exposure statistic, storage medium, and electronic apparatus

Publications (2)

Publication Number Publication Date
CN111263081A CN111263081A (en) 2020-06-09
CN111263081B true CN111263081B (en) 2021-09-17

Family

ID=70949466

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010130449.5A Active CN111263081B (en) 2020-02-28 2020-02-28 Method and apparatus for determining exposure statistic, storage medium, and electronic apparatus

Country Status (1)

Country Link
CN (1) CN111263081B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114615439B (en) * 2022-03-08 2024-03-05 北京有竹居网络技术有限公司 Exposure statistical method, device, electronic equipment and medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108377335A (en) * 2018-04-20 2018-08-07 浙江大华技术股份有限公司 A kind of video camera focus method and video camera

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101924923B (en) * 2010-08-03 2013-01-09 杭州翰平电子技术有限公司 Embedded intelligent automatic zooming snapping system and method thereof
CN106791645A (en) * 2016-12-20 2017-05-31 长春理工大学 The monitor video system that a kind of abnormal behaviour is captured
CN107038418A (en) * 2017-03-24 2017-08-11 厦门瑞为信息技术有限公司 A kind of intelligent air condition dual camera follows the trail of the method for obtaining clear human body image
KR20190032818A (en) * 2017-09-20 2019-03-28 삼성전자주식회사 An electronic device including a plurality of camera using a rolling shutter system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108377335A (en) * 2018-04-20 2018-08-07 浙江大华技术股份有限公司 A kind of video camera focus method and video camera

Also Published As

Publication number Publication date
CN111263081A (en) 2020-06-09

Similar Documents

Publication Publication Date Title
US10785401B2 (en) Systems and methods for adjusting focus based on focus target information
JP6953311B2 (en) Systems and methods for performing operations on pixel data
CN111479072B (en) High dynamic range image synthesis method and device, image processing chip and aerial camera
US11588984B2 (en) Optimized exposure temporal smoothing for time-lapse mode
CN105611186B (en) Exposal control method and system based on dual camera
CN104853112A (en) Method and apparatus for controlling long exposure time
CN108337446B (en) High dynamic range image acquisition method, device and equipment based on double cameras
CN113473010B (en) Snapshot method and device, storage medium and electronic device
CN110971835A (en) Monitoring method and device based on double-phase exposure
US20190082092A1 (en) Imaging apparatus, image processing apparatus, imaging method, image processing method, and storage medium
CN111263081B (en) Method and apparatus for determining exposure statistic, storage medium, and electronic apparatus
CN111405185B (en) Zoom control method and device for camera, electronic equipment and storage medium
CN111246052B (en) Wide dynamic adjustment method and device, storage medium and electronic device
JP7075271B2 (en) Image processing equipment, information display equipment, control methods, and programs
CN112037127A (en) Privacy shielding method and device for video monitoring, storage medium and electronic device
CN110800286B (en) Shooting method and related equipment
CN108683847B (en) Photographing method, device, terminal and storage medium
US20230164446A1 (en) Imaging exposure control method and apparatus, device and storage medium
CN111614865B (en) Multi-shot brightness synchronization method, equipment, device and storage medium
WO2021095598A1 (en) Information processing device, information processing method, information processing program, terminal device, terminal device control method, and control program
CN114119370A (en) Image processing method and device, storage medium and electronic device
CN110072050B (en) Self-adaptive adjustment method and device of exposure parameters and shooting equipment
JP7224826B2 (en) Imaging control device, imaging control method, and program
US20190052803A1 (en) Image processing system, imaging apparatus, image processing apparatus, control method, and storage medium
CN112822404B (en) Image processing method and device and 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