This application is designed to anonymize license plates in images. It utilizes a YOLO (You Only Look Once) object detection model to detect license plates in images and applies a Gaussian blur to anonymize them.
This repository has been deprecated in favor of a more comprehensive image anonymization solution. Please refer to the Image Anonymizer repository for the latest updates and features. The License Plate Anonymizer application has been integrated into the Image Anonymizer application, allowing for anonymization of various regions of interest, including license plates and faces.
For historical purposes, you can still access the original License Plate Anonymizer application here, but please note that it will no longer receive updates or support.
- Upload Image: Users can upload an image containing license plates.
- Detect License Plates: The application detects license plates in the uploaded image using the YOLO object detection model.
- Anonymize: Detected license plates are anonymized by applying a Gaussian blur effect to the corresponding regions in the image.
- Download: Users can download the anonymized image with the blurred license plates.
The application is publicly available at License Plate Anonymizer. You can visit the website to blur license plates in images.
To run the application locally, follow these steps:
- Clone the repository:
git clone https://github.com/ippen/license-plate-anonymizer.git
- Navigate to the project directory:
cd license-plate-anonymizer
- Install the required dependencies:
pip install -r requirements.txt
- Run the Streamlit application:
streamlit run license_plate_anonymizer.py
- Access the application in your web browser at
http://localhost:8501
.
This Python script contains the main functionality of the application. It includes functions for detecting license plates in images, anonymizing the detected license plates, loading the YOLO model, and the main Streamlit application.
This file lists all the Python libraries and their versions required to run the application. You can install these dependencies using pip:
pip install -r requirements.txt
The YOLO model used for license plate detection is stored in data/models/v8n_lp_v1.pt
.