Summary of the invention
At the problems referred to above, the object of the present invention is to provide a kind of monitoring camera method and device, monitor camera device can be judged according to the result of motion detection have or not the motion object, thereby adjust the working clock frequency of image collection module automatically, to solve the situation hypograph acquisition module that exists at motion object not still with the problem of normal speed work.
In order to achieve the above object, the invention provides a kind of monitoring camera method, may further comprise the steps:
A) obtain image sequence with certain working clock frequency;
B) described image sequence is carried out motion detection;
C) result of the described motion detection of analysis;
D) according to the analysis result among the step c, switch to suitable working clock frequency, obtain image sequence with new working clock frequency.
Described working clock frequency has normal condition and power down mode, the working clock frequency of the working clock frequency during normal condition during greater than power down mode.
When being in described normal condition at present, if analyze the result of motion detection, analysis result is presented at and does not occur the motion object in the regular hour length, then changes working clock frequency, obtains image sequence with the working clock frequency of described power down mode.
The described method that motion detection result is analyzed is: preserve all motion detection result in nearest a period of time, have only when described all motion detection result all display image do not have motion, be when guarded region does not have the motion object in nearest a period of time, just to change working clock frequency.
The described method that motion detection result is analyzed also can for: a series of motion detection result are analyzed one by one, and the number of times that occurs continuously with the nonmotile situation of a variable document image, if described record result is presented at and never has the motion object in nearest a period of time, then change working clock frequency, otherwise show the motion object is arranged in the guarded region, so still the working clock frequency with current normal condition obtains image sequence, simultaneously follow-up motion detection result is proceeded to analyze.
When being in described power down mode at present, if analyze the result of motion detection, in case find to have the motion object to occur, the working clock frequency of using described normal condition immediately instead obtains image sequence.
Work clock cycle when be no more than normal condition the change-over time from described power down mode to normal condition.
Monitoring camera method of the present invention comprises that also described image sequence is sent to display terminal and shows, or the step of storing on storage medium.
The present invention also provides a kind of monitor camera device, comprising:
Image collection module is used for obtaining image sequence with certain working clock frequency; Motion detection block is used for described image sequence is carried out motion detection; Also comprise: analysis module is used to analyze the result of described motion detection; The working clock frequency adjustment module is used to switch the working clock frequency of described image collection module.
The frequency values of in store normal condition and power down mode in the described working clock frequency adjustment module.
The working clock frequency of described image collection module is exactly the frequency values that the working clock frequency adjustment module is chosen.
Described monitor camera device also comprises the demonstration memory module, is used for showing or storing described image sequence.
The present invention is directed under the situation that the motion object does not exist, image collection module in the monitor camera device is still with the problem of normal speed work, proposition is on the basis of original monitor camera device, increase analysis module and working clock frequency adjustment module, analysis module is analyzed the result of motion detection, if analysis result is presented at not motion object appearance in the certain hour section, the working clock frequency adjustment module just reduces working clock frequency, to reduce power consumption; If there is the motion object to occur again, then be transformed into the operate as normal clock frequency immediately, take normally.Working clock frequency of the present invention is regulated fully automatically and is realized, need not manual intervention, has reduced power consumption simultaneously, can be widely used in the monitor camera device.
Embodiment
Core concept of the present invention is: when monitor camera device is operated in normal condition, do not have the situation certain time of motion object when guarded region after, enter power down mode, take and the output image sequence with lower working clock frequency; When monitor camera device is operated in power down mode, when in a single day the motion object has appearred in guarded region, just immediately the working clock frequency of image collection module is returned to normal operating conditions, take and the output image sequence with normal working clock frequency.
Below in conjunction with accompanying drawing, specify workflow of the present invention:
Step 301, camera is worked under normal condition, and per second is exported the image of 30 frame CIF forms.
Image collection module in the present embodiment is a camera, the picture format of camera output is the CIF form, during operate as normal, the output speed of image sequence was 30 frame/seconds, and described image sequence can be transferred to that display terminal shows or store on tape, hard disk and other media.
Step 302 is carried out motion detection with the time calculus of finite differences to image sequence.
In the present embodiment, adopt time differencing method to carry out motion detection, time differencing method is a kind of method for testing motion commonly used, is to get adjacent two frames or three two field pictures carry out motion detection in the continuous images sequence.Get adjacent two two field pictures in the present embodiment and carry out motion detection.
If guarded region is the motion object not, two two field pictures are identical so, and the result who obtains through motion detection does not have the motion object exactly; If the motion object is arranged, two two field pictures have difference so, obtain the result for the motion object is arranged.Per two two field pictures detect and obtain a result, and what motion detection block was exported is a series of testing results.
Step 303, analysis module is analyzed the result of motion detection, judge that not having the motion object in nearest 1 minute occurs?
Analysis module can be preserved all nearest 1 minute testing results, have only when above-mentioned all testing results all display image do not have motion, be when guarded region does not have the motion object in nearest 1 minute, ability execution in step 304, otherwise keep the working clock frequency of camera when normal condition constant.
Step 304, the working clock frequency adjustment module switches to power down mode with the working clock frequency of camera.
The working clock frequency that the working clock frequency adjustment module is switched camera makes it to enter power down mode, promptly under the situation of motion object not, reduces the working clock frequency of camera, and video monitoring apparatus enters power down mode.
Step 305, camera is worked under power down mode, and per second is exported the image of 5 frame CIF forms.
Step 306 is carried out motion detection with the time calculus of finite differences to image sequence.
This step is identical with above-mentioned step 302.
Step 307, analysis module is analyzed the result of motion detection, judged whether that the motion object occurs?
When camera is operated in power down mode, occur,, otherwise keep the working clock frequency of camera when power down mode constant with regard to execution in step 308 in case motion detection result shows the motion object.
Step 308, the working clock frequency adjustment module switches to normal condition with the working clock frequency of camera.
The working clock frequency adjustment module is switched the clock frequency of camera, makes it recover normal operating conditions, takes and the output image sequence with the speed of 30 frame/seconds.Be no more than 1/30 second the change-over time of described working clock frequency, and this is in order to make image collection module can be transformed into normal condition rapidly, to guarantee to photograph the complete motion process of motion object.
Image sequence described in the present embodiment is the CIF form, and during operate as normal, the frame per second of camera is promptly taken and the speed of output image was 30 frame/seconds, and the frame per second under power down mode was 5 frame/seconds.Frame per second when described operate as normal and power down mode also can be adjusted according to user's needs, and frame per second was 25 frame/seconds during as operate as normal, is 5 frame/seconds during power down mode; Perhaps frame per second was 30 frame/seconds during operate as normal, was 3 frame/seconds during power down mode, did not clap the motion object as long as the frame per second during power down mode can not be leaked, and the frame per second during less than normal condition just can.In addition, picture format also can be the VGA form, and frame per second is generally 10-15 frame/second during operate as normal, and the frame per second the when frame per second under the power down mode can be according to operate as normal is selected, as 5 frame/seconds etc.
Except the analytical method described in the present embodiment step 303, analysis module can also be analyzed one by one to a series of testing results that motion detection block is sent, and the number of times that comes the nonmotile situation of document image to occur continuously with a variable, counting is since 1, nonmotile testing result of image of every appearance, this variable adds 1, and image of every appearance has the detection of motion result, this variable zero clearing.If current motion detection result display image has motion, so described variable is carried out clear operation, execution in step 303 then, and follow-up motion detection result is proceeded to analyze, and camera keeps the working clock frequency of current normal condition constant simultaneously; If current motion detection result display image does not have motion, so described variable is advanced 1 and add up, execution in step 303; Occurring 1 minute continuously until the nonmotile situation of image, is under the situation of 30 frame/seconds in the image frame per second promptly, and variable is added at 1799 o'clock, execution in step 304.
In the present embodiment, analyze the result of motion detection,, so just reduce the working clock frequency of image collection module, enter power down mode if there is not the motion object in 1 minute always.This time span also can be adjusted in 1 minute, can as 0.5 minute, 2 minutes, 10 minutes etc.This time is short more, and power consumption is low more, but the conversion of working clock frequency may be just frequent more, and the loss of device is big more; Time is long more, and the loss of device is more little, but power consumption can be bigger.The user can be according to the demand of oneself, and it is only value that this time span is set.
In the present embodiment, selected method for testing motion is a time differencing method, also can adopt background subtraction method, optical flow method etc., and above-mentioned three kinds of methods all are the method for testing motion of using always.
The above only is preferred embodiment of the present invention, and is in order to restriction the present invention, within the spirit and principles in the present invention not all, any modification of being done, is equal to replacement etc., all should be included within protection scope of the present invention.