GithubHelp home page GithubHelp logo

anonexploiter / anpr Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 2.0 1.47 MB

To detect the number plate via the realtime survillance camera and stores the number plate in a CSV file.

Jupyter Notebook 100.00%
deep-learning object-detection pytorch

anpr's Introduction

git clone https://github.com/anonexploiter/Anpr.git

Step 1. Create a new virtual environment python -m venv recv

Step 2. Activate your virtual environment

.\recv\Scripts\activate

Step 3. Install dependencies and add virtual environment to the Python Kernel

python -m pip install --upgrade pip
pip install ipykernel
python -m ipykernel install --user --name=recv

Step 4. Collect images using the Notebook.

jupyter notebook

Step 5. Intializing the path and download the tensorflow object detection

Download https://www.kaggle.com/datasets/andrewmvd/car-plate-detection?resource=download and setting up the dataset folder for training and testing

Step 6. Creating label map for identifying and train the detection of objects ( Number plate).--> green box

Step 7. Creating TF records and setup the folder for 'generated-tfrecord' to initialize the image annotations for train and test of a dataset

Training prerequisite : https://drive.google.com/file/d/1_KmBPj0iHQr_DLinuToCpEE1BiJZfErx/view?usp=sharing

Step 8. Train the dataset with generated-tfrecord to initialize the child nodes for analyzing the number plate.

Step 9. Create a pipeline file for setting up the path to train the model folder.

step 10. Copy the model config (pipeline file --> which is used to mention the path when an detection runs) to training folder for the stage of pretraining.

step 11. Update the config files for Training the transfer learning using object detection api in tensor flow

Step 12. run the config file to setup the path for pipeline.

Step 13. Train the model with the respective tensorflow folders

Step 14. run the trained steps in cmd prompt to get checkpoint index(which is used to mention the accuracy of detection in realtime as well as image file)

Step 15. Evaluate the trained dataset model folder and checkpoints

Step 16. Load the trained model which as checkpoints , for that from object_detection api model_builder will used and that also allows to built the config_utils.

Step 17. preventing the gpu cores to setup virtual device.

Step 18. Load pipeline config and build a detection model.

Step 19. restore the checkpoints for the loaded pipeline line config file(it gives shape to that detection)

Step 20. Detection from an image Cv2 is used to load the path of trained model via the pipeline config file.numpy is used to make coordinates with the images annotaion files.matplotlib uses pyplot to make grap for accurate detection.

Step 21. Realtime detection from webcam. it uses opencv to open web cam and capture the number of objects and stores it as image.

step 22.For image file Apply ocr by using pytorch and easyocr , it gives more threshold in detection . it apply ocr filters like applying blur , gray scaling, mono scaling ....

Step 23. For Realtime Apply ocr by using pytorch and easyocr, it apply ocr filters like applying blur , gray scaling, mono scaling in detected and stored number plates.

Step 24. For better detection bringing those and makes ROI(region of intrest(number palte)) for storing , the detection boxes were applied when they are processed in generating ocr phase.

Step 25. Saving the result with the help of CSV module to store the extracted data in .csv file with the unique identifier id.(further steps involved to manage the detected number plates in cloud).

anpr's People

Contributors

anonexploiter 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.