Summary of the invention
The purpose of the embodiment of the present invention is to provide a kind of monitor video backup method, it is intended to solve prior art
In when monitoring system alarm or when self may be destroyed, lack the video image to the alarm period and carry out
The problem of backup.
The embodiment of the present invention is achieved in that a kind of monitor video backup method, including:
Obtain current video image;
In real time the video image got is carried out image detection, it is judged that whether described video image meets in advance
The trigger condition arranged;
When described video image meets the trigger condition pre-set, obtain corresponding with described video image
Video time;
Obtain the video image in the preset time period before and after described video time;
The video image in described preset time period is sent to distributed memory system according to the default rule that sends.
Further, described when described video image meets the trigger condition pre-set, obtain with described
The video time that video image is corresponding, particularly as follows:
When described video image meets the trigger condition pre-set, generate alarm according to described trigger condition
Rank;
When described alarm level reaches pre-set level, obtain the video time corresponding with described video image.
Further, described according to the preset time period before and after the default transmission rule described video time of transmission
In video image to distributed memory system, particularly as follows:
Obtain to preset and send rule, when described default transmission rule is preset before and after including alternately sending video time
Between video image in section, preferential send video time before video image in preset time period, preferentially send
At least one in video image in preset time period after video time;
When default transmission rule is for replacing the video image sent before and after video time in preset time period, friendship
For the video image in preset time period before and after sending to distributed memory system, when default transmission rule is excellent
When first sending out the video image in the front/rear preset time period of video time, in described front/rear preset time period, press
After the time of video time, elder generation/sequencing sends video image to distributed memory system.
Further, when described video image meets the trigger condition pre-set, start radio communication and set
Standby.
Further, the described default rule that sends is to send frame by frame or the form of multiframe transmission.
Another object of the present invention is to provide a kind of monitor video back-up device, including:
First acquiring unit, for obtaining current video image;
Judging unit, for carrying out image detection to the video image got in real time, it is judged that described video figure
It seem the no trigger condition meeting and pre-setting;
Second acquisition unit, for when described video image meets the trigger condition pre-set, obtain with
The video time that described video image is corresponding;
3rd acquiring unit, the video image in preset time period before and after obtaining described video time;
Transmitting element, is used for according to the default video image sent in the rule described preset time period of transmission to dividing
Cloth storage system.
Further, in the apparatus, described second acquisition unit, including:
Generate subelement, for when described video image meets the trigger condition pre-set, according to described
Trigger condition generates alarm level;
First obtains subelement, for when described alarm level reaches pre-set level, obtains and described video
The video time that image is corresponding.
Further, in the apparatus, described transmitting element, including:
Second obtains subelement, is used for obtaining and presets transmission rule, and described default transmission rule includes alternately sending out
The video image that send before and after video time in preset time period, preferential send out before video time in preset time period
At least one in video image in preset time period after video image, preferential video time;
Send subelement, before and after when default transmission rule for alternately transmission video time in preset time period
Video image time, before and after alternately sending, the video image in preset time period is to distributed memory system, when
When default transmission rule is the preferential video image sent out in the front/rear preset time period of video time, before described/
In rear preset time period, send video image to distributed storage by elder generation/sequencing after the time of video time
System.
Further, in the apparatus, also include:
Start unit, for when described video image meets the trigger condition pre-set, starts channel radio
Letter equipment.
Another object of the present invention is to provide a kind of monitor video standby system, including: above-mentioned any one
Described device and distributed memory system, described device is connected with described distributed memory system.
In embodiments of the present invention, by when described video image meets the trigger condition pre-set, obtaining
Take the video time corresponding with described video image;Obtain in the preset time period before and after described video time
Video image;Deposit to the most distributed according to the default video image sent in the rule described preset time period of transmission
Storage system.Thus when solving when monitoring system alarm or self may be destroyed, when lacking alarm
The video image problem that carries out backing up of section, it is to avoid occur that monitor video is subject to destroy situation about even losing,
So that relevant department can be in follow-up scouting and solving a case, according to monitor video, find out the alarm period or comprise can
The important information of doubtful point, improves monitoring system and for prevention and fights crime and the having of disaster prevention accident
Effect property.
Detailed description of the invention
In order to make the purpose of the present invention, technical scheme and advantage clearer, below in conjunction with accompanying drawing and reality
Execute example, the present invention is further elaborated.Only should be appreciated that specific embodiment described herein
Only in order to explain the present invention, it is not intended to limit the present invention.
In embodiments of the present invention, by when described video image meets the trigger condition pre-set, obtaining
Take the video time corresponding with described video image;Obtain in the preset time period before and after described video time
Video image;Deposit to the most distributed according to the default video image sent in the rule described preset time period of transmission
Storage system.Thus when solving when monitoring system alarm or self may be destroyed, when lacking alarm
The video image problem that carries out backing up of section, it is to avoid occur that monitor video is subject to destroy situation about even losing,
So that relevant department can be in follow-up scouting and solving a case, according to monitor video, find out the alarm period or comprise can
The important information of doubtful point, improves monitoring system and for prevention and fights crime and the having of disaster prevention accident
Effect property.
Fig. 1 shows the flow process that realizes of a kind of monitor video backup method that the embodiment of the present invention provides, and describes in detail
As follows:
In step S101, obtain current video image.
In the present embodiment, obtain current video image, can fill by installing the video acquisition of predeterminated position
Put, catch image by camera lens with fixing frame rate, the data of the pixel of original image are saved in storage
In equipment, it is simple to follow-up data of therefrom extracting carry out image detection.
In step s 102, in real time the video image got is carried out image detection, it is judged that described video
Whether image meets the trigger condition pre-set.
In the present embodiment, in real time the video image got is carried out image detection, the method for image detection
Any one method of prior art can be used, include but not limited to template matching algorithm and based on artificial neuron
Network algorithm.
In the present embodiment, the trigger condition pre-set can also be the setting artificially carried out, it is also possible to be
The automatic setting that system is carried out by the means repeatedly learnt.
As a preferred embodiment of invention, trigger condition includes flame being detected, dense smoke, inspection being detected
Measure personnel hazard's action, detect object traverse circumference, detect object enter preset defence area, detect
Article remove from scene, detect that object occurs one or more in the shake of high-amplitude in the scene.
In the present embodiment, it is judged that whether video image meets the trigger condition pre-set, specifically, logical
Cross and video image is carried out image detection, obtain the mobile object in image, and mobile object is tracked
And zoomed in or out, then carry out graphical analysis, to judge whether video image meets touching of pre-setting
Clockwork spring part.
In the present embodiment, for purposes of illustration only, as a example by the scene of exhibition valuables, trigger condition can set
For detecting that article remove from scene, in video acquisition device, add video analysis function in advance, depending on
Frequency analysis function can leave in or beyond video acquisition device with an autonomous device.User is by making by oneself
Justice Codes and Standards specifies article to be detected and border, and system is according to current video image and previous frame
Video image compares, when finding that depositing two images exists different article, to the article in image
Being tracked, the method for tracking includes but not limited to CamShift tracking, optical flow tracking method and grain
Sub-filter tracking method.According to the location positioning article traced into coordinate in the picture, when article are at image
In coordinate outside default border time, represent article remove from scene.Now, trigger acquisition to regard with described
Frequently the step of the video time that image is corresponding, it is ensured that the follow-up monitoring being uploaded to distributed memory system regards
The effectiveness of frequency and integrity.
In step s 103, when video image meets the trigger condition pre-set, obtain and regard with described
Frequently the video time that image is corresponding.
In the present embodiment, the video time corresponding with described video image is obtained, specifically, due to often
All there is a video time in individual video image, therefore can directly invoke this video image in video-unit
Video time.
In step S104, obtain the video image in the preset time period before and after video time;
In the present embodiment, preset time period can be the setting artificially carried out, it is also possible to it is many to be that system is passed through
The setting that the means of secondary study are carried out, does not limits at this.
In the present embodiment, for purposes of illustration only, as a example by preset time period is 10 minutes, when video time is
During 13:00, the preset time period before and after 13:00 is 12:50~13:10, needs the video image obtained
For, the video image in 12:50~the 13:10 time.
In step S105, according to the video image in the default preset time period sent before and after rule sends
To distributed memory system.
In the present embodiment, presetting and send rule can be that user is arranged voluntarily or system is from setting, and does not does at this
Limit.
In the present embodiment, the mode of the transmission of video image includes that the mode sent frame by frame and multiframe send
Mode, it is preferable that the mode of the transmission of video image uses the mode sent frame by frame, sends frame by frame and refers to
On a frame-by-frame basis send, after a frame is sent, retransmit next frame, specifically, the most right
Video has done slicing treatment frame by frame, then sends the video image in preset time period frame by frame to distributed storage system
System, even if thus terminated by violence in transmission or because disaster occur and terminate transmission, it is also ensured that
The video sent out is all the most readable, thus ensure that when monitoring system alarm or self may suffer
During destruction, it is to avoid monitor video is by destroying situation about even losing, it is ensured that be uploaded to distributed storage system
The validity and reliability of the video image of system.
In the present embodiment, alternatively, the mode of the transmission of video image uses the mode that multiframe sends, many
Frame sends and refers to that multiframe sends simultaneously, when a frame is not sent, when sending next frame so that multiple regard
Frequently frame is simultaneously in transmission state, to improve the speed of the transmission of video image.
In the present embodiment, for purposes of illustration only, Fig. 2 shows the judgement video figure that the embodiment of the present invention provides
Seeming the preferable implementation process of the no trigger condition meeting and pre-setting, details are as follows:
In step s 201, video input;
In step S202, target detection;
In step S203, multiple target tracking;
In step S204, target classification;
In step S205, crawler behavior analysis, it may be judged whether meet the trigger condition pre-set, be
Then perform step S206, otherwise perform 207;
In step S206, output of reporting to the police;
In step S207, video frequency output.
As a preferred embodiment of the present invention, when described video image meets the trigger condition pre-set
Time, start Wireless Telecom Equipment.
In the present embodiment, when video image meets the trigger condition pre-set, to Wireless Telecom Equipment
Transmission wakes up information up, and Wireless Telecom Equipment will start data transmit-receive module after receiving the information of waking up up, and searches
Wireless network, and automatically carry out login link, set up wireless communication, carry out transmission and prepare, work as data
Transceiver module receive from control module data transfer request and from wireless communication module send wireless
After communication network sets up complete information, will be to distributed memory system authentication registration, it is simple to follow-up to sending out
Send video image to distributed memory system.
As a preferred embodiment of the present invention, in real time to the video image got or capture video images
The running environment of video equipment detect;
When described video image meets the trigger condition pre-set or when described running environment is destroyed,
Obtain the video time corresponding with described video image.
In the present embodiment, running environment represents the environment that can normally work of video equipment.
In the present embodiment, running environment is destroyed, and refers to when video equipment is by higher temperature, humidity
Or during electromagnetic interference, the environment of the normal work of video equipment is affected, cause the video equipment cannot be normal
Situation about running.
In the present embodiment, when video image meets the trigger condition pre-set or running environment is by broken
In bad time, obtain the video time corresponding with video image.Thus when video equipment is by higher temperature, wet
When degree or electromagnetic interference, trigger the step obtaining the video time corresponding with described video image, it is to avoid
Owing to the running environment of video equipment is destroyed, the vedio data being stored in video equipment is caused to go out
The situation of active, it is ensured that the integrity of the follow-up monitor video being uploaded to distributed memory system.
As a preferred embodiment of the present invention, Fig. 3 shows and pre-sets when described video image meets
Trigger condition time, obtain the implementing procedure of the video time corresponding with described video image, details are as follows:
In step S301, when video image meets the trigger condition pre-set, according to trigger condition
Generate alarm level.
In the present embodiment, owing to using different trigger conditions in different scenes, video can therefore be worked as
When image meets the trigger condition pre-set, generate alarm level according to trigger condition, such as alarm level 1
Level, 2 grades, 3 grades, 4 grades etc..
In step s 302, when alarm level reaches pre-set level, obtain corresponding with video image
Video time.
Before obtaining the video time corresponding with video image, first alarm level is judged, work as announcement
Alert arrival pre-set level, obtains the video time corresponding with described video image.Thus avoid owing to touching
Clockwork spring part is too much, causes the data traffic uploaded excessive, adds the feelings of the pipeline fee paid to operator
Condition, and add the motility that trigger condition is arranged, meet the operating habit of user, improve scheme
The suitability and the effective percentage of follow-up uploaded videos image.
As the preferred embodiments of the present invention, Fig. 4 shows that the present embodiment is in intelligent activating wireless transmission function
Preferably implementing procedure, details are as follows:
In step S401, alarm input;
In step S402, obtain alarm level;
In step S403, it is judged that whether alarm level reaches pre-set level, is, performs S405, otherwise
Perform 404;
In step s 404, do not process;
In step S405, wake on wireless communication module
In step S406, search for networks;
In step S 407, automatically register to distributed memory system;
In step S408, send alarm video to distributed memory system.
As a preferred embodiment of the present invention, Fig. 5 shows the video file that the embodiment of the present invention provides
The preferable implementing procedure of processing system work, details are as follows:
In step S501, video input;
In step S502, video data write is locally stored;
In step S503, alert period query video;
In step S504, call locally stored data;
In step S505, video is carried out slicing treatment;
In step S506, send alarm period video to wireless terminal storage card.
As a preferred embodiment of the present invention, Fig. 6 shows described according to default transmission rule transmission
The video image in preset time period before and after described video time to the implementation process of distributed memory system,
Details are as follows:
In step s 601, obtaining and preset transmission rule, described default transmission rule includes alternately sending regarding
Frequently regarding in preset time period before the video image in preset time period, preferential transmission video time before and after the time
Frequently one or more in the video image in preset time period after image, preferential transmission video time;
In the present embodiment, the default rule that sends is for regarding in preset time period before and after alternately transmission video time
Frequently preset after the video image in preset time period, preferential video time before image, preferential video time
One or more in video image in time period.
In step S602, before and after default transmission rule is for alternately transmission video time in preset time period
Video image time, before and after alternately sending the most frame by frame, the video image in preset time period is to distributed memory system,
When default send rule for alternately send before and after video time in preset time period video image time, alternately by
Before and after frame transmission, the video image in preset time period is to distributed memory system, when default transmission rule is excellent
When first sending out the video image in the front/rear preset time period of video time, in described front/rear preset time period, press
After the time of video time, elder generation/sequencing sends video image frame by frame to distributed memory system.
In the present embodiment, before and after default transmission rule is for alternately transmission video time in preset time period
During video image, before and after described in preset time period, obtain the time of described video image, according to described
The time of video image and described video time generate time interval, and carry out described time interval from little
To sorting successively greatly, the video image of same time interval in preset time period before and after alternately sending according to sequence.
In the present embodiment, as a example by preset time period is 10 minutes, when video time is 13:00,
Before video time, preset time period is 12:50-13:00, and after video time, preset time period is 13:00
To 13:10, front and back preset time period is 12:50 to 13:10, obtains the time of video image, according to
The time of video image and video time be 13:00 generate time interval, time interval is carried out from little to
Sort successively greatly, when per second have 25 video images time, video time is 25 of the 13:00 previous second and regards
Frequently image, in chronological sequence sorts, respectively A1, A2, A3, A4, A5, A6, A7, A8, A9,
A10、A11、A12、A13、A14、A15、A16、A17、A18、A19、A20、A21、A22、
A23, A24, A25, video time is 25 video images of a second after 13:00, in chronological sequence arranges
Sequence, respectively B1, B2, B3, B4, B5, B6, B7, B8, B9, B10, B11, B12, B13,
B14, B15, B16, B17, B18, B19, B20, B21, B22, B23, B24, B25, alternately
The video image of same time interval in preset time period before and after transmission, can first send video in alternately sending
The video image of the same time interval of preset time period before time, it is also possible to when presetting after first sending video time
Between the video image of same time interval of section.Such as, alternately send video time be the 13:00 previous second and
The order of the video image of latter a second can be: A25, B1, A24, B2, A23, B3, A22, B4,
A21、B5、A20、B6、A19、B7、A18、B8、A17、B9、A16、B10、A15、B11、
A14, B12, A13, B13, A12, B14, A11, B15, A10, B16, A9, B17, A8,
B18、A7、B19、A6、B20、A5、B21、A4、B22、A3、B23、A2、B24、A1、
B25, it is also possible to for: B1, A25, B2, A24, B3, A23, B4, A22, B5, A21, B6,
A20、B7、A19、B8、A18、B9、A17、B10、A16、B11、A15、B12、A14、
B13、A13、B14、A12、B15、A11、B16、A10、B17、A9、B18、A8、B19、
A7、B20、A6、B21、A5、B22、A4、B23、A3、B24、A2、B25、A1.In this reality
Execute in example, when the default video image sent before rule is preferential video time in preset time period,
In front preset time period, by sending video image after the time of video image the most frame by frame to distributed storage
System.When the default video image sent after rule is preferential video time in preset time period, rear
In preset time period, by the time order and function order of video image to sending video image frame by frame to distributed storage
System.
Thus when there is the situation of accident, within the time of very limited transmission, it is ensured that to follow-up
Scout and the video image of most worthy of solving a case preferentially is sent, add and be uploaded to regarding of distributed storage system
Frequently the reliability of image.
As a preferred embodiment of the present invention, also include
It is pre-configured with the cleaning time limit of the video image that distributed memory system is stored;
Read system time and the cleaning time limit of configuration, it is judged that whether the cleaning time limit arrives;
When judging that the described cleaning time limit arrives, cleaning is beyond the video image of storage time.
In the present embodiment, cleaning time limit and storage time can be user oneself set, it is also possible to for default,
Do not limit at this.
In the present embodiment, user can be pre-configured with the cleaning time limit of the video image of storage, such as, configure
Inferior for renewal one in every 100 days, in the system monitoring cleaning time limit, clearing up the time limit then, automatically clearing up storage
Video image.
In the present embodiment, the image information beyond the holding time is automatically deleted by distributed memory system,
To be automatically obtained the release of memory space.Preferably, should before deletion data at distributed memory system
When to the transmission solicited message of main system so that according to solicited message, main system judges that video image is the most permissible
Delete, and send feedback information to distributed memory system, so that distributed memory system is according to feedback information
Confirm whether video image can be deleted.
As a preferred embodiment of the present invention, Fig. 7 shows that the cleaning that the embodiment of the present invention provides exceeds
The video image of storage time preferably implementing procedure, details are as follows:
S701, receives storage request;
S702, detection memory space is the most sufficient, is then, and 703, otherwise, perform 704;
S703, data write
S704, deletes stale data, and cleaning rubbish.
As a preferred embodiment of the present invention, Fig. 8 shows that the embodiment of the present invention is the most relatively
Good implementing procedure, details are as follows:
S801, when detecting the trigger events such as fire, illegal invasion, dystropy;
S802, intelligent video analysis system sends a warning message;
S803, video monitoring platform alarming host receives and preserves warning information;S804, the police of main frame
Lamp, speaker, send audible and visual alarm;
S805, calls radio transmission control module, performs S807 and S809 simultaneously;
S807, calls video file compression processing system;
S808, searches and analyzes alarm period video information, slicing treatment, compression;
S809, activates wireless transport module, logs in wireless-transmission network;
S810, data transmit-receive module automatically logs into distributed memory system;
The data finding the video recording of alarm period are sent the memory space to distributed memory system by S811.
As a preferred embodiment of the present invention, Fig. 9 shows that the embodiment of the present invention is the most relatively
Good safety monitoring topological diagram.
Figure 10 shows the structured flowchart of a kind of monitor video back-up device that the embodiment of the present invention provides, this dress
Put and can run on the video acquisition device possessing wireless transport module, include but not limited to video camera, shooting
Head, DV videocorder, etc..For convenience of description, illustrate only part related to the present embodiment.
Reference Figure 10, this monitor video back-up device, including:
First acquiring unit 101, for obtaining current video image.
Judging unit 102, for carrying out image detection to the video image got in real time, it is judged that described regards
Frequently whether image meets the trigger condition pre-set.
Second acquisition unit 103, for when described video image meets the trigger condition pre-set, obtains
Take the video time corresponding with described video image.
3rd acquiring unit 104, the video figure in preset time period before and after obtaining described video time
Picture.
Transmitting element 105, for sending the video image in preset time period frame by frame according to the default rule that sends
To distributed memory system.
Further, in the apparatus, described second acquisition unit, including:
Generate subelement, for when described video image meets the trigger condition pre-set, according to described
Trigger condition generates alarm level.
First obtains subelement, for when described alarm level reaches pre-set level, obtains and described video
The video time that image is corresponding.
Further, in the apparatus, described transmitting element, including:
Second obtains subelement, is used for obtaining and presets transmission rule, and described default transmission rule includes alternately sending out
The video image that send before and after video time in preset time period, preferential send out before video time in preset time period
One or more in video image in preset time period after video image, preferential video time.
Send subelement, before and after when default transmission rule for alternately transmission video time in preset time period
Video image time, before and after alternately sending the most frame by frame, the video image in preset time period is to distributed memory system,
When the default video image sent in rule is preferential the front/rear preset time period of video time, before described
In/rear preset time period, send video image frame by frame to distributed by elder generation/sequencing after the time of video time
Storage system.
Further, in the apparatus, also include:
Start unit, for when described video image meets the trigger condition pre-set, starts channel radio
Letter equipment.
In embodiments of the present invention, by when described video image meets the trigger condition pre-set, obtaining
Take the video time corresponding with described video image;Obtain in the preset time period before and after described video time
Video image;Deposit to the most distributed according to the default video image sent in the rule described preset time period of transmission
Storage system.Thus when solving when monitoring system alarm or self may be destroyed, when lacking alarm
The video image problem that carries out backing up of section, it is to avoid occur that monitor video is subject to destroy situation about even losing,
So that relevant department can be in follow-up scouting and solving a case, according to monitor video, find out the alarm period or comprise can
The important information of doubtful point, improves monitoring system and for prevention and fights crime and the having of disaster prevention accident
Effect property.
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all at this
Any amendment, equivalent and the improvement etc. made within bright spirit and principle, should be included in the present invention
Protection domain within.