Summary of the invention
In view of this, the object of the present invention is to provide a kind of system and method for automatic video recording, can realize opening automatically video recording, save operating personnel's workload and the data volume of the data that reduce to record a video.
For realizing above-mentioned purpose, one embodiment of the present of invention provide a kind of system of automatic video recording, comprising:
Camera is used for the image of captured in real time area to be monitored;
Image analyzing unit; Be used to obtain the image that camera is caught; And said image is carried out analyzing and testing according to predefined alarm event detection model, when detecting the detection model that said image of catching meets alarm event, then trigger video recording equipment and record a video;
Video recording equipment is used for after receiving the triggering signal of image analyzing unit, and the image of the area to be monitored that begins camera is caught is recorded a video.
On the other hand, the embodiment of the invention also provides a kind of method of automatic video recording, comprising:
Image through camera captured in real time area to be monitored;
According to predefined alarm event detection model said image is analyzed; And said image is carried out analyzing and testing according to predefined alarm event detection model; When detecting the detection model that said image of catching meets alarm event, then trigger the image of the area to be monitored that video recording equipment begins camera is caught and record a video.
Automatic record system that the embodiment of the invention provides and method can be recorded a video when alarm event takes place automatically, not only can save artificial action of opening video recording, but also make that the video under the record is all relevant with alarm event, make things convenient for the later stage to locate fast.
Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention clearer; To combine the accompanying drawing in the embodiment of the invention below; Technical scheme in the embodiment of the invention is carried out clear, intactly description; Obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
The present invention provides a kind of system of automatic video recording, and is as shown in Figure 1, and this system comprises: camera 101, image analyzing unit 102 and video recording equipment 103.
Wherein, camera 101 is used for the image of captured in real time area to be monitored.
Image analyzing unit 102 is used to obtain the image that camera is caught; And this image is carried out analyzing and testing according to predefined alarm event detection model; When detecting the image of catching and meet the type of detection of alarm event, then trigger video recording equipment 103 and record a video.
Video recording equipment 103 is used for after the triggering signal of the image analyzing unit that receives 102, and the image of the area to be monitored that begins camera 101 is caught is recorded a video.
Below specify the various concrete scheme of the alarm event detection model among the present invention.
In a kind of preferred scheme; The alarm event detection model comprises the mobile detection model; This moment, image analyzing unit 102 can comprise the mobile detection detection sub-module, and this mobile detection detection sub-module is used to utilize the mobile detection model, and whether the object in the front and back two field picture that the detection camera is caught has shift action; If have, then trigger video recording equipment 103 and record a video.
After being moved, object in detecting image can also further set different mobile detection decision level according to the size of moving area and the severe of movement of objects; After promptly having only mobile acquiring a certain degree, just can trigger video recording equipment 103 and begin video recording.
In a kind of preferred scheme, the alarm event detection model comprises camera occlusion detection model.This moment, image analyzing unit 102 can comprise camera occlusion detection submodule; Be used to utilize camera occlusion detection model; The pixel number that detects the zone that whether has area to surpass threshold value in the image that camera catches is identical or close, if having, then triggers video recording equipment 103 and records a video.
Image analyzing unit 102 can also comprise the video-losing detection sub-module in addition, and whether the rgb value that is used for detecting picture all approaches 255, and data traffic hour, can judge that vision signal loses.
Image analyzing unit 102 all right legacy detection sub-module are used for utilizing frame-to-frame differences point-score and background subtraction point-score to judge whether video sequence has the article of leaving over.
The basic principle of frame-to-frame differences point-score is: if variation has taken place in destination object position in different frame in video sequence, then its gray value also can change thereupon on corresponding different frame relative position; And the position that destination object does not change, its gray value also can change thereupon.The interframe method of checking the mark is done difference processing to adjacent two frames or a few two field picture in the video sequence just, and passing threshold obtains the zone of motion change, detects and extract destination object at last.
The goal discrepancy point-score is to carry out difference with the current frame image that comprises target image in background image that does not comprise destination object and the video sequence, thereby highlights destination object, and finally through post-processing detection and extract destination object.
The alarm event detection model can also comprise the invasion detection model.This moment, image analyzing unit 102 can comprise the invasion detection sub-module; Be used to utilize the intrusion detection module; Behind front and back two two field pictures that the intercepting camera is caught, carry out the gray scale binary conversion treatment, deposit in the array after subtracting each other; And compare with threshold value, then trigger video recording equipment 103 during greater than threshold value and record a video.
In addition, image analyzing unit 102 can comprise disconnecting link opening and closing warning submodule, is used for earlier disconnecting link branch, the video data that closes are sampled and self study; When follow-up real-time detection, data of gathering and a little video data of the study of Confucian classics are compared and carry out difference and calculate, when when wherein some state values are identical or close; Promptly be judged to be the corresponding state of this state value; When this state and normal condition not simultaneously, promptly report to the police, and trigger video recording equipment 103 and begin video recording.
In addition; In order to improve user's participation; Automatic record system in the embodiment of the invention can also comprise the manual triggers module, this manual triggers module be used for receive the user manually input begin the video recording instruction after, send to video recording equipment 103 and to trigger its signals that begin to record a video.
The user can also adopt policy control video recording equipment 103 regularly to record a video in addition, also comprises regularly trigger module this moment in the automatic record system.The user can set regularly the parameter in the trigger module, comprises preset time.After regularly trigger module is started working, detect whether arrive the preset time that the user sets, if then, then send triggering signal, so that video recording equipment 103 begins video recording to video recording equipment 103.
The also corresponding method that a kind of automatic video recording is provided of the embodiment of the invention, as shown in Figure 2, this method comprises:
Step S201: through the image of camera captured in real time area to be monitored;
Step S202: according to predefined alarm event detection model; Image is analyzed; And image is carried out analyzing and testing according to predefined alarm event detection model; When detecting the detection model that the image of catching meets alarm event, then trigger the image in the zone to be detected that video recording equipment begins camera is caught and record a video.
Preferably, the alarm event detection model can comprise the mobile detection model.Carry out analyzing and testing according to predefined alarm event detection model to said image can comprise this moment: whether the object that utilizes the mobile detection model to detect in the front and back two field picture that camera catches has shift action, if having, then triggers and records a video
Preferably, the alarm event detection model can comprise camera occlusion detection model; According to predefined alarm event detection model image being carried out analyzing and testing can comprise: utilize camera occlusion detection model; The pixel number that detects the zone that whether has area to surpass threshold value in the image that camera catches is identical or close; If have, then trigger video recording equipment and record a video.
In addition, the method that the embodiment of the invention provides can also comprise the steps: to send triggering signal when detecting when reaching preset time to video recording equipment, so that this video recording equipment begins video recording.
This shows; Automatic record system that the embodiment of the invention provides and method can be recorded a video when alarm event takes place automatically; Not only can save artificial action of opening video recording, but also make that the video under the record is all relevant with alarm event, make things convenient for the later stage to locate fast.
The above only is a preferred implementation of the present invention; Should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; Can also make some improvement and retouching, these improvement and retouching also should be regarded as protection scope of the present invention.