Let's connect 👨💻 and forge the future together.😁✌
Show your support a ⭐ is all this repo needs 😄
It's a motion detection system refers to the capability of the surveillance system to detect motion and capture the events. Motion detection is usually a software - hardware based monitoring algorithm which, when it detects motions will signal the surveillance camera to begin capturing the event. Also called activity detection. An advanced motion detection surveillance system can also send the mail and sms notification as well as video clip will be uploaded to internet alternatively we can also live stream the current situation and have a RFID based system which keeps a track of the authorised person entering in the area hence camera will not be activated and no false notification will be send.
Motion detection system is the first essential process in the extraction of information regarding moving objects and makes use of stabilization in functional areas, such as tracking, classification, recognition, and so on. In this project, we propose an idea and accurate approach to motion detection for the automatic video surveillance system. Our method achieves complete detection of moving objects by involving significant parts: motion detection by a sensitive PIR sensor, recording video footage by a camera module, all these are controlled by a raspberry pi. When a motion is detected by the PIR sensor then it sends a signal to the raspberry pi and then raspberry pi activates the camera and starts recording until the motion stopped. A mail notification is send to a given mail address and video footage is processed and then it will be uploaded to dropbox and then at last an sms notification is being send to the registered number.
The RFID is used to detect if the user is authorized by TAGS. If the user is authorised then the script will pause and hence no notification will be send. The entry and exit of the person will be LOGGED for further reference. If the owner wants to view the live video then also he/she can watch directly via browser/app.
$sudo apt-get update
$sudo apt-get upgrade
$sudo apt-get install python-picamera
$apt-get install ssmtp
$apt-get install mailutils
hostname=raspberrypi
AuthUser=YOUR GMAIL [email protected]
AuthPass=YOUR GMAIL PASSWORD
UseSTARTTLS=YES
UseTLS=YES
$rewriteDomain=your.domain
Specify this if you would like the outgoing emails to appear to be sent from your.domain (instead of from gmail.com).
FromLineOverride=YES
$sudo nano /boot/config.txt
Add the following entry to the end of the file:
dtoverlay=spi-bcm2708
Open the raspi-config
tool from the Terminal:
Select Enable camera and hit Enter, then go to Finish and you'll be prompted to reboot.
Download and uncompress the Python SDK. To install the dropbox module and any dependencies, run the setup script (you may need sudo).
$python setup.py install
Alternatively, you can use pip to automatically download and install the module.
$pip install dropbox
You must then create an "App" on the Dropbox server: https://www.dropbox.com/developers/apps/create
Select "Dropbox API app" Select "files and datastores" Select "Yes" for the "Can your app be limited to its own, private folder?" Enter an appname that is unique Select the "Create App" button
The Dropbox Server will then present you a web page filled with a variety of information. You will need the contents of the fields labelled: App key App secret
Test the Dropbox program on the Raspberry Pi by uploading a file (anything will do).
To watch live we just need to paste this piece of code into the terminal of the raspberry pi:
$sudo modprobe bcm2835-v4l2
ffserver -f /etc/ffserver.conf & ffmpeg -v verbose -r 5 -s 600x480 -f video4linux2 -i /dev/video0 http://localhost:9090/feed1.ffm
localhost:9090/test.mjpg
chmod +x pirtest.py
$sudo ./amdsv2.py