CN108881812B - Method, device and equipment for monitoring target - Google Patents

Method, device and equipment for monitoring target Download PDF

Info

Publication number
CN108881812B
CN108881812B CN201710343815.3A CN201710343815A CN108881812B CN 108881812 B CN108881812 B CN 108881812B CN 201710343815 A CN201710343815 A CN 201710343815A CN 108881812 B CN108881812 B CN 108881812B
Authority
CN
China
Prior art keywords
video frame
value
frame
target
brightness value
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
CN201710343815.3A
Other languages
Chinese (zh)
Other versions
CN108881812A (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 CN201710343815.3A priority Critical patent/CN108881812B/en
Publication of CN108881812A publication Critical patent/CN108881812A/en
Application granted granted Critical
Publication of CN108881812B publication Critical patent/CN108881812B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
    • H04N7/181Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast for receiving images from a plurality of remote sources
    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/01Detecting movement of traffic to be counted or controlled
    • G08G1/017Detecting movement of traffic to be counted or controlled identifying vehicles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/73Circuitry for compensating brightness variation in the scene by influencing the exposure time

Landscapes

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

Abstract

The invention provides a method, a device and equipment for monitoring a target, wherein the method comprises the following steps: detecting a target in a video frame; judging whether the detected target can be successfully identified in the video frame or not to obtain specific information; when the detected target cannot be successfully identified in the video frame, adjusting the exposure time and/or the gain value of the pseudo-capture frame to obtain a pseudo-capture frame until the detected target is successfully identified in the pseudo-capture frame; setting an expected brightness value of a video frame as a brightness value of a pseudo-capture frame in which the detected target is successfully identified, and adjusting an exposure time and/or a gain value of the video frame according to the expected brightness value; and identifying the detected target in the video frame, and monitoring the target which is successfully identified. The method, the device and the equipment for monitoring the target can improve the target identification capability in the monitoring environment.

Description

Method, device and equipment for monitoring target
Technical Field
The present invention relates to the field of image processing technologies, and in particular, to a method, an apparatus, and a device for monitoring a target.
Background
With the development of science and technology, the camera becomes an indispensable tool, can be used for a series of security activities such as security inspection, real-time control, investigation evidence collection and the like, and provides a lot of convenience for people. For example, a camera on a road monitors vehicles on the road surface, and when the condition that the vehicles violate regulations is monitored, the camera takes a snapshot of the license plate of the target vehicle. The precondition for the camera to monitor the target is the successful recognition of the target.
In an intelligent monitoring environment, a camera needs to be automatically exposed according to the current environment, and at present, the camera has two exposure modes, one mode is global exposure, and the other mode is exposure aiming at a target area.
In the process of implementing the invention, the inventor finds that at least the following problems exist in the prior art:
when the global exposure mode is adopted, when the brightness is too strong or too weak due to the fact that the monitoring environment is in a forward and backward light state, the camera may be abnormally exposed, so that the target cannot be identified, and the target cannot be monitored smoothly.
Disclosure of Invention
In view of this, the present invention provides a method, an apparatus, and a device for monitoring a target, which can effectively improve the capability of target identification in a monitoring environment.
Specifically, the method comprises the following technical scheme:
in one aspect, the present invention provides a method for monitoring a target, including:
detecting a target in a video frame;
judging whether the detected target can be successfully identified in the video frame or not to obtain specific information;
when the detected target cannot be successfully identified in the video frame, adjusting the exposure time and/or the gain value of the pseudo-capture frame to obtain a pseudo-capture frame until the detected target is successfully identified in the pseudo-capture frame;
setting an expected brightness value of a video frame as a brightness value of a pseudo-capture frame in which the detected target is successfully identified, and adjusting an exposure time and/or a gain value of the video frame according to the expected brightness value;
and identifying the detected target in the video frame, and monitoring the target which is successfully identified.
Optionally, the adjusting the exposure time and/or the gain value of the dummy capture frame to obtain a dummy capture frame until the detected object is successfully identified in the dummy capture frame includes:
selecting a ratio K of the brightness value of the video frame to the brightness value of the pseudo-capture frame1Said K is1Is a positive number greater than 1 in a first preset interval;
setting an exposure time of a dummy capture frame equal to K of an exposure time of a video frame1One-fourth and the gain value of the pseudo-snapshot frame is equal to the gain value of the video frame, or K is set for the gain value of the pseudo-snapshot frame to be equal to the gain value of the video frame1One-fourth and the exposure time of the pseudo-capture frame is equal to the exposure time of the video frame to obtain the pseudo-capture frame;
identifying the detected target in the obtained pseudo-captured frame to obtain specific information;
adjusting K when the detected target cannot be successfully identified in the obtained pseudo-captured frame1Until the detected object is successfully identified therein.
Optionally, the adjusting the exposure time and/or the gain value of the dummy capture frame to obtain a dummy capture frame until the detected object is successfully identified in the dummy capture frame includes:
selecting the ratio K of the brightness values of the pseudo-capture frame and the video frame2Said K is2Is a positive number greater than 1 in a second preset interval;
when the gain value of the video frame is K2Setting a gain value of the dummy capture frame equal to K of the gain value of the video frame when the gain value is not greater than the maximum allowable gain value of the camera2Setting the exposure time of the pseudo-capture frame to be equal to the exposure time of the video frame;
when the gain value of the video frame is K2Setting the gain value of the pseudo-capture frame to be equal to the maximum allowable gain value of the camera when the gain value is larger than the maximum allowable gain value of the camera, and setting the exposure time of the pseudo-capture frame to be equal to R times of the exposure time of the video frame when the R times of the exposure time of the video frame is not larger than the maximum allowable exposure time of the camera; setting an exposure time of a dummy capture frame equal to a maximum allowable exposure time of the camera when R times the exposure time of the video frame is greater than the maximum allowable exposure time of the camera, wherein,
R=K2/(gainmax/gain)
in the formula (I), the compound is shown in the specification,
r is the ratio of the exposure time of the pseudo-grab frame to the exposure time of the video frame;
gainmax-a maximum allowable gain value for the camera;
gain-the gain value of a video frame,
identifying the detected target in the obtained pseudo-captured frame to obtain specific information;
adjusting K when the detected target cannot be successfully identified in the obtained pseudo-captured frame2Until the detected object is successfully identified therein.
Optionally, the monitoring the target successfully identified includes:
when the detected target is successfully identified in the video frame, acquiring the brightness value of the video frame, and judging whether the brightness value of the video frame is in a preset brightness range or not;
when the brightness value of the video frame is judged to be out of the preset brightness range and smaller than the minimum value of the preset brightness range, increasing the expected brightness value of the video frame, and adjusting the exposure time and/or the gain value of the video frame according to the increased expected brightness value until the brightness value of the video frame is in the preset brightness range;
when the brightness value of the video frame is judged to be out of the preset brightness range and larger than the maximum value of the preset brightness range, reducing the expected brightness value of the video frame, and adjusting the exposure time and/or the gain value of the video frame according to the reduced expected brightness value until the brightness value of the video frame is in the preset brightness range;
and monitoring the identified target when the brightness value of the video frame or the brightness value of the video frame is within the preset brightness range.
Optionally, the monitoring the target successfully identified includes:
when the detected target is successfully identified in the video frame, acquiring the brightness value of the video frame, and judging whether the difference value between the brightness value of the video frame and the expected brightness value is within a preset target range;
when the difference value between the brightness value of the video frame and the expected brightness value is judged to be not in the preset target range and larger than the expected brightness value, reducing the exposure time and/or the gain value of the video frame until the difference value between the brightness value of the video frame and the expected brightness value is in the preset target range;
when the difference value between the brightness value of the video frame and the expected brightness value is judged to be not in the preset target range and smaller than the expected brightness value, increasing the exposure time and/or the gain value of the video frame until the difference value between the brightness value of the video frame and the expected brightness value is in the preset target range;
and monitoring the identified target when the brightness value of the video frame or the difference value between the brightness value of the video frame and the expected brightness value is within the preset target range.
Alternatively, when the number of times of successively unsuccessfully recognizing the detected object in a plurality of video frames is greater than a preset number, it is determined that the detected object cannot be successfully recognized.
In a second aspect, the present invention further provides an apparatus for monitoring a target, including:
the detection module is used for detecting a target in the video frame;
the judging module is used for judging whether the detected target can be successfully identified in the video frame so as to obtain specific information;
a pseudo-snapshot module, configured to, when the detected target cannot be successfully identified in the video frame, adjust an exposure time and/or a gain value of the pseudo-snapshot frame to obtain a pseudo-snapshot frame until the detected target is successfully identified in the pseudo-snapshot frame;
a setting module, configured to set an expected brightness value of a video frame as a brightness value of a pseudo-capture frame in which the detected target is successfully identified, and adjust an exposure time and/or a gain value of the video frame according to the expected brightness value;
and the monitoring module is used for identifying the detected target in the video frame and monitoring the target which is successfully identified.
Optionally, the pseudo-snapshot module includes:
a first selecting unit for selecting a ratio K of a luminance value of the video frame to a luminance value of the pseudo-capture frame1Said K is1Is a positive number greater than 1 in a first preset interval;
a first setting unit for setting K for setting an exposure time of the dummy capture frame equal to an exposure time of the video frame1One-fourth and the gain value of the pseudo-snapshot frame is equal to the gain value of the video frame, or K is set for the gain value of the pseudo-snapshot frame to be equal to the gain value of the video frame1One-fourth and the exposure time of the pseudo-capture frame is equal to the exposure time of the video frame to obtain the pseudo-capture frame;
a first identifying unit configured to identify the detected target in the obtained pseudo-captured frame to obtain specific information;
a first adjusting unit for adjusting K when the detected object cannot be successfully identified in the obtained pseudo-captured frame1Until the detected object is successfully identified therein.
Optionally, the pseudo-snapshot module includes:
a second selecting unit for selecting a ratio K of luminance values of the pseudo-captured frame to the video frame2Said K is2Is a positive number greater than 1 in a second preset interval;
a second setting unit for setting a gain value K of the video frame2Setting a gain value of the dummy capture frame equal to K of the gain value of the video frame when the gain value is not greater than the maximum allowable gain value of the camera2Setting the exposure time of the pseudo-capture frame to be equal to the exposure time of the video frame;
when the gain value of the video frame is K2Setting the gain value of the pseudo-capture frame to be equal to the maximum allowable gain value of the camera when the gain value is larger than the maximum allowable gain value of the camera, and setting the exposure time of the pseudo-capture frame to be R times of the exposure time of the video frame when the R times of the exposure time of the video frame is not larger than the maximum allowable exposure time of the camera; setting an exposure time of a dummy capture frame equal to a maximum allowable exposure time of the camera when R times the exposure time of the video frame is greater than the maximum allowable exposure time of the camera, wherein,
R=K2/(gainmax/gain)
in the formula (I), the compound is shown in the specification,
r is the ratio of the exposure time of the pseudo-grab frame to the exposure time of the video frame;
gainmax-a maximum allowable gain value for the camera;
gain-the gain value of a video frame,
a second identifying unit configured to identify the detected target in the obtained pseudo-captured frame to obtain specific information;
a second adjusting unit for when obtainingAdjusting K when the detected target cannot be successfully identified in the obtained pseudo-capture frame2Until the detected object is successfully identified therein.
Optionally, the monitoring module comprises:
the first judgment unit is used for acquiring the brightness value of the video frame when the detected target is successfully identified in the video frame, and judging whether the brightness value of the video frame is in a preset brightness range or not;
a first processing unit to:
when the brightness value of the video frame is judged to be out of the preset brightness range and smaller than the minimum value of the preset brightness range, increasing the expected brightness value of the video frame, and adjusting the exposure time and/or the gain value of the video frame according to the increased expected brightness value until the brightness value of the video frame is in the preset brightness range;
when the brightness value of the video frame is judged to be out of the preset brightness range and larger than the maximum value of the preset brightness range, reducing the expected brightness value of the video frame, and adjusting the exposure time and/or the gain value of the video frame according to the reduced expected brightness value until the brightness value of the video frame is in the preset brightness range;
and the first monitoring unit is used for monitoring the identified target when the brightness value of the video frame or the brightness value of the video frame is in the preset brightness range.
Optionally, the monitoring module comprises:
the second judgment unit is used for acquiring the brightness value of the video frame when the detected target is successfully identified in the video frame, and judging whether the difference value between the brightness value of the video frame and the expected brightness value is within a preset target range;
a second processing unit to:
when the difference value between the brightness value of the video frame and the expected brightness value is judged to be not in the preset target range and larger than the expected brightness value, reducing the exposure time and/or the gain value of the video frame until the difference value between the brightness value of the video frame and the expected brightness value is in the preset target range;
when the difference value between the brightness value of the video frame and the expected brightness value is judged to be not in the preset target range and smaller than the expected brightness value, increasing the exposure time and/or the gain value of the video frame until the difference value between the brightness value of the video frame and the expected brightness value is in the preset target range;
and the second monitoring unit is used for monitoring the identified target when the brightness value of the video frame or the difference value between the brightness value of the video frame and the expected brightness value is within the preset target range.
Alternatively, the determining module may determine that the detected object cannot be successfully identified when the number of times of successive unsuccessful identification of the detected object in the plurality of video frames is greater than a preset number of times.
In a third aspect, the present invention also provides an apparatus for monitoring an object, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the method provided in the first aspect is implemented.
The technical scheme provided by the embodiment of the invention has the beneficial effects that:
the invention provides a method, a device and equipment for monitoring a target, which are used for adjusting the exposure time and/or the gain value of a pseudo-capture frame to obtain the pseudo-capture frame and identifying the target in the pseudo-capture frame when the detected target cannot be successfully identified in a video frame. When an object is successfully identified in a certain pseudo-snapshot frame, the brightness value of the pseudo-snapshot frame is set as the expected brightness value of the video frame, and the object can be successfully identified in the video frame under the expected brightness value. The method and the device provided by the invention can effectively deal with the abnormal exposure condition in the global exposure mode, and improve the capability and the efficiency of successfully identifying the target in the monitoring environment, so that the camera can smoothly monitor the target; the requirement of target identification is met by controlling the expected brightness value of the video frame, and the change amplitude of the expected brightness value is small under general conditions, so that the forward and backward light compensation is not influenced; the camera is not required to be judged to be in a forward light state or a backward light state currently, so that the adjustment failure caused by errors in forward and backward light judgment is avoided; in the forward and backward light environment, the exposure of the camera can meet the requirement of target identification by using the result of the false snapshot.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a flowchart illustrating a method for monitoring a target according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for monitoring a target according to a second embodiment of the present invention;
FIG. 3 is a flowchart of a first manner of adjusting the exposure time and/or gain value of a dummy capture frame according to a second embodiment of the present invention;
FIG. 4 is a flowchart of a second way to adjust the exposure time and/or gain value of a dummy capture frame according to a second embodiment of the present invention;
FIG. 5 is a flowchart illustrating a first method of monitoring a target according to a second embodiment of the present invention;
fig. 6 is a flowchart of a second way of monitoring a target according to a second embodiment of the present invention;
FIG. 7 is a block diagram of an apparatus for monitoring a target according to a third embodiment of the present invention;
FIG. 8 is a block diagram of an apparatus for monitoring a target according to a fourth embodiment of the present invention;
fig. 9 is a block diagram of a first dummy capture module according to a fourth embodiment of the present invention;
fig. 10 is a block diagram of a second dummy capture module according to a fourth embodiment of the present invention;
fig. 11 is a block diagram of a first monitoring module according to a fourth embodiment of the present invention;
fig. 12 is a block diagram of a second monitoring module according to a fourth embodiment of the present invention.
Detailed Description
In order to make the technical solutions and advantages of the present invention clearer, the following will describe embodiments of the present invention in further detail with reference to the accompanying drawings.
Example one
The present embodiment provides a method for monitoring an object, as shown in fig. 1, including S101, S102, S103, S104, and S105.
S101: an object is detected in a video frame.
S102: it is determined whether the detected object can be successfully identified in the video frame to obtain the specific information.
S103: when the detected object cannot be successfully identified in the video frame, the exposure time and/or gain value of the dummy capture frame is adjusted to obtain the dummy capture frame until the detected object is successfully identified in the dummy capture frame.
S104: setting a desired luminance value of the video frame to a luminance value of a pseudo-capture frame in which the detected target is successfully identified, and adjusting an exposure time and/or a gain value of the video frame according to the desired luminance value.
S105: and identifying the detected target in the video frame, and monitoring the target which is successfully identified.
In this way, when a detected object cannot be successfully identified in a video frame, the exposure time and/or gain value of the pseudo-capture frame is adjusted to obtain the pseudo-capture frame, and the object is identified in the pseudo-capture frame. When an object is successfully identified in a certain pseudo-snapshot frame, the brightness value of the pseudo-snapshot frame is set as the expected brightness value of the video frame, and the object can be successfully identified in the video frame under the expected brightness value. The method provided by the embodiment can effectively cope with the abnormal exposure condition in the global exposure mode, and improve the capability and efficiency of successfully identifying the target in the monitoring environment, so that the camera can smoothly monitor the target. The requirement of target identification is met by controlling the expected brightness value of the video frame, and the change amplitude of the expected brightness value is small under general conditions, so that the forward and backward light compensation is not influenced; the condition that the camera is in a forward light state or a backward light state at present does not need to be judged, and the problem that the target cannot be identified due to the fact that the forward light and backward light judgment is wrong and the compensation fails is avoided; in the forward and backward light environment, the exposure of the camera can meet the requirement of target identification by using the result of the false snapshot.
Example two
The present embodiment provides a method for monitoring an object, as shown in fig. 2, including steps S201, S202, S203, S204, and S205.
Step S201: an object is detected in a video frame.
The video frame refers to a video picture acquired by a camera from a shot. In the present application, the mentioned video frame refers to a currently acquired video frame when the video frame is subjected to target detection, target identification and parameter acquisition; when the parameters of the video frame are adjusted, the video frame to be acquired later is referred to; sometimes video frames are used only as a limiting term and not to refer to actual video frames. Meanwhile, in this context, the mentioned video frames may be the same video frame or different video frames as needed, and those skilled in the art can determine or select the reference object of the video frame according to the scene.
The camera (which may also be other devices that control the camera or feed back information to the camera) performs real-time detection on the video frames, and determines whether there is a target to be monitored in the captured video frames. For example, a camera on a road detects whether a license plate of a car exists in a video frame; or when a person needs to be detected, the camera detects whether the face exists in the video frame.
Step S202: it is determined whether the detected object can be successfully identified in the video frame to obtain the specific information.
Identifying an object refers to a process of acquiring specific information of the detected object when the object is detected in a video frame, and the specific information generally refers to information that can identify the object to distinguish other objects of the same type. For example, when a camera on the road detects that a license plate of an automobile exists in a video frame, the license plate of the automobile is identified to obtain the license plate number of the automobile, and the identification is considered to be successful or specific information is obtained; when a camera for detecting a person detects that a face exists in a video frame, the face is identified to obtain information of facial features of the face, and the identification is considered to be successful or specific information is obtained.
When the detected target is successfully identified, go to step S205; when the detected object cannot be successfully identified, the flow proceeds to step S203.
Step S203: when the detected target cannot be successfully identified, the exposure time and/or gain value of the pseudo-capture frame is adjusted to obtain the pseudo-capture frame until the detected target is successfully identified in the pseudo-capture frame.
When the brightness of the light in the area where the object is located is too strong or too weak, it may result in the inability to successfully identify the object detected in the video frame.
In this step, optionally, when the number of times of successively unsuccessfully recognizing the detected object in the plurality of video frames is greater than a preset number of times, it is determined that the detected object cannot be successfully recognized. The number of times of successively unsuccessfully recognizing the detected target in the plurality of video frames is greater than the preset number of times, and it can be determined that the reason for the failure in recognizing the target is caused by the external environment, rather than the failure in recognizing the target caused by the camera being inaccurate at one time by chance. At this time, it is necessary to identify the target by means of the pseudo-capture frame.
When acquiring a pseudo-captured frame, the shutter and/or gain is different from the video frame, and the frame rate of the video frame is reduced. Unlike video frames, pseudo-snap frames are not saved as surveillance videos, and only are target-recognized by the internal program of the camera. And light supplement operation is not carried out in the process of obtaining the pseudo capture frame. If the light supplement operation is performed while the camera is monitoring the target, the attention of the target may be drawn. And in the process of obtaining the pseudo capture frame, the light supplementing operation is not needed, the attention of the target is not aroused, and the target can be better monitored.
In this step, the meaning of adjusting the exposure time and/or the gain value of the pseudo-capture frame is to first adjust (initially set) the exposure time and/or the gain value of the pseudo-capture frame on the basis of the exposure time and/or the gain value of the video frame, then acquire the pseudo-capture frame, and adjust the exposure time and/or the gain value again to acquire a new pseudo-capture frame if the acquired pseudo-capture frame is not satisfactory. Two alternative ways of adjustment that may be used in the present application are described below.
The first way is to make an adjustment assuming that the target recognition failure is due to too strong brightness (e.g., taillight) of the monitored environment: as shown in fig. 3, adjusting the exposure time and/or the gain value of the dummy capture frame in step S203 to obtain the dummy capture frame until the detected target is successfully identified in the dummy capture frame may be achieved through sub-steps S2031 to S2034.
Substep S2031: selecting a ratio K of the brightness value of the video frame to the brightness value of the pseudo-capture frame1
Substep S2032: setting an exposure time of a dummy capture frame equal to K of an exposure time of a video frame1One-fourth and the gain value of the pseudo-snapshot frame is equal to the gain value of the video frame, or K is set for the gain value of the pseudo-snapshot frame to be equal to the gain value of the video frame1And the exposure time of the pseudo-capture frame is equal to the exposure time of the video frame to obtain the pseudo-capture frame.
Substep S2033: the detected object is identified in the obtained pseudo-captured frame to obtain specific information.
Substep S2034: adjusting K when a detected object cannot be successfully identified in the obtained pseudo-captured frame1Until the detected object is successfully identified therein.
Wherein, K1Is a positive number greater than 1 in the first predetermined interval, for example, the first predetermined interval may be (1, 128)]Or (1, 256)]。K1The maximum value of (a) may be a ratio of the luminance value of the video frame to a minimum allowed desired luminance value of the video frame, and the minimum value may be a ratio of the luminance value of the video frame to a maximum allowed desired luminance value of the video frame.
In the adjustment of K1When the value of (1) is, K can be selected first1Identifying the target in the acquired pseudo-capture frame, and if the target cannot be identified successfully, decreasing K1Continues to identify the target in the new acquired pseudo-snap frames until the target is successfully identified in a certain pseudo-snap frame. If at K1From maximum to minimumIn the process of (3), if the target cannot be successfully identified in the obtained pseudo-capture frame, it indicates that the method of S2031-S2034 cannot find the appropriate expected brightness value of the video frame in the current environment. However, the present invention is not limited thereto, and K is adjusted1The value of (c) may be gradually increased from the minimum value. K1Can be set to be small, such as two adjacent K1Is constant, e.g. 2 or 1.2, or two adjacent K1Is constant, e.g. a positive number within 10, so that missing detection is avoided, of course K1The range of values of (c) may also be a predetermined series of increasing positive numbers greater than 1.
It should be noted that the present invention is not limited thereto, and the exposure time and the gain value of the pseudo-capture frame may also be adjusted at the same time, as long as the ratio of the brightness value of the video frame to the brightness value of the pseudo-capture frame is ensured to be K1And (4) finishing.
The second way is to make an adjustment assuming that the target recognition failure is due to too weak brightness (e.g., backlight) of the monitored environment: as shown in fig. 4, adjusting the exposure time and/or the gain value of the dummy capture frame in step S203 to obtain the dummy capture frame until the detected target is successfully identified in the dummy capture frame may also be implemented by sub-steps S2031 'to S2034'.
Substep S2031': selecting the ratio K of the brightness value of the pseudo-capture frame to the brightness value of the video frame2
Substep S2032': according to K2The gain value and exposure time of the dummy capture frame are set as described below.
If K is the gain value of the video frame2Setting the gain value of the dummy capture frame equal to K of the gain value of the video frame when the gain value is not more than the maximum allowable gain value of the camera2Setting the exposure time of the pseudo-capture frame to be equal to the exposure time of the video frame;
if K is the gain value of the video frame2Setting the gain value of the dummy capture frame equal to the maximum allowable gain value of the camera when the multiple is larger than the maximum allowable gain value of the camera, and setting the dummy capture when the R multiple of the exposure time of the video frame is not larger than the maximum allowable exposure time of the cameraThe exposure time of the frame is equal to R times of the exposure time of the video frame; setting the exposure time of the dummy capture frame equal to the maximum allowable exposure time of the camera when R times the exposure time of the video frame is greater than the maximum allowable exposure time of the camera, wherein,
R=K2/(gainmax/gain)
in the formula (I), the compound is shown in the specification,
r is the ratio of the exposure time of the pseudo-grab frame to the exposure time of the video frame;
gainmax-a maximum allowable gain value for the camera;
gain-the gain value of a video frame.
Substep S2033': the detected object is identified in the obtained pseudo-captured frame to obtain specific information.
Substep S2034': adjusting K when a detected object cannot be successfully identified in the obtained pseudo-captured frame2Until the detected object is successfully identified therein.
Wherein, K2Is a positive number greater than 1 in the second predetermined interval, for example, the second predetermined interval may be (1, 128)]Or (1, 256)]。K2The maximum value of (A) is the ratio of the maximum allowable expected brightness value of the video frame to the brightness value of the video frame, the minimum value is the ratio of the minimum allowable expected brightness value of the video frame to the brightness value of the video frame, and the value of R is based on K2Calculated as the value of (c). In this embodiment, the first preset interval and the second preset interval may be different or the same.
In the adjustment of K2When the value of (1) is, K can be selected first2Identifying the target in the acquired pseudo-capture frame, and if the target cannot be identified successfully, decreasing K2Continues to identify the target in the new acquired pseudo-snap frames until the target is successfully identified in a certain pseudo-snap frame. If at K2In the process of changing from the maximum value to the minimum value, if no target can be successfully identified in the obtained pseudo-capture frame, it means that the method adopting sub-steps S2031 '-S2034' cannot find the appropriate expected brightness value of the video frame in the current environment.However, the present invention is not limited thereto, and K is adjusted2It may also be gradually increased from the minimum value. K2Can be set to be small, such as two adjacent K1Is constant, e.g. 2 or 1.2, or two adjacent K2Is constant, e.g. a positive number within 10, so that missing detection is avoided, of course K2The range of values of (c) may also be a predetermined series of increasing positive numbers greater than 1.
In the sub-step S2031 '-S2034', for the same pseudo-capture frame, the exposure time of the pseudo-capture frame may be increased first, and then the gain value of the pseudo-capture frame is adjusted as needed, but in this case, the target trailing may occur, so the gain value of the pseudo-capture frame is generally increased first, and when the required gain value of the pseudo-capture frame is greater than the maximum allowable gain value of the camera, the exposure time of the pseudo-capture frame is adjusted again.
In practice, the failure of object recognition is mostly caused by the brightness of the monitored environment where the object is located being too strong, so the first way, i.e. sub-steps S2031-S2034, can be executed first when K is reached1When none of the obtained pseudo-snap frames within the range allowed by the value of (a) can successfully identify the target, the second mode is executed, i.e., sub-steps S2031 '-S2034'. If at K2The target is not successfully recognized in the pseudo-captured frame acquired within the allowable range of the value of (a), which indicates that the target is not successfully recognized within the allowable range of the gain value and the allowable exposure time of the camera. However, the present application is not limited to this, and the first mode may be executed first, and then the second mode may be executed. Or the first mode and the second mode are performed alternately.
Step S204: setting a desired luminance value of the video frame to a luminance value of a pseudo-capture frame in which the detected target is successfully identified, and adjusting an exposure time and/or a gain value of the video frame according to the desired luminance value.
The luminance value of the dummy capture frame is determined by the exposure time and the gain value of the dummy capture frame. In step S203, the luminance value of the pseudo-capture frame is adjusted by adjusting the exposure time and the gain value of the pseudo-capture frame, and when the obtained pseudo-capture frame can successfully identify the target, step S204 is executed, that is, the luminance value of the pseudo-capture frame is detected and obtained as the expected luminance value of the video frame. The brightness value of the video frame needs to be close to the expected brightness value, so that after the expected brightness value is newly set, the exposure time and the gain value of the video frame are correspondingly adjusted to enable the brightness value of the video frame to be consistent with the expected brightness value, and at the moment, the detected target can be successfully identified in the video frame, so that the camera can smoothly monitor the target. This step is followed by step S205.
Step S205: and identifying the detected target in the video frame, and monitoring the target which is successfully identified.
When a detected target is successfully identified in a video frame, the camera may monitor by capturing or dynamically tracking the target.
In this step, the monitoring of the target may also be better accomplished through some operations. Monitoring of objects is not only reflected in automatically identifying objects, but also requires consideration of whether an observer viewing the video can observe a clear object (i.e., an identified object) on the video in real time or at a later time. In a surveillance environment, the brightness required by the observer to identify objects while viewing the video of the camera has a range of suitable brightness values, and therefore a range of brightness values can be preset within which the observer is deemed to be able to successfully identify (or view clearly) objects detected within the video frame. Accordingly, monitoring of the target can be better accomplished in the following two ways.
The first method uses a preset brightness range as a basis: as shown in fig. 5, when a detected object is successfully identified, better monitoring of the successfully identified object may be achieved through sub-steps S2051-S2054.
Substep S2051: and when the detected target is successfully identified in the video frame, acquiring the brightness value of the video frame, and judging whether the brightness value of the video frame is in a preset brightness range.
Substep S2052: when the brightness value of the video frame is judged to be not in the preset brightness range and smaller than the minimum value of the preset brightness range, the expected brightness value of the video frame is increased, the exposure time and/or the gain value of the video frame are adjusted according to the increased expected brightness value until the brightness value of the video frame is in the preset brightness range, namely after the exposure time and/or the gain value of the video frame are adjusted according to the increased expected brightness value each time, if the brightness value of the video frame is detected not to be in the preset brightness range, the expected brightness value of the video frame is increased again, and adjustment and detection are carried out again.
After the desired brightness value of the video frame is increased, the camera adjusts the exposure time and the gain value when acquiring the video frame so that the brightness value of the acquired video frame is equal to the desired brightness value.
Step S2053: when the brightness value of the video frame is judged to be not in the preset brightness range and larger than the maximum value of the preset brightness range, the expected brightness value of the video frame is reduced, the exposure time and/or the gain value of the video frame are adjusted according to the reduced expected brightness value until the brightness value of the video frame is in the preset brightness range, namely after the exposure time and/or the gain value of the video frame are adjusted according to the reduced expected brightness value each time, if the brightness value of the video frame is detected not to be in the preset brightness range, the expected brightness value of the video frame is reduced again, and the adjustment and the detection are carried out again.
Substep S2054: and when the brightness value of the video frame is within a preset brightness range, monitoring the identified target.
When the first mode is used, the expected brightness value of the video frame is automatically adjusted according to the comparison result of the brightness value of the video frame and the preset brightness range, so that an observer can more easily and successfully identify or clearly observe the target in the surveillance video.
The second method is based on a preset target range of the difference between the brightness value of the video frame and the expected brightness value: as shown in fig. 6, when a detected object is successfully identified in a video frame, in order to better monitor the successfully identified object, it can also be implemented by sub-steps S2051 '-S2054'.
Substep S2051': when the detected target is successfully identified in the video frame, the brightness value of the video frame is obtained, and whether the difference value between the brightness value of the video frame and the expected brightness value is within a preset target range or not is judged.
Substep S2052': and when the difference value between the brightness value of the video frame and the expected brightness value is judged to be not in the preset target range and is larger than the expected brightness value, reducing the exposure time and/or the gain value of the video frame until the difference value between the brightness value of the video frame and the expected brightness value is in the preset target range.
Substep S2053': and when the difference value between the brightness value of the video frame and the expected brightness value is judged to be not in the preset target range and smaller than the expected brightness value, increasing the exposure time and/or the gain value of the video frame until the difference value between the brightness value of the video frame and the expected brightness value is in the preset target range.
Substep S2054': and when the brightness value of the video frame or the difference value between the brightness value of the video frame and the expected brightness value is in a preset target range, monitoring the identified target.
When the second mode is used, the exposure time and/or the gain value are automatically adjusted according to the difference value between the brightness value of the video frame and the expected brightness value and the preset target range, so that an observer can more easily and successfully identify or observe the target in the surveillance video clearly.
The present embodiment provides a method for monitoring a target, which can change an expected brightness value of a video frame to make the brightness value of the video frame within a preset brightness range if the brightness value of the video frame is not within the preset brightness range when the target in the video frame is successfully identified; if the difference value between the brightness value of the video frame and the expected brightness value is not in the preset target range, the exposure time or the gain value of the camera can be adjusted according to the difference value, so that an observer can more easily and successfully identify the target in the video frame. When the target in the video frame cannot be successfully identified, the brightness value of the pseudo-capture frame is adjusted so that the target in the pseudo-capture frame is successfully identified, and the desired brightness value of the video frame is set to the brightness value of the pseudo-capture frame in which the detected target is successfully identified, so that the target in the video frame can be successfully identified at this brightness. The method for monitoring the target provided by the embodiment can effectively cope with abnormal exposure conditions in the global exposure mode, and improve the capability and efficiency of successfully identifying the target in the video frame; the requirement of target identification is met by controlling the expected brightness value of the video frame, and the change amplitude of the expected brightness value is small under general conditions, so that the forward and backward light compensation is not influenced; the condition that the camera is in a forward light state or a backward light state at present does not need to be judged, and the problem that the target cannot be identified due to the fact that the forward light and backward light judgment is wrong and the compensation fails is avoided; in the forward and backward light environment, the exposure of the camera can meet the requirement of target identification by using the result of the false snapshot.
EXAMPLE III
Corresponding to the first embodiment, the present embodiment provides an apparatus for monitoring a target, as shown in fig. 7, including a detecting module 301, a determining module 302, a pseudo-snapping module 303, a setting module 304, and a monitoring module 305.
A detection module 301, configured to detect a target in a video frame.
A determining module 302, configured to determine whether the detected target can be successfully identified in the video frame to obtain the specific information.
A pseudo-snap module 303, configured to, when the detected target cannot be successfully identified in the video frame, adjust an exposure time and/or a gain value of the pseudo-snap frame to obtain a pseudo-snap frame until the detected target is successfully identified in the pseudo-snap frame.
The setting module 304 sets the expected brightness value of the video frame to the brightness value of the pseudo-capture frame in which the detected target is successfully identified, and adjusts the exposure time and/or the gain value of the video frame according to the expected brightness value.
And a monitoring module 305, configured to identify a detected target in the video frame, and monitor the target that is successfully identified.
Since the present embodiment corresponds to the first embodiment, the beneficial effects brought by the present embodiment are the same, and are not described herein again.
Example four
Corresponding to the second embodiment, this embodiment provides an apparatus for monitoring a target, as shown in fig. 8, including a detecting module 401, a determining module 402, a pseudo-snapping module 403, a setting module 404, and a monitoring module 405. Each module is described in detail below.
A detection module 401, configured to detect a target in a video frame.
A determining module 402, configured to determine whether the detected target can be successfully identified in the video frame to obtain the specific information.
When the determination module 402 determines that the detected target can be successfully identified, the monitoring module 405 is invoked; when it is determined that the detected target cannot be successfully identified, the pseudo-snap module 403 is invoked.
A pseudo-snapshot module 403, configured to, when the detected target cannot be successfully identified, adjust an exposure time and/or a gain value of a pseudo-snapshot frame to obtain the pseudo-snapshot frame until the detected target is successfully identified in the pseudo-snapshot frame.
The determining module 402 is configured to determine that the detected target cannot be successfully identified when the number of times that the target is detected in the plurality of consecutive unidentified video frames is greater than a preset number of times. If the number of times of the detected target being successively and unsuccessfully identified in the plurality of video frames is greater than the preset number of times, the determining module 402 may determine that the reason for the target identification failure is caused by the external environment, rather than the target identification failure caused by the camera being accidentally inaccurate in one-time identification.
As shown in fig. 9, the pseudo-snap module 403 may include a first selecting unit 4031, a first setting unit 4032, a first identifying unit 4033 and a first adjusting unit 4034.
A first selecting unit 4031 for selecting a ratio K of the luminance value of the video frame to the luminance value of the pseudo-capture frame1,K1Is a positive number greater than 1 in the first preset interval.
A first setting unit 4032 for setting K where the exposure time of the dummy capture frame is equal to the exposure time of the video frame1One-fourth and the gain value of the pseudo-snapshot frame is equal to the gain value of the video frame, or K is set for the gain value of the pseudo-snapshot frame to be equal to the gain value of the video frame1And the exposure time of the pseudo-capture frame is equal to the exposure time of the video frame to obtain the pseudo-capture frame.
A first identifying unit 4033 for identifying the detected object in the obtained pseudo-captured frame to obtain specific information.
A first adjustment unit 4034 for adjusting K when the detected target cannot be successfully identified in the obtained pseudo-captured frame1Until the detected object is successfully identified therein.
Wherein, K1The maximum value of (a) may be a ratio of the luminance value of the video frame to a minimum allowed desired luminance value of the video frame, and the minimum value may be a ratio of the luminance value of the video frame to a maximum allowed desired luminance value of the video frame.
As shown in fig. 10, the pseudo-snapshot module 403 may also include a second selection unit 4031 ', a second setting unit 4032', a second recognition unit 4033 'and a second adjustment unit 4034'.
A second selecting unit 4031' for selecting a ratio K of luminance values of the pseudo-captured frame to the video frame2,K2Is a positive number greater than 1 in the second preset interval.
A second setup unit 4032' for setting up the data according to K2And setting the gain value and the exposure time of the pseudo-capture frame. The specific operation is as follows:
if K is the gain value of the video frame2Setting the gain value of the pseudo-capture frame to be K of the gain value of the video frame when the gain value is not more than the maximum allowable gain value of the camera2Setting the exposure time of the pseudo-capture frame to be equal to the exposure time of the video frame;
if K is the gain value of the video frame2Setting the gain value of the pseudo-capture frame to be equal to the maximum allowable gain value of the camera when the multiple is larger than the maximum allowable gain value of the camera, and setting the exposure time of the pseudo-capture frame to be equal to R times of the exposure time of the video frame when the R times of the exposure time of the video frame is not larger than the maximum allowable exposure time of the camera; setting the exposure time of the dummy capture frame equal to the maximum allowable exposure time of the camera when R times the exposure time of the video frame is greater than the maximum allowable exposure time of the camera, wherein,
R=K2/(gainmax/gain)
in the formula (I), the compound is shown in the specification,
r is the ratio of the exposure time of the pseudo-grab frame to the exposure time of the video frame;
gainmax-a maximum allowable gain value for the camera;
gain-the gain value of a video frame.
A second identifying unit 4033' for identifying the detected object in the obtained pseudo-captured frame to obtain specific information.
A second adjustment unit 4034' for adjusting K when the detected object cannot be successfully identified in the obtained pseudo-captured frame2Until the detected object is successfully identified therein.
Wherein, K2The maximum value of (d) may be a ratio of a maximum allowed desired luminance value of the video frame to a luminance value of the video frame, and the minimum value may be a ratio of a minimum allowed desired luminance value of the video frame to a luminance value of the video frame.
In practice, the failure of the target recognition is mostly caused by the brightness of the monitored environment where the target is located being too strong, so that the four units 4031-4034 can be called generally when K is1The target can not be successfully identified by the pseudo-snapshot frames acquired within the range allowed by the value of 4031 '-4034', and then the four units are called. However, the present application is not limited thereto, and may also call the four units 4031 '-4034' first, and then call the four units 4031-4034.
A setting module 404 for setting the desired luminance value of the video frame to a luminance value of a pseudo-capture frame in which the detected object was successfully identified.
When the target can be successfully identified in the pseudo-capturing frame obtained by the pseudo-capturing module 403, the setting module 404 is called, that is, the brightness value of the pseudo-capturing frame is detected and obtained as the expected brightness value of the video frame. The brightness value of the video frame needs to be close to the expected brightness value, so that after the expected brightness value is newly set, the exposure time and the gain value of the video frame are correspondingly adjusted to enable the brightness value of the video frame to be consistent with the expected brightness value, and at the moment, the detected target can be successfully identified in the video frame, so that the camera can smoothly monitor the target.
And a monitoring module 405, configured to identify a detected target in the video frame, and monitor the target that is successfully identified.
In this embodiment, when the detected target is successfully identified in the obtained video frame, the monitoring module 405 directly monitors the target.
As shown in fig. 11, as a first possible configuration, the monitoring module 405 may include a first determination unit 4051, a first processing unit 4052, and a first monitoring unit 4053.
The first determining unit 4051 is configured to, when the detected target is successfully identified in the video frame, acquire a luminance value of the video frame, and determine whether the luminance value of the video frame is within a preset luminance range.
The first processing unit 4052, configured to increase an expected luminance value of the video frame when it is determined that the luminance value of the video frame is not within the preset luminance range and is smaller than the minimum value of the preset luminance range, and adjust an exposure time and/or a gain value of the video frame according to the increased expected luminance value until the luminance value of the video frame is within the preset luminance range;
and when the brightness value of the video frame is judged to be not in the preset brightness range and is larger than the maximum value of the preset brightness range, reducing the expected brightness value of the video frame, and adjusting the exposure time and/or the gain value of the video frame according to the reduced expected brightness value until the brightness value of the video frame is in the preset brightness range.
The first monitoring unit 4053 is configured to monitor the identified target when the brightness value of the video frame or the brightness value of the video frame is within a preset brightness range.
As shown in fig. 12, as a second possible configuration, the monitoring module 405 may also include a second determination unit 4051 ', a second processing unit 4052 ' and a second monitoring unit 4053 '.
The second determination unit 4051' is configured to, when the detected target is successfully identified in the video frame, acquire a luminance value of the video frame, and determine whether a difference between the luminance value of the video frame and the desired luminance value is within a preset target range.
The second processing unit 4052' is configured to, when it is determined that the difference between the luminance value of the video frame and the desired luminance value is not within the preset target range and is greater than the desired luminance value, decrease the exposure time and/or the gain value of the video frame until the difference between the luminance value of the video frame and the desired luminance value is within the preset target range;
and when the difference value between the brightness value of the video frame and the expected brightness value is judged to be not in the preset target range and smaller than the expected brightness value, increasing the exposure time and/or the gain value of the video frame until the difference value between the brightness value of the video frame and the expected brightness value is in the preset target range.
The second monitoring unit 4053' is configured to monitor the identified target when the brightness value of the video frame or the difference between the brightness value of the video frame and the expected brightness value is within the preset target range.
The present embodiment and the second embodiment are based on the same inventive concept, and are device embodiments corresponding to the method embodiment, so those skilled in the art should understand that the description of the first embodiment is also applicable to the present embodiment, and some technical details are not described in detail in the present embodiment.
Since the second embodiment corresponds to the first embodiment, the beneficial effects brought by the second embodiment are the same, and are not described herein again.
EXAMPLE five
The embodiment provides a device for monitoring an object, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the computer program to implement the method in the first embodiment and the second embodiment.
In this embodiment, the monitoring device may be integrated with the camera or the camera itself, or may be a control device that controls the camera.
In the embodiments provided in the present application, it should be understood that the method and apparatus provided are merely illustrative, for example, the division of the steps and modules is only one logical function division, and other division manners may be available in actual implementation. The method and the device can be realized by running corresponding software and hardware through a computer device. The terms "first", "second", etc. are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated.
The above description is only for facilitating the understanding of the technical solutions of the present invention by those skilled in the art, and is not intended to limit the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (13)

1. A method of monitoring an object, comprising:
detecting a target in a video frame;
judging whether the detected target can be successfully identified in the video frame or not to obtain specific information;
when the detected target cannot be successfully identified in the video frame, adjusting the exposure time and/or the gain value of a pseudo-snapshot frame to obtain the pseudo-snapshot frame until the detected target is successfully identified in the pseudo-snapshot frame, wherein the pseudo-snapshot frame is used for carrying out target identification on the target;
setting an expected brightness value of the video frame as a brightness value of a pseudo-capture frame in which the detected target is successfully identified, and adjusting an exposure time and/or a gain value of the video frame according to the expected brightness value of the video frame; identifying the detected target in a video frame, and monitoring the target which is successfully identified;
the monitoring of the successfully identified target includes:
when the detected target is successfully identified in the video frame, acquiring a brightness value of the video frame;
judging whether the brightness value of the video frame meets a preset condition or not;
the preset condition is that the brightness value of the video frame is within a preset brightness range, and the preset brightness range is the brightness range within which the observer successfully identifies the target; or the preset condition is that a difference value between a brightness value of a video frame and an expected brightness value is within a preset target range, the preset target range is a target range in which the observer successfully identifies the target, and the expected brightness value is an expected brightness value in which the observer successfully identifies the target;
and when the brightness value of the video frame does not meet the preset condition, adjusting the brightness value of the video frame to the brightness value meeting the preset condition by adjusting the exposure time and/or the gain value of the video frame, and monitoring the target successfully identified.
2. The method of monitoring an object according to claim 1, wherein said adjusting an exposure time and/or a gain value of a dummy capture frame to obtain a dummy capture frame until a successful identification of the detected object in the dummy capture frame comprises:
selecting a ratio K of the brightness value of the video frame to the brightness value of the pseudo-capture frame1Said K is1Is a positive number greater than 1 in a first preset interval;
setting an exposure time of a dummy capture frame equal to K of an exposure time of a video frame1One-fourth and the gain value of the pseudo-snapshot frame is equal to the gain value of the video frame, or K is set for the gain value of the pseudo-snapshot frame to be equal to the gain value of the video frame1One-fourth and the exposure time of the pseudo-capture frame is equal to the exposure time of the video frame to obtain the pseudo-capture frame;
identifying the detected target in the obtained pseudo-captured frame to obtain specific information;
adjusting K when the detected target cannot be successfully identified in the obtained pseudo-captured frame1Until the detected object is successfully identified therein.
3. The method of monitoring an object according to claim 1, wherein said adjusting an exposure time and/or a gain value of a dummy capture frame to obtain a dummy capture frame until a successful identification of the detected object in the dummy capture frame comprises:
selecting the ratio K of the brightness values of the pseudo-capture frame and the video frame2Said K is2Is a secondA positive number greater than 1 within a preset interval;
when the gain value of the video frame is K2Setting the gain value of the dummy capture frame equal to K of the gain value of the video frame when the gain value is not more than the maximum allowable gain value of the camera2Setting the exposure time of the pseudo-capture frame to be equal to the exposure time of the video frame;
when the gain value of the video frame is K2Setting the gain value of the pseudo-capture frame to be equal to the maximum allowable gain value of the camera when the gain value is larger than the maximum allowable gain value of the camera, and setting the exposure time of the pseudo-capture frame to be equal to R times of the exposure time of the video frame when the R times of the exposure time of the video frame is not larger than the maximum allowable exposure time of the camera; setting an exposure time of a dummy capture frame equal to a maximum allowable exposure time of the camera when R times the exposure time of the video frame is greater than the maximum allowable exposure time of the camera, wherein,
R=K2/(gainmax/gain)
in the formula (I), the compound is shown in the specification,
r is the ratio of the exposure time of the pseudo-grab frame to the exposure time of the video frame;
gainmax-a maximum allowable gain value for the camera;
gain-the gain value of a video frame,
identifying the detected target in the obtained pseudo-captured frame to obtain specific information;
adjusting K when the detected target cannot be successfully identified in the obtained pseudo-captured frame2Until the detected object is successfully identified therein.
4. The method of claim 1, wherein the preset condition is that a brightness value of a video frame is within the preset brightness range, and when the brightness value of the video frame does not satisfy the preset condition, the monitoring of the target successfully identified by adjusting the brightness value of the video frame to the brightness value of the video frame satisfying the preset condition by adjusting an exposure time and/or a gain value of the video frame comprises:
when the brightness value of the video frame is judged to be smaller than the minimum value of the preset brightness range, increasing the expected brightness value of the video frame, and adjusting the exposure time and/or the gain value of the video frame according to the increased expected brightness value of the video frame until the brightness value of the video frame is within the preset brightness range;
when the brightness value of the video frame is judged to be larger than the maximum value of the preset brightness range, reducing the expected brightness value of the video frame, and adjusting the exposure time and/or the gain value of the video frame according to the reduced expected brightness value of the video frame until the brightness value of the video frame is in the preset brightness range;
and when the brightness value of the video frame is within the preset brightness range, monitoring the identified target.
5. The method of claim 1, wherein the preset condition is that a difference between a brightness value of a video frame and the expected brightness value is within the preset target range, and when the brightness value of the video frame does not satisfy the preset condition, the monitoring of the target successfully identified by adjusting the brightness value of the video frame to the brightness value satisfying the preset condition by adjusting an exposure time and/or a gain value of the video frame comprises:
when the brightness value of the video frame is judged to be larger than the expected brightness value, reducing the exposure time and/or the gain value of the video frame until the difference value between the brightness value of the video frame and the expected brightness value is within the preset target range;
when the brightness value of the video frame is judged to be smaller than the expected brightness value, increasing the exposure time and/or the gain value of the video frame until the difference value between the brightness value of the video frame and the expected brightness value is within the preset target range;
and monitoring the identified target when the difference value between the brightness value of the video frame and the expected brightness value is within the preset target range.
6. The method of monitoring an object according to claim 1, wherein said determining whether the detected object is successfully identified in a video frame comprises:
when the number of times of successively unsuccessfully recognizing the detected object in the plurality of video frames is greater than a preset number of times, it is determined that the detected object cannot be successfully recognized.
7. An apparatus for monitoring an object, comprising:
the detection module is used for detecting a target in the video frame;
a judging module for judging whether the detected target can be successfully identified in the video frame to obtain specific information;
a pseudo-snapshot module, configured to, when the detected target cannot be successfully identified in the video frame, adjust an exposure time and/or a gain value of the pseudo-snapshot frame to obtain a pseudo-snapshot frame until the detected target is successfully identified in the pseudo-snapshot frame, where the pseudo-snapshot frame is used to perform target identification on the target;
the setting module is used for setting the expected brightness value of the video frame as the brightness value of the pseudo-capture frame in which the detected target is successfully identified, and adjusting the exposure time and/or the gain value of the video frame according to the expected brightness value of the video frame;
the monitoring module is used for identifying the detected target in the video frame and monitoring the target which is successfully identified;
the monitoring module is further configured to:
when the detected target is successfully identified in the video frame, acquiring a brightness value of the video frame; judging whether the brightness value of the video frame meets a preset condition or not; the preset condition is that the brightness value of the video frame is within a preset brightness range, and the preset brightness range is the brightness range within which the observer successfully identifies the target; or the preset condition is that a difference value between a brightness value of a video frame and an expected brightness value is within a preset target range, the preset target range is a target range in which the observer successfully identifies the target, and the expected brightness value is an expected brightness value in which the observer successfully identifies the target;
and when the brightness value of the video frame does not meet the preset condition, adjusting the brightness value of the video frame to the brightness value meeting the preset condition by adjusting the exposure time and/or the gain value of the video frame, and monitoring the target successfully identified.
8. The apparatus for monitoring the target according to claim 7, wherein the pseudo-snapshot module comprises:
a first selecting unit for selecting a ratio K of a luminance value of the video frame to a luminance value of the pseudo-capture frame1Said K is1Is a positive number greater than 1 in a first preset interval;
a first setting unit for setting K for setting an exposure time of the dummy capture frame equal to an exposure time of the video frame1One-fourth and the gain value of the pseudo-snapshot frame is equal to the gain value of the video frame, or K is set for the gain value of the pseudo-snapshot frame to be equal to the gain value of the video frame1One-fourth and the exposure time of the pseudo-capture frame is equal to the exposure time of the video frame to obtain the pseudo-capture frame;
a first identifying unit configured to identify the detected target in the obtained pseudo-captured frame to obtain specific information;
a first adjusting unit for adjusting K when the detected object cannot be successfully identified in the obtained pseudo-captured frame1Until the detected object is successfully identified therein.
9. The apparatus for monitoring the target according to claim 7, wherein the pseudo-snapshot module comprises:
a second selecting unit for selecting a ratio K of luminance values of the pseudo-captured frame to the video frame2Said K is2Is a positive number greater than 1 in a second preset interval;
a second setting unit for setting a gain value K of the video frame2Not greater than the maximum allowable gain of the cameraWhen the value is equal to K, setting the gain value of the false capture frame equal to the gain value of the video frame2Setting the exposure time of the pseudo-capture frame to be equal to the exposure time of the video frame;
when the gain value of the video frame is K2Setting the gain value of the pseudo-capture frame to be equal to the maximum allowable gain value of the camera when the gain value is larger than the maximum allowable gain value of the camera, and setting the exposure time of the pseudo-capture frame to be R times of the exposure time of the video frame when the R times of the exposure time of the video frame is not larger than the maximum allowable exposure time of the camera; setting an exposure time of a dummy capture frame equal to a maximum allowable exposure time of the camera when R times the exposure time of the video frame is greater than the maximum allowable exposure time of the camera, wherein,
R=K2/(gainmax/gain)
in the formula (I), the compound is shown in the specification,
r is the ratio of the exposure time of the pseudo-grab frame to the exposure time of the video frame;
gainmax-a maximum allowable gain value for the camera;
gain-the gain value of a video frame,
a second identifying unit configured to identify the detected target in the obtained pseudo-captured frame to obtain specific information;
a second adjusting unit for adjusting K when the detected object cannot be successfully identified in the obtained pseudo-captured frame2Until the detected object is successfully identified therein.
10. The apparatus of claim 7, wherein the preset condition is that the brightness value of the video frame is within the preset brightness range, and the monitoring module comprises:
a first processing unit to:
when the brightness value of the video frame is judged to be smaller than the minimum value of the preset brightness range, increasing the expected brightness value of the video frame, and adjusting the exposure time and/or the gain value of the video frame according to the increased expected brightness value of the video frame until the brightness value of the video frame is within the preset brightness range;
when the brightness value of the video frame is judged to be larger than the maximum value of the preset brightness range, reducing the expected brightness value of the video frame, and adjusting the exposure time and/or the gain value of the video frame according to the reduced expected brightness value of the video frame until the brightness value of the video frame is in the preset brightness range;
and the first monitoring unit is used for monitoring the identified target when the brightness value of the video frame is within the preset brightness range.
11. The apparatus for monitoring a target according to claim 7, wherein the preset condition is that a difference between a brightness value of a video frame and the desired brightness value is within the preset target range, the monitoring module comprises:
a second processing unit to:
when the brightness value of the video frame is judged to be larger than the expected brightness value, reducing the exposure time and/or the gain value of the video frame until the difference value between the brightness value of the video frame and the expected brightness value is within the preset target range;
when the brightness value of the video frame is judged to be smaller than the expected brightness value, increasing the exposure time and/or the gain value of the video frame until the difference value between the brightness value of the video frame and the expected brightness value is within the preset target range;
and the second monitoring unit is used for monitoring the identified target when the difference value between the brightness value of the video frame and the expected brightness value is within the preset target range.
12. The apparatus of claim 7, wherein the determining module is configured to determine that the detected object cannot be successfully identified when the number of consecutive unsuccessful identifications of the detected object in the plurality of video frames is greater than a preset number.
13. An apparatus for monitoring an object, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of any one of claims 1-6 when executing the program.
CN201710343815.3A 2017-05-16 2017-05-16 Method, device and equipment for monitoring target Active CN108881812B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710343815.3A CN108881812B (en) 2017-05-16 2017-05-16 Method, device and equipment for monitoring target

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710343815.3A CN108881812B (en) 2017-05-16 2017-05-16 Method, device and equipment for monitoring target

Publications (2)

Publication Number Publication Date
CN108881812A CN108881812A (en) 2018-11-23
CN108881812B true CN108881812B (en) 2021-02-09

Family

ID=64320816

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710343815.3A Active CN108881812B (en) 2017-05-16 2017-05-16 Method, device and equipment for monitoring target

Country Status (1)

Country Link
CN (1) CN108881812B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111447405B (en) * 2019-01-17 2021-10-29 杭州海康威视数字技术股份有限公司 Exposure method and device for video monitoring
CN109862283A (en) * 2019-02-19 2019-06-07 合肥泰禾光电科技股份有限公司 A kind of time for exposure automatic adjusting method and device
CN109903324B (en) * 2019-04-08 2022-04-15 京东方科技集团股份有限公司 Depth image acquisition method and device
CN112019760B (en) * 2019-05-30 2021-09-03 杭州海康威视数字技术股份有限公司 Exposure adjusting method and device, camera shooting control device and monitoring camera
CN110971835A (en) * 2019-12-24 2020-04-07 重庆紫光华山智安科技有限公司 Monitoring method and device based on double-phase exposure

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101247480A (en) * 2008-03-26 2008-08-20 北京中星微电子有限公司 Automatic exposure method based on objective area in image
JP2014075721A (en) * 2012-10-05 2014-04-24 Nikon Corp Exposure control device and optical instrument
CN106210523A (en) * 2016-07-22 2016-12-07 浙江宇视科技有限公司 A kind of exposure adjustment method and device
CN106357987A (en) * 2016-10-19 2017-01-25 浙江大华技术股份有限公司 Exposure method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101247480A (en) * 2008-03-26 2008-08-20 北京中星微电子有限公司 Automatic exposure method based on objective area in image
JP2014075721A (en) * 2012-10-05 2014-04-24 Nikon Corp Exposure control device and optical instrument
CN106210523A (en) * 2016-07-22 2016-12-07 浙江宇视科技有限公司 A kind of exposure adjustment method and device
CN106357987A (en) * 2016-10-19 2017-01-25 浙江大华技术股份有限公司 Exposure method and device

Also Published As

Publication number Publication date
CN108881812A (en) 2018-11-23

Similar Documents

Publication Publication Date Title
CN108881812B (en) Method, device and equipment for monitoring target
US9172863B2 (en) Video signal processing apparatus
US20160232652A1 (en) Automatic gain control filter in a video analysis system
EP2624538B1 (en) Image signal processing apparatus and image signal processing method
US8630453B2 (en) Image processing device, image processing method and program
US8659676B2 (en) Image analysis device and method thereof
JP5996970B2 (en) In-vehicle imaging device
US8625922B2 (en) Image processing method and program for determining whether sabotage has occurred to an image
JP5972423B2 (en) Method and apparatus for determining the need to change pixel density requirements based on changes in light conditions
US9802543B2 (en) Automobile and method for automatically adjusting rearview mirror
KR101038650B1 (en) Adaptive modeling method for background image, detecting method and system for illegal-stopping and parking vehicle using it
US20190095761A1 (en) Vicinity supervising device and method for supervising vicinity of vehicle
JP2020160804A (en) Information processing device, program, and information processing method
KR101336240B1 (en) Method and apparatus for image processing using saved image
CN113808135B (en) Image brightness abnormality detection method, electronic device, and storage medium
JP2017144086A (en) Image processing device, method, and program
CN109243179B (en) Method and device for distinguishing dynamic capture frames
JP3272696B2 (en) Outside monitoring device with fail-safe function
CN110099207B (en) Effective image calculation method for overcoming camera instability
TWI476735B (en) Abnormal classification detection method for a video camera and a monitering host with video image abnormal detection
US10848666B2 (en) Image capturing device and control method
JP2001028745A (en) External monitoring device having fail/safe function
US10178298B2 (en) Image processing device, image processing method, and recording medium for optimal trimming of a captured image
CN108989757A (en) A kind of artificial intelligence server-side system of defense and method
CN112822496B (en) Video analysis method and device

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