Embodiment
Below in conjunction with accompanying drawing, be described in more detail with other technical characterictic and advantage the present invention is above-mentioned.
See also shown in Figure 1, it is the functional structure sketch of remote alarm video monitoring of the present invention system, it comprises: at least one image collecting device 1, image pick-up card 2, visual information processor 3, wireless launcher 4, radio universal network 5 and at least one receiving terminal 6, wherein, described image collecting device 1 can be a video camera, it is arranged at the monitoring place, environment to the monitoring place carries out real time image collection, described image collecting device 1 is connected with described image pick-up card 2, and the analog image signal is converted to digital signal;
Described image pick-up card 2 is connected with described visual information processor 3, and the image data transmission that is used for collecting is given described visual information processor 3, handles accordingly;
The processor of described visual information processor 3 for having the view data processing capacity, it is the control centre of system, described visual information processor 3 can be computer or embedded system, this embodiment describes as embodiment with computer, it has the internal processing program that sets in advance, it is connected with described wireless launcher 4, when unusual condition appears in the monitoring place, alarm signal is sent via wireless launcher 4, be transferred at least one receiving terminal 6 by described wireless communication networks 5.Wherein, described wireless launcher 4 is that GSM modulator-demodulator or wireless launcher are the CDMAX modulator-demodulator, described wireless communication networks 5 is public wireless communication networks of GPRS or the public wireless communication networks of CDMA, can clearerly understand the technical program for the ease of those of ordinary skills, the transmission unit of forming with GSM modulator-demodulator and the public wireless communication networks of GPRS is that example describes here; Described at least one receiving terminal 6 is mobile phone, PDA or notebook computer one of them or combination in any.
System of the present invention monitors the environment under the fixed static state, be with general other place of supervisory control system phase region, when need monitoring a particular environment, the supervisory control system under the ordinary meaning to record a video simultaneously, this capacity to memory device just has certain requirement, in fact mass data all is invalid information in the data of storage, described invalid information is exactly that view data data under the abnormal conditions does not take place in the monitoring place, in order to reduce requirement to the memory device, stores ability, remote alarm video monitoring of the present invention system, also comprise a video recording memory device 7, it is connected with described visual information processor 3, when described visual information processor 3 has been found in the monitoring place when unusual condition occurring, then will this moment the view data that is collected by image scanner 1 be stored, in the needs evidence obtaining, extract, it can be read by the data of computer to storage once more, and the utilization ratio of memory device 7 memory spaces of recording a video like this is just very high.
See also shown in Figure 2ly, it is the flow chart of the embodiment one of remote alarm video monitoring method of the present invention; Say as above-mentioned institute, when described image collecting device, image pick-up card will be monitored on-the-spot image document and transfer to described visual information processor, most important link just begins to play a role, and promptly view data is handled, and it step that comprises is as follows: step a: system initialization;
Step b:, and handle grab image frames and gray processing by 3 pairs of images of visual information processor by the image in the real-time acquisition monitoring place of image collecting device 1;
Step c: the image to adjacent two frames carries out difference;
Steps d: the noise in the difference image is carried out modeling;
Step e:, distinguish background and moving target according to the noise model binaryzation;
Step f: judged whether that object enters monitored space, if having then carry out following step g, if not then carry out above-mentioned steps b;
Step g: described visual information processor 3 sends corresponding order to wireless launcher 4, give at least one receiving terminal 6 with alarm signal via wireless network transmissions 5, and start one the video recording memory device 7, with this moment the image data storage that collects in described video recording memory device 7, till having the staff to close video recording memory device 7.
It is emphasized that, system initialization step for step a, mainly be that the image that image collecting device 1 is gathered is handled, and the quality of the quality of processing result image and images acquired has close getting in touch, therefore must some parameter settings are good before supervisory control system work, and this step is mainly finished the initial work of system, comprise resolution to image collecting device 1 images acquired, the standard of image pick-up card 2 video ports, brightness, contrast, colourity, the frame number that saturation and per second are gathered, the size of surveyed area, to carrying out the setting of the MSComm control or the like of communication, for subsequent treatment is prepared with the GSM modulator-demodulator.
The image that common image collecting device 1 collects is an analog video signal, therefore in order can the application image message handler 3 it to be handled, then above-mentioned analog video signal must be converted into digital signal, and deposit it buffering area of visual information processor 3 in.Present this conversion mainly contains dual mode: the one, and the kit that utilizes image pick-up card 2 to attach; The 2nd, the video software kit that utilizes Microsoft company to provide, i.e. Direct show or VFW.This dual mode respectively has pluses and minuses, and the advantage of first kind of mode is convenient and simple, and shortcoming then is that system is more intense to the dependence of image pick-up card 2.Second mode is then opposite with first kind of mode, and its advantage is that system is little to the dependence of image pick-up card 2, and shortcoming then is the exploitation more complicated.For the dependence of reduction system to hardware, native system has adopted the second way.
See also shown in Figure 3ly, it is the flow chart of the embodiment two of remote alarm video monitoring method of the present invention; It is to realize by above-mentioned remote alarm video monitoring system, it is characterized in that it step that comprises is:
Step a: system initialization;
Step b: the view data in place is monitored in image collecting device 1 real-time acquisition, and extracts an image that does not have intrusion target as original background by visual information processor 3;
Step c: the utilization frame difference method detects moving target, the image of present image and former frame is carried out difference obtain difference image;
Steps d: difference image cut apart obtain the foreground point;
Step e: the image after cutting apart is handled;
Step f: judge whether the zone, foreground point behind the noise filtering satisfies the intrusion target condition, if satisfy then carry out following step h, if not then carry out following step g;
Step g: the utilization background subtraction detects target, if intrusion target is arranged then carry out following step h, otherwise carries out above-mentioned steps b;
Step h: described visual information processor 3 sends corresponding order to wireless launcher 4, alarm signal is transferred at least one receiving terminal 6 via wireless network 5, and start described video recording memory device 7, with this moment the image data storage that collects in described video recording memory device 7, till having the staff to close video recording memory device 7.
Wherein for described step e the image after cutting apart is handled, seen also shown in Figure 4ly, it step that comprises is:
Step e1: the image after cutting apart is carried out noise filtering;
Step e2: the difference figure is carried out binaryzation;
Step e3: connected component labeling;
Step e4: remove irrational zone according to area and length.
See also shown in Figure 5ly, it is the flow chart of the embodiment three of remote alarm video monitoring method of the present invention, and it is to realize by above-mentioned remote alarm video monitoring system, it is characterized in that it step that comprises is:
Step a: system initialization;
Step b: the view data in place is monitored in image collecting device 1 real-time acquisition, and handles grab image frames and gray processing by 3 pairs of view data of visual information processor;
Step c: the image to adjacent two frames carries out difference;
Steps d: difference image is cut apart;
Step e: the image after cutting apart is handled;
Step f: judged whether the moving region, if having then carry out following step g, if not then carry out above-mentioned steps b;
Step g: described visual information processor 3 sends corresponding order to wireless launcher 4, alarm signal is transferred at least one receiving terminal 6 via wireless network 5, and start one the video recording memory device 7, with this moment the image data storage that collects in described video recording memory device 7, till having the staff to close video recording memory device 7.
Whether refer to the intrusion target zone for " moving region " that propose among the above-mentioned steps f, and intrusion target is primarily aimed at human body, be that the condition of intrusion target is:
The target area area can not be too small, and too small zone will be regarded as noise.
Length-width ratio is reasonable, because people's body length is than there being certain scope, the length of people's volume imaging has certain limit than also, and length all will be regarded as non-intrusion target zone than excessive or too small zone.
Wherein for step e the image after cutting apart is handled, also seen also shown in Figure 4ly, it step that comprises is:
Step e1: the image after cutting apart is carried out noise filtering;
Step e2: the difference figure is carried out binaryzation;
Step e3: connected component labeling;
Step e4: remove irrational zone according to area and length.
See also shown in Figure 6ly, it is the flow chart of the embodiment four of remote alarm video monitoring method of the present invention, and it step that comprises is:
Step a: system initialization;
Step b: the view data in place is monitored in image collecting device 1 real-time acquisition, and handles grab image frames and gray processing by 3 pairs of images of visual information processor;
Step c: the image to adjacent two frames carries out difference;
Steps d: difference image is cut apart;
Step e: the image after cutting apart is handled;
Step f: judged whether the moving region, if having then carry out following step g, if not then carry out above-mentioned steps b;
Step g: described visual information processor 3 sends corresponding order to wireless launcher 4, alarm signal is transferred at least one receiving terminal 6 via wireless network 5, and start one the video recording memory device 7, with this moment the image data storage that collects in described video recording memory device 7, till having the staff to close video recording memory device 7.
Step h: the moving region is identified;
Step I: calculate the spatial gradient of each point pixel on x, y direction in the moving region, and gray scale is to the rate of change of time;
Step j: calculate each point pixel speed vector in the moving region;
Step k: extract the target area by clustering method;
Step l: according to the overall rate of target area, target is followed the tracks of, determine the target location.
The pixel speed vector V that step j is obtained (r, θ) (wherein r represents velocity magnitude, and θ represents angle), and the space coordinates P of pixel (x, y) (x y) carries out cluster to the characteristic vector F of Zu Chenging for r, θ, and cluster result is one or several target areas.Wherein claim speed to be called characteristic point, only characteristic point is carried out cluster during cluster greater than the point of 0 (r>0).
Wherein for described step k: by the realization that clustering method extracts this process of target area, see also shown in Figure 7ly, it is for realizing the first method of described step k, and it step that comprises is:
Step k1: optional n characteristic point is as the initial target regional center in image;
Step k2: the further feature point is divided in the zone of (vector distance minimum) recently;
Step k3: cast out very few (<Nmin) the zone of characteristic point number;
Step k4: recomputate each regional center;
Step k5: calculate in each zone characteristic point to the average distance at center;
Step k6: calculate All Ranges overall average distance;
Step k7: if the big (n>2*K) of n value, just merge the too small zone of spacing (between regional center the distance<C), if the less (n<K/2) of n value, just division too sparse (in the zone each vector to the criterion distance at center poor>S) zone, (K/2≤n≤2*K) if n is of moderate size, just judge whether the current iteration number of times reaches upper limit I, if reach the upper limit, with regard to termination of iterations, the target area is extracted and is finished, if do not reach the upper limit, with regard to execution in step k2, wherein, K: the number of the target area that generate, I: the iterations upper limit, Nmin: the minimum number of characteristic vector in the zone, S: the criterion distance of characteristic vector and regional center is poor in the zone, C: interregional minimum range.
For the second method that realizes described step k, see also shown in Figure 8ly, it step that comprises is:
Step k1: optional n characteristic point is as the initial target regional center in image;
Step k2: the further feature point is divided in the zone of (vector distance minimum) recently;
Step k3: recomputate each regional center;
Step k4: if All Ranges does not all have to change, with regard to termination of iterations, if area change is arranged, just judge whether iterations reaches upper limit I, if reach with regard to termination of iterations, if just do not carry out k2, wherein, K: the number of the target area that generate, I: the iterations upper limit.
Substantially can determine whether unusual situation to have occurred by above-named several modes, and message has been passed at least one receiving terminal 6 in the place of monitoring.Be achieved in that for this wireless transmission process warning message sends to the radio universal network by wireless base station apparatus 4 with information, is passed on security protection personnel's the portable terminal by wireless network 5 again.The wireless base station apparatus here is the GSM modulator-demodulator, it links to each other by serial ports with computer, system uses MSComm control and GSM modulator-demodulator to carry out communication, the MSComm control carries out the port setting during disclosed in the above system initialization, comprises sending buffering area, accepting buffering area, the mode that reads and writes data, baud rate or the like.System controls the GSM modulator-demodulator by sending the AT order.The GSM modulator-demodulator is to the acceptance of SMS information and send the dual mode that has relatively more commonly used at present: Text Model and PDU Model.Under Text Model, the data that send and receive are all represented with the form of ASCll sign indicating number; Under PDU Model, the short message text is sent out through behind the hexadecimal code.PDU is equivalent to a packet, and it is made up of the information that constitutes message (SMS).As a kind of data cell, it must comprise source/destination address, protection (effectively) time, data format, protocol type and text, and text length can reach 140 bytes, and they are all with hexadecimal representation.Because serial data the longest in the native system does not surpass 140 bytes, so data all can send with a piece of news.Because domestic portable terminal great majority are not supported Text Model at present, so system adopts the PDU pattern to carry out the transmission and the reception of information.Illustrate the short message process of transmitting below: (short message service center is: 13800100500; The mobile terminal number of accepting message is: 13552368431; ")
1) assembling PDU bag
08?9?1?683?108?100000?5?F0?1?1?000D?9?1?68?31?55?32?86?34?F10000000?6?C8?329B?FD?0E?01
2) the short message sending mode is set
AT+CMGF=0(1-Text?Model?0-PDU?Model)
3) the transmission data length is set
AT+CMGS=21
4) send the PDU packet
To sum up, remote alarm video monitoring system and method disclosed by the invention can detect in real time to the object that enters the monitored area and have that cost is low, high safety, have intelligence, characteristics such as report to the police in time, be convenient to expand, maintenance cost is low, can be used for the occasion of various factory buildings that are difficult for patrolling and examining and the round-the-clock anti-thefting monitoring of equipment.
The above only is preferred embodiment of the present invention, only is illustrative for the purpose of the present invention, and nonrestrictive.Those skilled in the art is understood, and can carry out many changes to it in the spirit and scope that claim of the present invention limited, revise, even equivalence, but all will fall within the scope of protection of the present invention.