A kind of ATM foreign body intrusion detection alarm device and detection alarm method
Technical field
The present invention relates to a kind of ATM foreign body intrusion detection alarm device and detection alarm method.Be applicable to embedded hardware, imaging comparison, wireless network transmissions equipment, belong to video monitoring, radio communication and financial safety protection field.
Background technology
Current intelligent monitor system generally is by limiting suitable application area, in particular, limiting the classification of object and assist the Security Officer to work by the incident of safety rule regulation.The video content analysis method that is used for intelligent monitor system is made up of three main portions: target detection, target following and target classification and identification.
Target Recognition in the rest image and classification are positive research fields in recent decades, have used for reference the method for rest image Target Recognition in the nearest video object identification.There are some video object recognition systems to use based on the method for learning in the hope of obtaining maximum dirigibility.
Whether rest image comparison technology is mainly used in recognition of face and differentiates object being offset at present, in the application for outdoor environment, also belongs to zero.Meanwhile, the crime on bank ATM machine (ATM (Automatic Teller Machine)) is increasing, as: install the pin hole probe additional, install MP4 additional, pseudo-prompting, pseudo-face shield etc., client is deceived, and the stolen incident of wealth takes place repeatedly, and social influence is extremely serious.
Summary of the invention
The technical problem to be solved in the present invention is: a kind of ATM foreign body intrusion detection alarm device and detection alarm method based on still image under the outdoor environment is provided, this device should be so that whether the someone is operating as images acquired whether foundation before the ATM, judge by image comparison technology whether foreign matter exists, as occur that foreign matter is reported to the police at once and send the department of relevant information to appointment by related network.
The technical solution adopted in the present invention is: a kind of ATM foreign body intrusion detection alarm device is characterized in that described detection alarm device comprises:
The veneer camera, it is installed in the inboard of ATM protective cover, installs a slice infrared absorption filter eyeglass before the camera additional, and the front of infrared absorption filter eyeglass is provided with a shutter;
Monitor board is connected with the veneer camera by video line, is used to gather present image, comparison benchmark image and the new image of gathering, and judges whether to occur foreign matter, sends the signal that foreign matter arranged or do not have a foreign matter to control panel;
Control panel is used to control that shutter, acousto-optic word are reported to the police, cancellation acousto-optic word is reported to the police or maintained the original state, on the control panel by RS-232 Serial Port Line and monitor board realization communication.
Described monitor board carries 2G or 3G communication module, is used for carrying out information transmission by the GPRS wireless network, and the transmission of note.
Described control panel also is connected with correlation infrared sensor or thermal infrared sensor, is used to judge whether to exist the remittee.Also be fitted with wireless signal receiver in the expansion slot of described control panel.
The detection alarm method of ATM foreign body intrusion of the present invention may further comprise the steps:
Step 1, monitor board and control panel at first carry out initialization behind the opening of device, and from FLASH, read configuration information, carry out self-checking function then, if do not read out related hardware parameter or configuration information before finding, equipment will restart, and carry out again from detecting operation, after detecting, execution in step 2;
Whether step 2 is judged by correlation infrared sensor or thermal infrared sensor that ATM is current and is used, as using, and images acquired not, and after setting-up time, carry out the judgement of this step once more, and when unattended ATM, execution in step 3;
Step 3, monitor board sends a signal to control panel, control panel control shutter opens and return signal is given monitor board, by the capture program that is moved in the monitor board, gather present image, if do not have image in the storage unit of monitor board, this image is as benchmark image so, this time gather and do not compare,, execution in step 4 behind two images has been arranged to next setting-up time images acquired once more;
Step 4, the image information that step 3 is gathered directly is stored in the storer of monitor board, the image comparison program of installing by monitor board judges whether to exist foreign matter, if do not have foreign matter then return step 2, if there is foreign matter to exist, monitor board sends by the RS-232 serial ports has the foreign matter signal to control panel, execution in step 5;
After step 5, control panel are received the signal of foreign matter, return signal of feedback and give monitor board, the Chinese warning word roll display on the LED screen by storing is in advance then carried out the audio alert prompting when having the remittee that ATM is operated then.
Described step 4 also comprises,
Step 41, described monitor board is carried out the PPP dial-up program, after dial-up success by the 2G or the 3G module of plug-in mounting on it, with the GPRS wireless transmission method, terminal number, reference base picture and the up-to-date picture that foreign matter occurred reached specified server based on ICP/IP protocol.
Described step 5 also comprises,
Step 51, described control panel switches the warning literal of roll display on the LED screen after the releasing alerting signal that receives monitor board or send by the wireless signal receiver on it, revert to the salutatory of bank's appointment, when the people operates ATM, carry out salutatory and report.
Image comparison program in the step 4 is that existing benchmark image compares in the new digital picture that will collect and the monitor board storage unit, to two width of cloth digital picture f (x, y) each pixel, investigate on them, down, a left side, the weighted difference of right adjoint point gray scale, the weights size of approaching with it adjoint point, after the value of the value of obtaining benchmark image respectively and new images acquired, carry out xor operation,, then think foreign matter to occur greater than threshold values as the numerical value that draws at last, take out foreign matter in image laterally, longitudinal center's coordinate, with this coordinate is the center of circle, draw circle stack and storage, in this case, described primary image is constant; If draw the conclusion that foreign matter do not occur, change benchmark image, the image of newly gathering is made as benchmark image.
The invention has the beneficial effects as follows: the present invention is a kind of outdoor financial safety protection product that is applied to, it is ability images acquired under the environment of unattended ATM only, use image comparison technology then, the outdoor outdoor scene still image that the front and back different time points is collected compares, find out intrusion object, as: pin hole probe, MP4, pseudo-face shield etc., use acoustooptic technique to give the alarm at last, simultaneously related data information is sent to server end.The present invention has possessed following advantage:
1) security: according to the requirement of the GA of Ministry of Public Security file, the Password Operations district of finding a view and not taking the ATM operator of camera.Institute's images acquired can be stored 1 month in the terminal internal memory, and can carry out the preservation of longer time through the GPRS wireless network in given server.
2) disguise: shutter is housed in physical construction, when nobody carries out the ATM operation, just carries out acquisition operations, close up at once after the collection, have disguised preferably.Gone up shutter even the offender is stifled, also can report to the police.
3) accuracy:, after the processing of filtration visible light, significantly reduced reflected light and the refract light in the outdoor environment by installing the infrared absorption filter eyeglass additional.Via Suo Beier operator routine processes, can accurately judge cross section 2cm in ATM to the about 1.4 meters distances in protective cover institute installation position
2The foreign matter of size, accuracy reaches more than 99%.
4) alternative of network: monitor board carries 2G or 3G module, can carry out information transmission by the GPRS wireless network, notifies the responsible person concerned to handle with point-to-point way of short messages.The user also can insert Internet by the RJ-45 netting twine, to reach the information transmission of more speed.
Description of drawings
Fig. 1 is the contour structures synoptic diagram of detection alarm device of the present invention.
Fig. 2 is the layer of structure figure of detection alarm device of the present invention.
Fig. 3 is the structured flowchart of control panel of the present invention.
Fig. 4 is the structured flowchart of monitor board of the present invention.
Fig. 5 is the electrical schematic diagram of control panel of the present invention.
Fig. 6-1~Fig. 6-the 4th, the electrical schematic diagram of monitor board of the present invention (being the schematic diagram of ARM9 kernel, FLASH part, SDRAM part and network interface successively).
Fig. 7 is the process flow diagram of detection alarm method of the present invention.
Embodiment
As shown in Figure 1, the detection alarm device of present embodiment comprises:
One veneer camera 2 adopts the SONYCCD sensor, and it is installed in the inboard of ATM protective cover 1, installs the infrared absorption filter eyeglass 3 of a slice 720nm wavelength before the camera additional, and the front of infrared absorption filter eyeglass is provided with a shutter 4.
One
monitor board 5 as shown in Figure 4, adopts the ARM9 chip, monitor board is connected with
veneer camera 2 by
video line 10, be used to gather present image, comparison benchmark image and the new image of gathering, judge whether to occur foreign matter, send the signal that foreign matter arranged or do not have a foreign matter to control panel 6.Described monitor board carries 2G or 3G communication module
(supporting mobile SIM card) is used for carrying out information transmission by the GPRS wireless network, and the transmission of note.
One control panel 6 as shown in Figure 3, adopts the processor of auspicious Sa M16C/62P, and control panel is used to control shutter 4, the acousto-optic word is reported to the police, cancelled the acousto-optic word and reports to the police or maintain the original state, and realizes communication by RS-232 Serial Port Line 7 and monitor board 5 on the control panel.Described control panel also is connected with correlation infrared sensor 9 or thermal infrared sensor, is used to judge whether to exist the remittee.This example is the plug-in mounting wireless signal receiver in the expansion slot of control panel.
The detection alarm method of the ATM foreign body intrusion of present embodiment may further comprise the steps (referring to Fig. 7):
Step 1, monitor board and control panel at first carry out initialization behind the opening of device, and from FLASH, read configuration information, carry out self-checking function then, if do not read out related hardware parameter or configuration information before finding, as: response server tabulation, respond services time, the sensitivity of comparison program etc., then equipment will restart, and carry out again from detecting operation, after detecting, execution in step 2.
Whether step 2 is judged by correlation infrared sensor 9 that ATM is current and is used, as using, and images acquired not, and carry out the judgement of this step afterwards once more in setting-up time (by the monitor board program setting), and when unattended ATM, execution in step 3.
Step 3, monitor board 5 sends a signal to control panel 6, control panel control shutter 4 opens and return signal is given monitor board, by the capture program that is moved in the monitor board, gather present image, if do not have image in the storage unit of monitor board, this image is as benchmark image so, this time gather and do not compare, to next setting-up time images acquired once more, as execution in step 4 behind two images.
The image information that step 4, step 3 are gathered directly is stored among the NANDFLASH of monitor board 5 (Fig. 6-2), and the image comparison program of installing by monitor board judges whether to exist foreign matter, if do not have foreign matter then return step 2.If there is foreign matter to exist, monitor board sends by the RS-232 serial ports has the foreign matter signal to control panel, execution in step 5; Meanwhile, monitor board is carried out the PPP dial-up program by the 2G/3G module of plug-in mounting on it, after dial-up success, with the GPRS wireless transmission method, the terminal number that foreign matter occurred is reached specified server based on ICP/IP protocol.The user also can insert Internet by the RJ-45 netting twine, to reach the information transmission of more speed.
Step 5, after control panel 6 is received the signal of foreign matter, return signal of feedback and give monitor board 5, then Chinese warning word roll display on the LED screen by storing in advance, when having the remittee that ATM is operated (correlation is infrared to be intercepted), then carry out the audio alert prompting.
In this step, owing on the control panel wireless signal receiver is housed, after receiving the releasing alerting signal that monitor board sends, switch the warning literal of roll display on the LED screen, revert to the salutatory of bank's appointment, when the people operates ATM (correlation is infrared to be intercepted), carry out salutatory and report.If wireless signal receiver is not installed on the control panel, also can judge whether foreign matter is removed, in this way, signal is issued master control borad by the image determining program on the monitor board, ATM is recovered operate as normal.
Software section of the present invention sees also Fig. 2, software-based originally is installed in the monitor board, software section comprises ten big modules, is respectively that real time operating system (RTOS), PPP dial-up program, TCP/IP, image acquisition and coding module, still image comparison program, the demonstration of LED dot matrix character, sound and light alarm control program, self check sniffing misinterpretation are restarted module, detected modules such as remote upgrade module, authentication automatically.Real time operating system provides general hardware control interface and stable multi-task scheduling to upper application software; The PPP dial-up program uses ppp protocol to dial up on the telephone in wireless network; The realization that ICP/IP protocol is seven layers is used for carrying out exchanges data with server; Image acquisition and coding module will be encoded into the jpeg format image of required specification according to user's setting; Still image comparison program is compared image and benchmark image that camera collected; The LED dot matrix character shows that with 16*16 dot matrix/word, the form that 5-6 Chinese words of a screen rolled is broadcasted with required display text; The sound and light alarm control program is in order to open sound and light of alarm, with the literal of LED demonstration under switching normal condition and the abnormality and the content of voice; Self check sniffing misinterpretation restarts module, and being in operation at monitor board or control panel occurs restarting automatically when wrong; Automatically detect the remote upgrade module, when having the program of upgrading version to appear at the appointment upgrade server, energy down loading updating program; Authentication module when energising, is uploaded relevant informations such as terminal number to server.
Image comparison program in the present embodiment step 4 is that existing benchmark image compares in the new digital picture that will collect and the monitor board storage unit.After collecting new digital picture, use first order difference for the single order differential to numeral wherein, and ask gradient, to quadratic sum computing and extracting operation, represent with the value sum of two components, that is: G (f (x)) ≈ | Δ xf (x, y)+Δ yf (x, y) |.This method has been used Suo Beier (Sobel) operator and has been carried out the gradient magnitude computing method, by to two width of cloth digital picture f (x, y) each pixel, investigate on them, down, a left side, the weighted difference of right adjoint point gray scale, the weights size of approaching with it adjoint point, after the value of the value of obtaining benchmark image respectively and new images acquired, carry out xor operation,, then think foreign matter to occur greater than threshold values as the numerical value that draws at last, take out foreign matter in image laterally, longitudinal center's coordinate, with this coordinate is the center of circle, draw circle stack and storage, in this case, described primary image is constant; If draw the conclusion that foreign matter do not occur, change benchmark image, the image of newly gathering is made as benchmark image.
Fig. 5 is the electrical schematic diagram of control panel 6.Main chip has M16C62 kernel, speech chip ISD1760 and RS232 serial port chip.Wherein the 19th pin VOL of speech chip meets the 63rd pin A8 of M16/C; The 22nd pin FT of speech chip meets the 65th pin A7 of M16/C; The 25th pin ERASE of speech chip meets the 66th pin A6 of M16/C; The 7th pin SS of speech chip meets the 68th pin A4 of M16/C; The 6th pin SCLK of speech chip meets the 69th pin A3 of M16/C; The 5th pin MOSI of speech chip meets the 70th pin A2 of M16/C; The 4th pin MISO of speech chip meets the 71st pin A1 of M16/C; The 3rd pin RESET of speech chip meets the 72nd pin A0 of M16/C.
The RS232 serial port chip of control panel links to each other with the RS232 interface of monitor board with Serial Port Line.
Fig. 6-the 1st, the electrical schematic diagram of ARM9 kernel, Fig. 6-the 2nd in the monitor board, electrical schematic diagram, Fig. 6-the 3rd of FLASH part in the monitor board, electrical schematic diagram, Fig. 6-the 4th of SDRAM part in the monitor board, the electrical schematic diagram of network interface in the monitor board.