Code Monkey home page Code Monkey logo

residential-safety-solution's Introduction

Vehicle_Security

This project aims to track unauthorized vehicles entering a society from the CCTV camera footages using YOLO-V5 model to detect the license plates. The model was trained on Car plate detection dataset. Then the license plate numbers were read from the license plates using EasyOCR and they were entered in the database

Authorized residents and vehicles can be registered by using the UI made on the flask app

Setup and usage

  1. Clone the github repository
git clone https://github.com/aayush1036/vehicle-security.git
  1. Create virtual environment
virtualenv env 
# For linux 
source env/bin/activate
# For windows 
env\Scripts\activate
  1. Install the required dependencies
pip install -r requirements.txt
  1. Edit the config file to suit your database credentials

  2. Start the detections by using the detect.py script on sample video or your CCTV/webcam

# For detecting on sample video
python detect.py --society YOUR_SOCIETY_NAME --position ENTRY/EXIT --path sample.mp4
# For detecting on CCTV/Webcam
python detect.py --society YOUR_SOCIETY_NAME --position ENTRY/EXIT --device 0/1/2....
  1. If you want to retrain the model on custom data, please refer to the kaggle notebook published on License plate detection notebook by me and please upvote it and comment on it if you liked it

Demo

User Interface

  1. Home page

1. To register person

2. To register vehicle

Detailed explanation of the project can be found on Medium Article. Please upvote the article if you find it helpful

Future prospects

  1. Improve OCR
  2. Make predictions more faster

residential-safety-solution's People

Contributors

aayush1036 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

jingsongliujing

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.