Deployment of ANPR model using flask
Flask is a web application framework written in Python.
- I have deployed the project of LicensePlateDetector using Flask as an api. This is an easy and quick way to see your models in production.
An application to recognise the number plate from a given image of a car and verify it from a local database. The application can be used for many purposes like suveillance,security checks etc.
- Clone the repository
- Create virtual env.
On windows you could do something like: py -m venv env
On macOS and Linux: python3 -m venv env
{{ Activate the virtual environment env }} - Install the needed modules using: pip install -r requirements.txt
- Run run.py in ANPR_Chroma folder (Make sure Apache server is running)
- Go to localhost:5000 to see your application in action. (Port 5000 has been configured in run.py)
Note:
- File run.py is to run flask application, if you want to test main licence plate recognition program - check product.py
- Make sure to add your own 2 databases in "init.py" directory before running flask application, and update your database path here
If you get any issues ask me here
- Python3.7 -One of the most popular programming language
- OpenCV(V2.0.0) - Open Source Computer Vision Library
- Flask - Web application framework written in Python
- SQLite -Used for designing and manipulating of database
Author - Aryan Bindal
- Home Page
- A little Description
- If you try to login with unregistered account
- Registration of new checkPost
- Now login again
- Home page after checkPost login
- You can see and update current CheckPost's account
- It's time to upload your vehicle's image and if your vehicle is not registered it will look like this
- And if your vehicle is not registered a mail is send to higher authority
Note: For Gmail services to work -
Write your google account's password here
You have to turn off "2 step verification" and turn off "Less secure app access" from your google account settings
- now driver need to register the vehicle
- If registration is successfull then a mail is send to driver
- Vehicle is registered now
- When everything is done and CheckPost wants to logout
- If you try to login an already registered account of CheckPost