CN110581989B - Method, device, electronic device, medium and system for detecting rapid exposure time - Google Patents

Method, device, electronic device, medium and system for detecting rapid exposure time Download PDF

Info

Publication number
CN110581989B
CN110581989B CN201810580154.0A CN201810580154A CN110581989B CN 110581989 B CN110581989 B CN 110581989B CN 201810580154 A CN201810580154 A CN 201810580154A CN 110581989 B CN110581989 B CN 110581989B
Authority
CN
China
Prior art keywords
frame
image
brightness
camera
exposure time
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
CN201810580154.0A
Other languages
Chinese (zh)
Other versions
CN110581989A (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.)
Hangzhou Hikvision Digital Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital 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 Hangzhou Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Priority to CN201810580154.0A priority Critical patent/CN110581989B/en
Publication of CN110581989A publication Critical patent/CN110581989A/en
Application granted granted Critical
Publication of CN110581989B publication Critical patent/CN110581989B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/002Diagnosis, testing or measuring for television systems or their details for television cameras
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/02Diagnosis, testing or measuring for television systems or their details for colour television signals

Abstract

The embodiment of the invention provides a method, a device, electronic equipment, a medium and a system for detecting rapid exposure time, wherein the method comprises the following steps: acquiring a target video which is shot by a camera and aims at a target scene, wherein the target scene has a sudden brightness change; acquiring the average brightness of each frame of image in a target video; determining a starting frame aiming at the brightness abrupt change and an ending frame aiming at the brightness abrupt change from each frame image according to the average brightness of each frame image; and determining the quick exposure time of the camera according to the frame number between the starting frame and the ending frame and the frame rate of the camera. The problems that in the prior art, when a professional instrument is used for detecting the quick exposure time, the operation is complex and the cost is high can be solved.

Description

Method, device, electronic device, medium and system for detecting rapid exposure time
Technical Field
The present invention relates to the field of automatic exposure technologies, and in particular, to a method, an apparatus, an electronic device, a medium, and a system for detecting a fast exposure time.
Background
When a video camera is used for recording, if the brightness of a video scene is changed greatly, namely the brightness changes suddenly, the exposure problem of overexposure or underexposure can occur in a video recording video. In order to ensure the effect of the image in the video, when the brightness of the video scene changes suddenly, the camera may be exposed quickly, i.e. the parameters of exposure, such as gain, aperture, etc., are adjusted, so as to adjust the brightness of the image in the video to the normal effect.
The shorter the fast exposure time is, the shorter the time of overexposure or underexposure in the video is, and the better the effect of the video picture is. Based on this, the length of the fast exposure time is one manifestation of the performance of the camera.
At present, the fast exposure time is determined by detection with a professional instrument. However, the detection of the fast exposure time by using a professional instrument is complicated and expensive.
Disclosure of Invention
The embodiment of the invention aims to provide a method, a device, electronic equipment, a medium and a system for detecting the quick exposure time of a camera, so as to solve the problems of complex operation and high cost when the quick exposure time is detected. The specific technical scheme is as follows:
in order to achieve the above object, an embodiment of the present invention provides a method for detecting a fast exposure time, where the method includes:
acquiring a target video which is shot by a camera and aims at a target scene, wherein the target scene has a sudden brightness change;
acquiring the average brightness of each frame of image in the target video;
determining a starting frame aiming at the brightness abrupt change and an ending frame aiming at the brightness abrupt change from each frame image according to the average brightness of each frame image;
and determining the quick exposure time of the camera according to the frame number between the starting frame and the ending frame and the frame rate of the camera.
Optionally, the step of obtaining the average brightness of each frame of image in the target video includes:
converting each frame image in the target video into a gray image;
for each frame of gray level image, carrying out average processing on the gray level value of each pixel in the frame of gray level image to obtain the average gray level of the frame of gray level image;
and taking the average gray scale of each frame gray scale image as the average brightness of the image in the corresponding target video.
Optionally, the step of converting each frame image in the target video into a grayscale image includes:
intercepting the central area of each frame of image in the target video as an image to be processed;
and converting each image to be processed into a gray image.
Optionally, the step of determining a starting frame for the abrupt brightness change and an ending frame for the abrupt brightness change from the frame images according to the average brightness of the frame images includes:
according to the time sequence, establishing a curve relation graph according to the corresponding relation between each frame of image and the average brightness;
from the graph, a starting frame for the abrupt change in brightness and an ending frame for the abrupt change in brightness are determined.
Optionally, the step of determining the fast exposure time of the camera according to the frame number between the start frame and the end frame and the frame rate of the camera includes:
the fast exposure time of the camera is determined according to the following formula:
t=Fs/FPS;
wherein t is the fast exposure time of the camera, FsAnd the FPS is the frame number between the starting frame and the ending frame, and the FPS is the frame rate of the camera.
In order to achieve the above object, an embodiment of the present invention further provides a device for detecting a fast exposure time, where the device includes:
the first acquisition module is used for acquiring a target video which is shot by a camera and aims at a target scene, wherein the target scene has sudden brightness change;
the second acquisition module is used for acquiring the average brightness of each frame of image in the target video;
the determining module is used for determining a starting frame aiming at the brightness abrupt change and an ending frame aiming at the brightness abrupt change from each frame of image according to the average brightness of each frame of image;
and the calculation module is used for determining the quick exposure time of the camera according to the frame number between the starting frame and the ending frame and the frame rate of the camera.
Optionally, the second obtaining module includes:
the conversion submodule is used for converting each frame image in the target video into a gray level image;
the calculation submodule is used for carrying out average processing on the gray value of each pixel in each frame of gray image to obtain the average gray value of the frame of gray image;
and the determining submodule is used for taking the average gray level of each frame gray level image as the average brightness of the corresponding image in the target video.
Optionally, the conversion sub-module is specifically configured to:
intercepting the central area of each frame of image in the target video as an image to be processed;
and converting each image to be processed into a gray image.
Optionally, the determining module is specifically configured to:
according to the time sequence, establishing a curve relation graph according to the corresponding relation between each frame of image and the average brightness;
from the graph, a starting frame for the abrupt change in brightness and an ending frame for the abrupt change in brightness are determined.
Optionally, the calculation module is specifically configured to:
the fast exposure time of the camera is determined according to the following formula:
t=Fs/FPS;
wherein t is the fast exposure time of the camera, FsAnd the FPS is the frame number between the starting frame and the ending frame, and the FPS is the frame rate of the camera.
To achieve the above object, an embodiment of the present invention further provides an electronic device, including a processor and a machine-readable storage medium, where the machine-readable storage medium stores machine-executable instructions executable by the processor, and the processor is caused by the machine-executable instructions to: implementing any of the above method steps.
To achieve the above object, an embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements any of the above method steps.
In order to achieve the above object, an embodiment of the present invention further provides a system for detecting a fast exposure time, where the system includes a camera, a light box, and an electronic device, the camera is configured to record a video aiming at the light box to obtain a target video, and send the target video to the electronic device, and the light box has a brightness jump;
the electronic equipment is used for acquiring a target video which is shot by the camera and aims at the lamp box; acquiring the average brightness of each frame of image in the target video; determining a starting frame aiming at the brightness abrupt change and an ending frame aiming at the brightness abrupt change from each frame image according to the average brightness of each frame image; and determining the quick exposure time of the camera according to the frame number between the starting frame and the ending frame and the frame rate of the camera.
Optionally, the system further comprises an illuminometer, the illuminometer being positioned in a central location of the panel of the light box;
the illuminometer is used for collecting the brightness of the panel of the lamp box.
Optionally, the optical axis of the camera is perpendicular to the panel of the light box and passes through the center point of the panel of the light box.
In the method, the device, the electronic device, the medium and the system for detecting the quick exposure time of the camera provided by the embodiment of the invention, a video obtained by shooting a target scene by the camera is obtained, wherein the target scene has a sudden brightness change, and the quick exposure time is calculated by using the frame number between a starting frame aiming at the sudden brightness change and an ending frame aiming at the sudden brightness change in each frame image in the video and the frame rate of the camera. Therefore, in the embodiment of the invention, the brightness change of each frame of image of the video shot by the camera when the scene brightness changes suddenly is used for calculating the quick exposure time of the camera, so that the detection of the quick exposure time is simple and efficient, and the problems of complex operation and high cost in the detection of the quick exposure time are solved.
Of course, not all of the advantages described above need to be achieved at the same time in the practice of any one product or method of the invention.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a fast exposure time detection method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a curve relationship for a corresponding relationship between each frame of image and average brightness according to an embodiment of the present invention;
fig. 3 is a schematic diagram illustrating another curve relationship between each frame of image and the corresponding relationship between the average brightness according to the embodiment of the present invention;
fig. 4 is a schematic structural diagram of a fast exposure time detection apparatus according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a fast exposure time detection system according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
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.
For the sake of understanding, the words appearing in the embodiments of the present application are explained below.
Sudden brightness change: the brightness difference between the first and the second brightness reaches the brightness threshold value when the first brightness suddenly rises or falls to the second brightness.
And (3) quick exposure: the method refers to that when the scene brightness changes, the camera can adjust exposure parameters so as to restore the brightness of images in the shot video to a normal range. In the embodiment of the invention, the rapid exposure time to be detected is the time required by the camera to adjust the exposure parameters when the scene has sudden brightness change.
Exposure parameters: including aperture, gain, etc.
At present, the fast exposure time is determined by detection with a professional instrument. However, the detection of the fast exposure time by using a professional instrument is complicated and expensive. In order to solve the problems of complex operation and high cost in the detection of the rapid exposure time, the embodiment of the invention provides a rapid exposure time detection method. The method can be applied to a camera, an electronic device connected to the camera, and the like. Here, the electronic device may be located on a physical machine independently, or may be integrated with the camera. The embodiment of the present invention does not limit this.
The rapid exposure time detection method comprises the following steps: and obtaining a video obtained by shooting a target scene by the camera, wherein the target scene has sudden brightness change, and calculating the quick exposure time by using the frame number between the initial frame aiming at the sudden brightness change and the ending frame aiming at the sudden brightness change in each frame image in the video and the frame rate of the camera. Therefore, in the embodiment of the invention, the brightness change of each frame of image of the video shot by the camera when the scene brightness changes suddenly is used for calculating the quick exposure time of the camera, so that the detection of the quick exposure time is simple and efficient, and the problems of complex operation and high cost in the detection of the quick exposure time are solved.
The present application will be described below with reference to specific examples.
Referring to fig. 1, fig. 1 is a flowchart of a fast exposure time detection method according to an embodiment of the present invention, where the method includes the following steps:
step S101: and acquiring a target video which is shot by a camera and aims at a target scene, wherein the target scene has sudden brightness change.
To detect the fast exposure time of the camera, the camera may be directed to a target scene, wherein the brightness of the target scene may change abruptly, e.g., from darker to brighter. The target scene may be artificially arranged. For example, a light box may be targeted.
In one implementation, to improve the accuracy of the detection result of the fast exposure time, the brightness of the target scene may be arranged to be uniform.
In this step, the acquired target video is a video captured by the camera for the target scene. Because the target scene has sudden brightness change, the target video also has sudden brightness change, and in the subsequent steps, the target video can be analyzed, so that the quick exposure time of the camera is detected.
Step S102: and acquiring the average brightness of each frame of image in the target video.
The video shot by the camera is formed by combining one frame and one frame of images, and in the step, the average brightness of each frame of image in the target video is obtained.
In one implementation, the target video may be decomposed into frames of images, and then each frame of image is analyzed to obtain the average brightness of each frame of image.
In one implementation, in order to obtain the brightness of each frame image, each frame image may be first converted into a grayscale image, where the grayscale image is an image represented by gray scale, where the gray scale is between white and black, and the level of the gray scale is generally divided into 256 levels, 0 represents black, and 255 represents white.
Specifically, the conversion can be performed by the following formula:
Grey=0.299*R+0.587*G+0.114*B
wherein, gray represents the gray level of the pixel point, R, G, B represents the color values of the three color channels of the pixel point respectively, R, G, B values of each pixel point in the image are read in sequence, and the gray level of each pixel point in the image can be calculated by substituting the formula. The embodiment of the present invention does not limit the method for converting each frame image into a grayscale image.
For each frame gray image, the gray value of each pixel in the frame gray image is averaged to obtain the average gray of the frame gray image, and the average gray of each frame image is determined as the average brightness of the image corresponding to each frame image.
In another embodiment of the present invention, in order to prevent the influence of the boundary area of the image on the gray scale of the calculated image and improve the data calculation efficiency, after each frame of image is acquired, the central area of each frame of image may be intercepted as the image to be processed. The central area may be an image area of a predetermined range, for example, a pixel area at the center of 100 × 100 of the image is used as the central area.
For the intercepted image to be processed, the intercepted image to be processed may be converted into a gray scale image, and an average gray scale may be calculated, and the calculated average gray scale may be determined as the average brightness of the image before interception corresponding to the gray scale image.
Step S103: according to the average brightness of each frame image, a starting frame aiming at the brightness abrupt change and an ending frame aiming at the brightness abrupt change are determined from each frame image.
In one implementation, in order to more intuitively represent the change of the average brightness of each captured frame image, a graph may be established according to the corresponding relationship between each frame image and the average brightness in the time sequence, for example, as shown in fig. 2, a graph of a curve relationship for the corresponding relationship between each frame image and the average brightness is shown.
For sudden brightness change of a target scene, the sudden brightness change occurs twice in a target video. According to the time sequence, the initial frame of the first sudden brightness change in the target video is the initial frame of the sudden brightness change aiming at the target scene, and the end frame of the second sudden brightness change in the target video is the end frame of the sudden brightness change aiming at the target scene. Here, when capturing an image between the start frame and the end frame of a sudden change in luminance for the target scene, the camera is quickly exposed, and the exposure parameters are adjusted. For ease of understanding, the following description is made in conjunction with fig. 2 and 3. Fig. 3 is a schematic diagram of another curve relationship for the correspondence between each frame of image and the average luminance according to the embodiment of the present invention.
The brightness of the target video changes as shown in fig. 2. When the camera is shooting the target scene, the brightness of the target scene is kept dark and uniform, and the brightness of the image in the target video shot by the camera at this time is the brightness value 110 corresponding to the first stage as shown in fig. 2. Then, the brightness of the target scene changes suddenly to be brighter, and since the camera still shoots according to the exposure parameters before the scene changes suddenly, the image in the target video shot by the camera is overexposed, and the brightness of the image in the target video changes suddenly to be the brightness value 240 corresponding to the second stage as shown in fig. 2. Due to the existence of the automatic exposure mechanism, the camera can carry out quick exposure and adjust exposure parameters, so that the shot image in the target video can not be continuously overexposed. After the exposure parameter adjustment is completed, the image brightness of the captured target video will decrease to a normal level, and the image brightness in the target video is the brightness value 140 corresponding to the third stage shown in fig. 2. Therefore, when the brightness of the target scene changes suddenly once, the brightness of the image in the target video captured by the camera changes suddenly twice. Such as abrupt brightness 1 and abrupt brightness 2 shown in fig. 2.
At this time, as shown in fig. 2, when the brightness of the target video suddenly changes, the initial frame of the brightness sudden change of the target scene is the initial frame of the brightness sudden change 1, that is, the initial frame of the brightness sudden change of the target scene is the frame with the number 79. The end frame for the abrupt brightness change of the target scene is the end frame for the abrupt brightness change 2, that is, the end frame for the abrupt brightness change of the target scene is the frame numbered 104.
Similarly, as shown in fig. 3, when the target scene has a sudden change in brightness, such as a sudden change in brightness 3 and a sudden change in brightness 4, the image of the video captured by the camera will also have two sudden changes in brightness. As shown in fig. 2 and 3, in the case where a sudden change in luminance from bright to dark occurs in the target scene, unlike the case where a sudden change in luminance from dark to bright occurs in the target scene, the luminance of the first sudden change in luminance in the target video decreases, and the luminance of the second sudden change in luminance in the target video increases.
At this time, as shown in fig. 3, when the brightness of the target video suddenly changes, the initial frame of the sudden brightness change for the target scene is the initial frame of the sudden brightness change 3, that is, the initial frame of the sudden brightness change for the target scene is the frame numbered 50. The end frame for the abrupt change in luminance for the target scene is the end frame for the abrupt change in luminance 4, that is, the end frame for the abrupt change in luminance for the target scene is the frame numbered 72.
Step S104: and determining the quick exposure time of the camera according to the frame number between the starting frame and the ending frame and the frame rate of the camera.
After the start frame and the end frame for the abrupt change in luminance are determined, the number of frames between the start frame and the end frame is calculated. For example, in the embodiment shown in fig. 2, if the determined start frame is the frame numbered 79 and the determined end frame is the frame numbered 104, it can be calculated that the number of frames between the start frame and the end frame is 104-79-25.
And determining the quick exposure time of the camera according to the calculated frame number and the frame rate of the camera.
In one implementation, the camera fast exposure time may be calculated as follows:
t=Fs/FPS;
where t is the fast exposure time of the camera, FsThe number of frames between the start frame and the end frame, and the FPS the frame rate of the camera. The frame rate of the camera indicates the number of frames of images taken by the camera per second, and the interval time between two adjacent frames of images is the same, so that the time of the difference between the start frame and the end frame, that is, the quick exposure time, can be obtained by dividing the frame number between the start frame and the end frame by the frame rate.
In the embodiment shown in fig. 2, the number of frames between the start frame and the end frame is calculated to be 25, and if the frame rate of the camera is known to be 50 frames per second, the fast exposure time t of the camera can be calculated as: t is 25/50 s is 0.5 s.
In the method for detecting the rapid exposure time of the camera provided by the embodiment of the invention, a video obtained by shooting a target scene by the camera is obtained, wherein the target scene has a sudden change in brightness, and the rapid exposure time is calculated by using the frame number between a starting frame aiming at the sudden change in brightness and an ending frame aiming at the sudden change in brightness in each frame image in the video and the frame rate of the camera. Therefore, in the embodiment of the invention, the brightness change of each frame of image of the video shot by the camera when the scene brightness changes suddenly is used for calculating the quick exposure time of the camera, so that the detection of the quick exposure time is simple and efficient, and the problems of complex operation and high cost in the detection of the quick exposure time are solved.
Based on the same inventive concept, according to the embodiment of the fast exposure time detection method, an embodiment of the present invention further provides a fast exposure time detection apparatus, which, referring to fig. 4, may include the following modules:
the first obtaining module 401 is configured to obtain a target video of a target scene shot by a camera, where the target scene has a sudden brightness change;
a second obtaining module 402, configured to obtain an average brightness of each frame of image in the target video;
a determining module 403, configured to determine, according to the average brightness of each frame image, a starting frame for a brightness abrupt change and an ending frame for the brightness abrupt change from each frame image;
and a calculating module 404, configured to determine a fast exposure time of the camera according to the number of frames between the start frame and the end frame and the frame rate of the camera.
In the device for detecting the fast exposure time of the camera provided by the embodiment of the invention, a video obtained by shooting a target scene by the camera is obtained, wherein the target scene has a sudden change in brightness, and the fast exposure time is calculated by using the frame number between a starting frame aiming at the sudden change in brightness and an ending frame aiming at the sudden change in brightness in each frame image in the video and the frame rate of the camera. Therefore, in the embodiment of the invention, the brightness change of each frame of image of the video shot by the camera when the scene brightness changes suddenly is used for calculating the quick exposure time of the camera, so that the detection of the quick exposure time is simple and efficient, and the problems of complex operation and high cost in the detection of the quick exposure time are solved.
In this embodiment of the present invention, the second obtaining module 402 may include:
the conversion submodule is used for converting each frame image in the target video into a gray level image;
the calculation submodule is used for carrying out average processing on the gray value of each pixel in each frame of gray image to obtain the average gray value of the frame of gray image;
and the determining submodule is used for taking the average gray level of each frame gray level image as the average brightness of the image in the corresponding target video.
The conversion submodule may be specifically configured to: intercepting the central area of each frame of image in the target video as an image to be processed; and converting each image to be processed into a gray image.
In this embodiment of the present invention, the determining module 403 may specifically be configured to: according to the time sequence, establishing a curve relation graph according to the corresponding relation between each frame of image and the average brightness; from the graph, a start frame for the abrupt change in luminance and an end frame for the abrupt change in luminance are determined.
In this embodiment of the present invention, the calculating module 404 may specifically be configured to:
the fast exposure time of the camera is determined according to the following formula:
t=Fs/FPS;
where t is the fast exposure time of the camera, FsThe number of frames between the start frame and the end frame, and the FPS the frame rate of the camera.
Based on the same inventive concept, according to the embodiment of the fast exposure time detection method, an embodiment of the present invention further provides a fast exposure time detection system, as shown in fig. 5, fig. 5 is a schematic structural diagram of the fast exposure time detection system provided by the embodiment of the present invention, and the fast exposure time detection system may include a camera 501, a lamp box 502, and an electronic device 503.
In one implementation, to improve the accuracy of the measured fast exposure time, the optical axis of the camera 501 may be perpendicular to the panel of the light box 502 and pass through the center point of the panel of the light box 502, as shown in fig. 5, the optical axis L of the camera 501 is perpendicular to the panel of the light box 502 and passes through the center point O of the panel of the light box 502.
In one implementation, the light box 502 may be set to an off state when the video camera 501 starts to record video, and then turned on, and the recording may be stopped after turning on the light box for a period of time, for example, 5 seconds. At this time, the video obtained by the camera 501 records the process of sudden brightness change from the turning-off of the light box to the turning-on of the light box, i.e. the fast exposure time of the camera 501 can be calculated by analyzing the video.
The camera 501 sends video to the electronic device 503.
The electronic device 503 acquires the video for the light box 502 captured by the camera 501; acquiring the average brightness of each frame of image in the video; determining a starting frame and an ending frame aiming at the brightness mutation of the lamp box 502 from each frame image according to the average brightness of each frame image; the fast exposure time of the camera 501 is determined based on the number of frames between the start frame and the end frame and the frame rate of the camera 501.
In order to reduce the influence of unstable scene brightness on the detection result of the fast exposure time and improve the detection precision, the brightness of the panel of the lamp box 502 is uniformly distributed.
In the embodiment of the present invention, the system may further include an illuminometer, and the illuminometer is configured to collect brightness of the panel of the light box. To improve the accuracy of the detection result, the illuminometer is placed at the center of the panel of the lamp box 502, as shown in fig. 5 where the point O is located.
In the case where the scene brightness changes differently, the time required to adjust the exposure parameters also differs for the camera 501. In general, the larger the abrupt change in scene brightness, the longer it takes for the camera 501 to adjust the exposure parameters. Therefore, the luminance before and after the scene luminance sudden change can be acquired by using the illuminometer, the scene luminance sudden change value is calculated, wherein the scene luminance sudden change value is the difference value between the luminance value after the scene luminance sudden change and the luminance value before the sudden change, and the time required by the camera to adjust the exposure parameters, namely the quick exposure time, is obtained on the premise of the scene luminance sudden change value by adopting the quick exposure time detection method provided by the embodiment of the invention.
For example, for a camera, the detected fast exposure time may be 0.6 seconds when the scene intensity spike is 5000 lumens, and 1 second when the scene intensity spike is 10000 lumens.
Therefore, the system provided by the embodiment of the invention can use the illuminometer to acquire the brightness of the panel of the lamp box 502, and correspondingly, the panel brightness of the lamp box 502 during closing and opening can be set in a mode of adjusting the brightness of the light source, so that the quick exposure time of the camera 501 under the condition of different sudden changes of brightness can be detected, and the system is more flexible.
In the embodiment of the invention, a video obtained by shooting a target scene by a camera is obtained, wherein the target scene has sudden brightness change, and the quick exposure time is calculated by using the frame number between the initial frame aiming at the sudden brightness change and the ending frame aiming at the sudden brightness change in each frame image in the video and the frame rate of the camera. Therefore, in the embodiment of the invention, the brightness change of each frame of image of the video shot by the camera when the scene brightness changes suddenly is used for calculating the quick exposure time of the camera, so that the detection of the quick exposure time is simple and efficient, and the problems of complex operation and high cost in the detection of the quick exposure time are solved.
Based on the same inventive concept, according to the above embodiment of the fast exposure time detection method, an embodiment of the present invention further provides an electronic device, as shown in fig. 6, including a processor 601, a communication interface 602, a memory 603, and a communication bus 604, where the processor 601, the communication interface 602, and the memory 603 complete mutual communication through the communication bus 604,
a memory 603 for storing a computer program;
the processor 601 is configured to implement the embodiment of the fast exposure time detection method shown in fig. 1-3 when executing the program stored in the memory 603. The rapid exposure time detection method comprises the following steps:
acquiring a target video which is shot by a camera and aims at a target scene, wherein the target scene has a sudden brightness change; acquiring the average brightness of each frame of image in a target video; determining a starting frame aiming at the brightness abrupt change and an ending frame aiming at the brightness abrupt change from each frame image according to the average brightness of each frame image; and determining the quick exposure time of the camera according to the frame number between the starting frame and the ending frame and the frame rate of the camera.
In the embodiment of the invention, a video obtained by shooting a target scene by a camera is obtained, wherein the target scene has sudden brightness change, and the quick exposure time is calculated by using the frame number between the initial frame aiming at the sudden brightness change and the ending frame aiming at the sudden brightness change in each frame image in the video and the frame rate of the camera. Therefore, in the embodiment of the invention, the brightness change of each frame of image of the video shot by the camera when the scene brightness changes suddenly is used for calculating the quick exposure time of the camera, so that the detection of the quick exposure time is simple and efficient, and the problems of complex operation and high cost in the detection of the quick exposure time are solved.
The communication bus 604 may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus 604 may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 6, but this is not intended to represent only one bus or type of bus.
The communication interface 602 is used for communication between the above-described electronic apparatus and other apparatuses.
The Memory 603 may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory 603 may also be at least one storage device located remotely from the aforementioned processor.
The Processor 601 may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
Based on the same inventive concept, according to the above-mentioned embodiment of the fast exposure time detection method, in yet another embodiment provided by the present invention, a computer-readable storage medium is further provided, in which a computer program is stored, and the computer program, when executed by a processor, implements any of the fast exposure time detection method steps shown in fig. 1 to 3.
Based on the same inventive concept, according to the above-mentioned embodiment of the fast exposure time detection method, in a further embodiment provided by the present invention, there is also provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform any of the fast exposure time detection method steps shown in fig. 1-3 above.
The computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, e.g., from one website site, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DS L)) or wireless (e.g., infrared, wireless, microwave, etc.) manner to another website site, computer, server, or data center.
It is noted that, herein, relational terms such as first and second, and the like may be 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. Also, 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 an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the embodiments of the fast exposure time detection apparatus, the fast exposure time detection system, the electronic device, the machine-readable storage medium, and the computer program product, since they are substantially similar to the embodiments of the fast exposure time detection method, the description is relatively simple, and relevant points can be found in the partial description of the embodiments of the fast exposure time detection method.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (15)

1. A method for fast exposure time detection, the method comprising:
acquiring a target video which is shot by a camera and aims at a target scene, wherein the target scene has a sudden brightness change;
acquiring the average brightness of each frame of image in the target video;
determining a starting frame aiming at the brightness abrupt change and an ending frame aiming at the brightness abrupt change from each frame image according to the average brightness of each frame image;
and determining the quick exposure time of the camera according to the frame number between the starting frame and the ending frame and the frame rate of the camera.
2. The method of claim 1, wherein the step of obtaining the average brightness of each frame of image in the target video comprises:
converting each frame image in the target video into a gray image;
for each frame of gray level image, carrying out average processing on the gray level value of each pixel in the frame of gray level image to obtain the average gray level of the frame of gray level image;
and taking the average gray scale of each frame gray scale image as the average brightness of the image in the corresponding target video.
3. The method of claim 2, wherein the step of converting each frame image in the target video into a grayscale image comprises:
intercepting the central area of each frame of image in the target video as an image to be processed;
and converting each image to be processed into a gray image.
4. The method according to claim 1, wherein the step of determining a starting frame for the abrupt change in brightness and an ending frame for the abrupt change in brightness from the frame images according to the average brightness of the frame images comprises:
according to the time sequence, establishing a curve relation graph according to the corresponding relation between each frame of image and the average brightness;
from the graph, a starting frame for the abrupt change in brightness and an ending frame for the abrupt change in brightness are determined.
5. The method of claim 1 or 4, wherein the step of determining the fast exposure time of the camera according to the number of frames between the start frame and the end frame and the frame rate of the camera comprises:
the fast exposure time of the camera is determined according to the following formula:
t=Fs/FPS;
wherein t is the fast exposure time of the camera, FsAnd the FPS is the frame number between the starting frame and the ending frame, and the FPS is the frame rate of the camera.
6. A fast exposure time detection apparatus, characterized in that the apparatus comprises:
the first acquisition module is used for acquiring a target video which is shot by a camera and aims at a target scene, wherein the target scene has sudden brightness change;
the second acquisition module is used for acquiring the average brightness of each frame of image in the target video;
the determining module is used for determining a starting frame aiming at the brightness abrupt change and an ending frame aiming at the brightness abrupt change from each frame of image according to the average brightness of each frame of image;
and the calculation module is used for determining the quick exposure time of the camera according to the frame number between the starting frame and the ending frame and the frame rate of the camera.
7. The apparatus of claim 6, wherein the second obtaining module comprises:
the conversion submodule is used for converting each frame image in the target video into a gray level image;
the calculation submodule is used for carrying out average processing on the gray value of each pixel in each frame of gray image to obtain the average gray value of the frame of gray image;
and the determining submodule is used for taking the average gray level of each frame gray level image as the average brightness of the corresponding image in the target video.
8. The apparatus of claim 7, wherein the conversion submodule is specifically configured to:
intercepting the central area of each frame of image in the target video as an image to be processed; and converting each image to be processed into a gray image.
9. The apparatus of claim 6, wherein the determining module is specifically configured to:
according to the time sequence, establishing a curve relation graph according to the corresponding relation between each frame of image and the average brightness; from the graph, a starting frame for the abrupt change in brightness and an ending frame for the abrupt change in brightness are determined.
10. The apparatus according to claim 6 or 9, wherein the computing module is specifically configured to:
the fast exposure time of the camera is determined according to the following formula:
t=Fs/FPS;
wherein t is the fast exposure time of the camera, FsAnd the FPS is the frame number between the starting frame and the ending frame, and the FPS is the frame rate of the camera.
11. An electronic device comprising a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to: carrying out the method steps of any one of claims 1 to 5.
12. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of the claims 1-5.
13. A rapid exposure time detection system is characterized by comprising a camera, a lamp box and an electronic device;
the camera is used for aiming at the lamp box to record a video to obtain a target video, and sending the target video to the electronic equipment, wherein the lamp box has a sudden change in brightness;
the electronic equipment is used for acquiring a target video which is shot by the camera and aims at the lamp box; acquiring the average brightness of each frame of image in the target video; determining a starting frame aiming at the brightness abrupt change and an ending frame aiming at the brightness abrupt change from each frame image according to the average brightness of each frame image; and determining the quick exposure time of the camera according to the frame number between the starting frame and the ending frame and the frame rate of the camera.
14. The system of claim 13, further comprising a light meter positioned in a central location of a panel of the light box; the illuminometer is used for collecting the brightness of the panel of the lamp box.
15. The system of claim 13, wherein the optical axis of the camera is perpendicular to the light box panel and passes through a center point of the light box panel.
CN201810580154.0A 2018-06-07 2018-06-07 Method, device, electronic device, medium and system for detecting rapid exposure time Active CN110581989B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810580154.0A CN110581989B (en) 2018-06-07 2018-06-07 Method, device, electronic device, medium and system for detecting rapid exposure time

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810580154.0A CN110581989B (en) 2018-06-07 2018-06-07 Method, device, electronic device, medium and system for detecting rapid exposure time

Publications (2)

Publication Number Publication Date
CN110581989A CN110581989A (en) 2019-12-17
CN110581989B true CN110581989B (en) 2020-07-31

Family

ID=68810017

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810580154.0A Active CN110581989B (en) 2018-06-07 2018-06-07 Method, device, electronic device, medium and system for detecting rapid exposure time

Country Status (1)

Country Link
CN (1) CN110581989B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113194307B (en) * 2021-04-30 2022-02-25 深圳欧克曼技术有限公司 Equipment and method for accurately measuring video delay
CN117835037A (en) * 2022-09-30 2024-04-05 北京字跳网络技术有限公司 Light supplementing control method, device, equipment and storage medium for video call

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101543055A (en) * 2006-11-27 2009-09-23 诺基亚公司 Determination of mechanical shutter exposure time
US9077961B1 (en) * 2013-02-05 2015-07-07 Lucasfilm Entertainment Company Ltd. Rolling shutter timing tester
CN104965387A (en) * 2015-07-15 2015-10-07 深圳市明宇通检测有限公司 Exposure time, frame rate and smear test device and test method
CN105430387A (en) * 2015-12-16 2016-03-23 中国科学院西安光学精密机械研究所 System and method for testing exposure time of camera/vidicon
CN106210584A (en) * 2016-08-02 2016-12-07 乐视控股(北京)有限公司 A kind of video recording method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101543055A (en) * 2006-11-27 2009-09-23 诺基亚公司 Determination of mechanical shutter exposure time
US9077961B1 (en) * 2013-02-05 2015-07-07 Lucasfilm Entertainment Company Ltd. Rolling shutter timing tester
CN104965387A (en) * 2015-07-15 2015-10-07 深圳市明宇通检测有限公司 Exposure time, frame rate and smear test device and test method
CN105430387A (en) * 2015-12-16 2016-03-23 中国科学院西安光学精密机械研究所 System and method for testing exposure time of camera/vidicon
CN106210584A (en) * 2016-08-02 2016-12-07 乐视控股(北京)有限公司 A kind of video recording method and device

Also Published As

Publication number Publication date
CN110581989A (en) 2019-12-17

Similar Documents

Publication Publication Date Title
CN109936698B (en) Automatic exposure control method and device, electronic equipment and storage medium
CN108337445B (en) Photographing method, related device and computer storage medium
JP4482037B2 (en) Digital imaging exposure
US20080284872A1 (en) Image pickup apparatus, image pickup method, exposure control method, and program
US9357127B2 (en) System for auto-HDR capture decision making
CN109922275B (en) Self-adaptive adjustment method and device of exposure parameters and shooting equipment
US20050231630A1 (en) Camera device and shooting method
CN108307098B (en) Fisheye camera shadow correction parameter determination method, correction method and device and fisheye camera
US9071766B2 (en) Image capturing apparatus and control method thereof
KR101672501B1 (en) Method and apparatus for determining a need for a change in a pixel density requirement due to changing light conditions
CN112689100B (en) Image detection method, device, equipment and storage medium
CN110581989B (en) Method, device, electronic device, medium and system for detecting rapid exposure time
CN101212656B (en) Imaging apparatus, imaging signal processing method, and program
CN111405185B (en) Zoom control method and device for camera, electronic equipment and storage medium
US10721415B2 (en) Image processing system with LED flicker mitigation
US20070097254A1 (en) Devices and methods for calculating pixel values representative of a scene
CN110753178B (en) Exposure time adjusting method and device and camera
CN113840095B (en) Light supplement lamp control method and related device
CN110971833B (en) Image processing method and device, electronic equipment and storage medium
KR100601312B1 (en) Apparatus for correlating of exposure automatically of a digital still camera and method for performing the same
CN110072050B (en) Self-adaptive adjustment method and device of exposure parameters and shooting equipment
CN110868549B (en) Exposure control method and device and electronic equipment
US20210409587A1 (en) Half-shield phase detection auto-focus sensor for auto-exposure convergence
JP2019012934A (en) Imaging device
US11778334B2 (en) Method and a thermal camera having a microbolometer detector for capturing a sequence of image frames

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