Giter Site home page Giter Site logo

anpr's Introduction

SETUP

  1. To run the project, first create a virtual environment using this command: python -m venv myenv

myenv/Scripts/activate

INSTALLATION

Then, install these libraries by running the two commands given below:

  1. pip install git+https://github.com/JaidedAI/EasyOCR.git
  2. pip install ultralytics pandas opencv-python numpy scipy opencv-contrib-python filterpy flask

After that, there are 2 ways to run this project:

TESTING

WAY 1: MAKING DETECTIONS ON DEMO VIDEO, SAVING THE RESULTS, AND THEN LOADING THE INTERFACE AND TESTING IT:

  1. First run the command python main.py to create a CSV file containing the detection results, OCR results etc on the video. This csv file is stored in the assets/results folder named as "test.csv"

  2. Then run the command python add_missing_data.py to format and interpolate the "test.csv" file. This script will create a new file called "test_interpolated.csv" file stored in the assets/results folder as well.

  3. Then run the command python visualize.py. This will take the "test_interpolated.csv" file and the input video (stored in "assets/demo.mp4") and overlay the results of the "test_interpolated.csv" file onto the video. It will store the resultant video in the "assets/results/out.mp4" location.

  4. Then run the command python interface.py to launch the interface. It will ask for a list of license plates as inputs (for example: ATVET342,VETV25,VTGV35) and then you have to submit the list. After a few seconds, you will get the output video in the interface with full detections, highlighting authorized plates in "GREEN" and unauthorized plates in "RED".

WAY 2: DIRECTLY RUNNING THE INTERFACE:

  1. You can directly run the interface and test on the already saved video in the "assets/results/out.mp4" path. To do so, run the command python interface.py to launch the interface. It will ask for a list of license plates as inputs (for example: ATVET342,VETV25,VTGV35) and then you have to submit the list. After a few seconds, you will get the output video in the interface with full detections, highlighting authorized plates in "GREEN" and unauthorized plates in "RED".

anpr's People

Contributors

sumsum1517 avatar

Watchers

Kostas Georgiou avatar Moaaz Siddiqui 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.