A Website/API built using Flask that detect and hide / replace the vehicule license plate from the image and hide it using openCV, if the user choose to replace the old plate the new one is traited to fill the old place.
- You can change the new used plate in:
./static/plate.png
- Some images to test:
./images
- Accept only
JPG
orJPEG
- The program is on the early stage, some problems can accure in the tests !
The steps used to solve the problem are in the jupyter notebook:
./ressources/notebook.ipynb
- openCV
- Flask
- Pillow
- imutils
You can install all the dependencies with the command:
pip install -r requirements.txt
- Run the cmd:
python app.py
- Go to:
http://localhost:5000
The API have a visual interface so you can use the website or postman to send the request
original image -----[ API ]-----> new image (jpg)
In error case (No image sent | back format of the file) --------> JSON contain error detail
- The files are stored in:
./static/results
/api/hide
/api/replace
Additional to the API urls there is a field to send the image and show both the result of hide and replace with the original image
/result