This project implements a license plate detection and recognition system.
To run the image prediction app, follow the steps below:
- Clone the repository
git clone https://github.com/Amit-Ramrakhyani/License-Plate-Recognition.git
- Change to the project directory
cd License-Plate-Recognition
- Install the required packages using the following command:
python -m pip install -r requirements.txt
- Go to the app directory
cd app
- This project is dependent on the Sort module. You can download it using the following command:
git clone https://github.com/abewley/sort.git
- Run the following command to start the application:
streamlit run app.py
The app will open in your default browser. You can also access it by going to http://localhost:8501 in your browser.
To run the video analysis part, keep the video in the /images/input
directory and change the path of the video in the /app/main.py
& /app/visualize.py
files. Then run the following commands in order:
python3 main.py
python3 add_missing_data.py
python3 visualize.py
The output video will be available in the /images/output/output.mp4
NOTE: Running a large video file without a GPU might be the reason your system crashs. That's why the computation is made to be done on only 500 frames of the video. You can change that on the 29th line of /app/main.py
. You're welcome ;)