Image storage alarm method and systemThe technical field is as follows:
the invention provides an image storage alarm method and discloses an image storage alarm system, belonging to the technical field of safety alarm devices.
Background art:
currently, there are two main categories of burglar alarm devices used by companies and families: 1. although the simple detection and alarm device has low price, the function is single, only the alarm can be given, and evidence can not be obtained for solving a case. Once the theft is threatened to fail, the property is stolen and no clue can be provided for the public security department to solve the case. 2. Although professional monitoring equipment with strong functions, such as television camera shooting, alarming and monitoring systems adopted by banks, large-scale shopping malls and warehouses, has good performance, the system is expensive and complex to install and debug, and the system must be attended by a special person and cannot serve ordinary people at all. Affecting the application of the alarm device.
The invention content is as follows:
the alarm system has the functions of intrusion detection, image pickup and storage, and can complete telephone alarm, infrared night vision and multi-user wireless networking.
In order to overcome the defects of the existing alarm, the invention utilizes a novel image sensing device which has higher detection sensitivity and is sensitive to infrared light and combines the existing high-sensitivity pyroelectric human body detector to realize the monitoring of the waiting and protecting places of houses, markets and offices, carry out on-site image shooting and storage on the abnormal conditions, and simultaneously carry out alarm through high-loudness sound and telephone lines to inform related personnel to arrive at the site for processing.
The technical solution of the invention is as follows: the human body detection and infrared illumination device is composed of a human body detection and infrared illumination module, a telephone alarm module and a main control and camera module. The whole system is illustrated as follows:
1) human body detection and infrared illumination module: the pyroelectric human body detector is used for detecting infrared radiation generated by an intruder, the output end of the pyroelectric human body detector is connected with the wireless transmitting module, and an alarm signal can be transmitted to the main control computer and the telephone alarm module in a wireless mode; after receiving the alarm signal, the main control computer starts the infrared illumination module as required according to the illumination condition of the site, and is used for providing auxiliary illumination for the system under the condition of low ambient illumination, so that the image shot by the image shooting and recording system is still clear, and meanwhile, the telephone alarm module can also give an alarm through a telephone line;
2) the telephone alarm module: the dialing can be performed according to the preset telephone number, and the owner or the safety precaution mechanism is informed to respond to the accident. The alarm command from the host computer received by the receiver is sent to the single chip computer, which then sends control words and the telephone number to be dialed to the dialing chip via the output port, and the dialing chip then generates corresponding double-audio signal to be fed to the telephone line via the telephone interface. In addition, the telephone alarm module can judge according to the response condition of dialing, such as line occupation, no-one answering and the like, and make corresponding processing. After dialing the phone call, the system can also play the pre-recorded voice signal.
3) The camera shooting and main control module: the main control computer is responsible for overall work control, and is responsible for controlling the imaging CMOS image sensor and an output logic interface thereof by adopting a programmable logic Chip (CPLD); the main control computer is also connected with the USB interface circuit and is in data communication with the computer through the USB interface circuit so as to transmit digital images to the upper computer for users to watch, print, store and perform other processing;
the working process of the image storage alarm system is as follows:
when the alarm system detects that someone invades the protected area, it will send out alarm signal and inform the image alarm system main control computer by wireless channel, after the main control computer gets the alarm signal, under the condition of confirming the validity, it sends out permission signal to the read-write logic circuit, under the control of the read-write logic circuit, the parallel data channel is opened, a frame of complete image data (default VGA format, 640 x 480) will be stored in FLASH memory, then the data channel is closed, waiting for the next arrival of alarm signal, then the same working process is repeated. That is to say, only when the alarm signal arrives, the image recording system really works, the field condition at the moment is recorded, and the whole system works in a sleep state at ordinary times so as to save the power consumption. If the ambient illumination is low, the main control computer starts the infrared light source to provide auxiliary illumination for the system. When the data in the image memory needs to be obtained, the upper computer software can be used for taking out the image data stored in the FLASH through the USB interface, and carrying out subsequent work such as storage, identification, printing and the like.
The monitoring mode of the device is that the pyroelectric device monitors the indoor condition at ordinary times, once the dynamic object (human) appears outside the specified time range, the owner is informed of the abnormal condition by dialing the phone of the owner or calling a preset BP (Back-propagation) machine, the scene is immediately shot to acquire the scene image, and the scene is continuously shot at regular intervals (such as 5 or 10 seconds) during the alarm duration. After the shooting is finished, an alarm mark can be given to inform others to take out the shot image to a computer and analyze the image so as to determine the situation occurring on the site and obtain the specific information of the monitored object.
The invention has the positive effects that: the digital image recording and storing system developed specially is used to combine pyroelectric body detector and one main control computer to realize the functions of body detection, field condition taking and storing, telephone alarm, etc. of invader.
Description of the drawings:
fig. 1 is a general structural view of the present invention.
Fig. 2 is a block diagram of the overall structure of the main control and camera module of the present invention.
Fig. 3 is a block diagram of the human body detection and infrared illumination module according to the present invention.
Fig. 4 is a block diagram of the telephone alarm module of the present invention.
The specific implementation mode is as follows:
referring to fig. 1, the system comprises a main control and camera module, a human body detection and infrared illumination module and a telephone alarm module. Wherein,
in the main control and camera module (refer to fig. 2), the main control computer adopts a high-performance single chip computer AT90S8515 to take charge of the control of the whole image storage alarm device. The remote controller adopts a multi-channel (4-path) remote control device, a signal sent out is received by the receiving board and then is sent to a PortB port of the main control computer, and the main control computer makes corresponding actions according to the received control signal, for example, the control system enters a defense entering state, the system is enabled to retreat from the defense entering state, and an alarm is given when an emergency happens.
After receiving the alarm notification signal sent by the pyroelectric human body detector, the main control computer sends a shooting command to the CMOS image sensor through the programmable logic chip, the programmable logic chip opens the shooting control gate, a frame of complete image signal generated by the CMOS image sensor is stored in the image cache, and then the shooting control gate is closed. And then the main control computer generates a corresponding time sequence signal, the data in the image cache is stored into a FLASH memory through a logic level conversion interface chip, and the FLASH memory is adopted to store the image data, so that the image data can be ensured not to be lost after the system is powered off. After the above process is completed, the main control computer continues to wait for a new alarm notification signal sent by the human body detector, if the alarm signal still exists after a certain time, the above process is repeated, a new picture is shot and stored, and the process is repeated until the human body detector does not send the alarm notification signal any more or the image memory is full.
The data already stored in the FLASH memory can be transferred to the upper computer. The PortD port and the PortC port of the main control computer are respectively connected with the data bus and the control bus of the USB interface chip and are communicated with the upper computer through the USB interface chip to transmit image data. The user can view, store and print the pictures in a computer using software.
The system uses a novel image sensor device CMOS image sensor which is a digital camera system without a memory, and shooting parameters of the digital camera system can be controlled through an I2C bus, such as brightness, frame frequency, exposure and the like. In the system, the data and control terminals of the CMOS image sensor connected to the outside are mainly three, i.e., I2C bus control lines (two), digital image data output lines (8), and timing control and working control lines (frame synchronization, row synchronization, pixel synchronization, reset terminal, sleep mode control terminal, etc.). The I2C bus control line is directly connected with the main control computer, and the single chip computer adjusts the working parameters of the CMOS image sensor according to different conditions. The CMOS image sensor has 8 digital image data port lines capable of outputting 8-bit grey image data directly, and the data line is connected via one logic level converting device to FLASH.
In the human body detection and infrared illumination module (refer to fig. 3), after the pyroelectric human body detector detects human body activity, an alarm signal is given, the alarm signal is transmitted to the wireless receiving module through the wireless transmitting module, the wireless receiving module sends an alarm signal (a high level signal) to the main control computer, and the main control computer can detect the signal. If the environment lighting condition is not good at this moment, the main control computer can also start an infrared lamp (10W) to illuminate the site.
Fig. 4 is a schematic block diagram of a telephone alarm module. The telephone alarm module consists of an AT90S8515 singlechip and a DTMF transceiving control chip MT8880 and is responsible for dial-in repair according to a preset telephone number and informing an owner or a safety precaution mechanism to respond to an accident situation. The alarm command from the host computer received by the remote control receiving module is sent to the single chip microcomputer through PortA.0, the single chip microcomputer sends control words and the dialed telephone number to the MT8880 through PortB.0-7, and the MT8880 generates corresponding double audio signals and feeds the signals into a telephone line through a telephone interface.
And a high-performance singlechip is used as a control computer and is responsible for the management and control of the whole module. After the alarm notice signal comes from the human body detector, the control computer simulates an off-hook signal through the off-hook control chip to enable the system to work in a dialing state, and sends a dialing command and data through the data of the telephone transceiver chip and the control bus, and after the sending is finished, the control computer performs operations of redialing, waiting for the other side to pick up the phone, redialing after a period of time and the like according to the received telephone line state, such as line occupation, dial-through, unmanned answering and the like. If the opposite side is off-hook, the voice alarm chip plays the pre-recorded voice signal, and the high-speed user is prompted to process the abnormal condition. The number recording switch is used for inputting the telephone number to be stored into the control computer.