Giter VIP home page Giter VIP logo

espial's Introduction

Espial

Introduction

Surveillance ensures safety and security, an integral part of every individual’s life, Thus Cameras are installed everywhere. But still news of crime resonates throughout the year. Who is looking at those footage prior to an incident? They appear to have become just an evidence collecting source.

🔭   About this Project

Through this project, we aim to convert a CCTV surveillance from an evidence collection device to a crime prevention and detection tool to ensure safety and security. The system will detect and simultaneously alert any suspicious activity captured by the camera through a notification which will be sent to the concerned authority. The technologies encompasses domains of Computer Vision and Deep Learning models like CNN, R-CNN, LSTM. The dataset consists of 2000+ videos scraped off internet and categorized into violent and non-violent activities.

🛠  Tech Stack

Tensorflow  Django  Python  Heroku  HTML  CSS  Javascript  jQuery 


💼   Working



The system is majorly governed by our Website, with all the processes working in sync with it. The current tensorflow model is hosted on the camera itself, with periodic notiffications being pushed to the server. A valid auth key is used to verify the cameras.

To test our website at Link, follow these steps:

  • Login using the credentials stored in credentials.txt.
  • Subscibe to notifications for real-time updates.
  • You can also install our WebSite as an App in your system. A prompt will be shown seeking permission to install.
  • Register a camera by going into Profile section of WebAPP.
  • Enter the token generated in test.py file and watch the magic happen.

Note : Currently notifications work only for Android Devices.


To see the test results for our model, please follow the following steps:

  • Execute the file labelled test.py using command line

    python3 test.py


Note : This Website required OpenCV, Numpy, Django and Tensorflow installed on the host machine. To install these dependencies, run the following command

pip3 install -r requirements.txt


✍️   Current Progress

We tried and tested various architectures for this project. The complete acrchitecture can be found at ModelArchitecture.ipynb. A brief summary and stats for each is given below:

  1. Customised CNN Model: The customised CNN model with optimised parameters performed well on the training and sufficiently good in the test dataset. The architecture is currently being used by the website and test.ipynb file.

    • Accuracy on training: 0.7990
    • Loss on training: 0.4292
    • Val_loss: 0.7605
    • Val_accuracy: 0.6680
    • Optimizer: Adam
    • Loss: BinaryCrossEntropy
    • Epochs: 50
    • steps_per_epoch: 50



  2. VGG Net: VGGNet Architecture displayed an accuracy of 60% on training and 55% on testing dataset.

    • Testing Accuracy: 0.5513



  3. AlexNet: AlexNet showed accuracy of 57% on training and a similar accuracy on the testing dataset.

    • Testing Accuracy: 0.5729



  4. Inception+CustomisedCNN: Using transfer learning of Inception Architecture and passing it to CustomisedCNN trained the model with satisfactory results. Link to model file : Google Drive Link

    • Training_accuracy: 89%
    • Validation_accuracy: 76%
    • Epochs: 30
    • Steps per Epoch: 100
    • Optimizer: RMSprop with LR 0.0001
    • Loss: Binarycrossentropy



⚙️   Ultimate Objective

The model uses the technique of Multiple Object Detection with Localization tracking the movement of people and then categorizing it into violent or non-violent behavior. Our proposed solution will ensure Public Safety and security without any human toil with an instant alert to the concerned authorities. With our deep learning model integrated with your application, and personalised user login which detects and sends the notifications in real time to the concerned authority in case any suspicious activity is detected. We aim to curb the constant rise of criminal activities, their unexpectedness, and scope of harm.

espial's People

Contributors

avishrantssh avatar ritikdh440 avatar aditi0102 avatar

Stargazers

 avatar

Watchers

 avatar

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.