GithubHelp home page GithubHelp logo

capstone's Introduction

CAPSTONE

Smart Surveillance System

About:

The goal of the project is to create a home surveillance system which is capable of monitoring, recognizing and responding during intrusion. The system should be capable of processing the video stream at real-time. The system should be user-friendly and should be at an affordable price. The system uses a raspberry pi to capture and process the video stream from the camera.

System Architecture

sys-arch detailed-arch

Tool Stack:

  • IDE
  • Raspberry Pi 4
  • Raspberry Pi Camera

Installation:

  • Set up a virtual environment and activate it

  • Clone the project and install the packages using,

    python pip install requirements.txt

  • Create a database in your PostgreSQL

  • Create a .env file with NAME, USER, PASSWORD, HOST of the database and your email credentials EMAIL_HOST_USER, EMAIL_HOST_PASSWORD

Setting up the environment:

  • First task, Migrate the django model to PostgreSQL using the following command,

    python manage.py makemigrations capstone

    python manage.py migrate

  • Next, intiate the celery with the following command,

    python celery -A mysite worker -l info

  • Run the raspberrypi.py script in a new terminal

    python raspberrypi.py

  • Finally, Run the django server in a another terminal

    python manage.py runserver

System Flow:

  • Login/Register into the system with the /register or /login endpoint
  • Then generate the facial encoding of the known people by uploading a minimum of 6 photos per person using the endpoint /encoding
  • Once the familiar faces are uploaded, The system will be able to diffrentiate between familar faces and a unknown face.
  • When a unknown face is detected, the system send a mail with the detected face.

Endpoints

  • /register : To register a account
  • /encoding : For generating facial encoding
  • /livestream : Viewing the raspberry pi stream
  • /log : History of intruder/unknown images

Future Scope

  • Deploy it in a cloud platform.
  • Improvise the latency.
  • Feature to switch to raspberry storage in case of bad internet connectivity.
  • Feature to detect violent activity such as gun detection, holding a knife in a attacking position.

capstone's People

Contributors

dependabot[bot] avatar themightyraider avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

vvhj

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.