A Security System using the face recognition, which can be monitored from anywhere using a HTTP server, coded using Python and Jinja2.
Install Python3 for Windows/Linux/Mac OS from https://www.python.org/downloads/release/python-3
Download and Install SQLite Browser , to view/modify the sqlite database from https://sqlitebrowser.org/
- Download it get-pip.py file from https://bootstrap.pypa.io
- Open terminal and install pip
python get-pip.py
pip install numpy pillow flask opencv-python opencv-contrib-python twilio dropbox
- 2 cameras, 1 for surveillance and another to take face data for training face recognizer
- A server to host the Web server
- Router (optional)
git clone https://github.com/shangeth/Computer-Vision-Security-System.git
cd server
python server.py
this will open the webserver on127.0.0.1:5000
- Home page will show live feed of camera and log of people who visited the facility.
- Add Visitor allows you to enter the details of new visitor who need to be added/permitted into the facility.
- After adding details of the new visitor,
python detect_faces.py
. Before running it make sure the new visitor’s face is in front of the second USB camera.
- Go to
twilio.com
and create an developer account and get the auth token and SID for the application.- Go to
dropbox.com
and create an developer account and generate auth token for the application in create app section.nano camera_recognition.py
and edit line 40 and 61 to enter your credentials.