This application is designed to anonymize regions of interest, such as faces or license plates, in images. It utilizes YOLO (You Only Look Once) object detection models to detect objects in images and applies a Gaussian blur to anonymize them.
- Upload Image: Users can upload an image containing regions of interest.
- Select Models: Users can select the models for blurring.
- Detect Objects: The application detects objects in the uploaded image using the selected YOLO object detection models.
- Anonymize: Detected objects 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 regions.
The application is publicly available at Image Anonymizer. You can visit the website to blur regions of interest in images.
To run the application locally, follow these steps:
- Clone the repository:
git clone https://github.com/ippen/image-anonymizer.git
- Navigate to the project directory:
cd image-anonymizer
- Install the required dependencies:
pip install -r requirements.txt
- Run the Streamlit application:
streamlit run image_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 objects in images, anonymizing the detected objects, loading the YOLO models, 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 models used for object detection are stored in data/models/
. Users can select the models for blurring in the application interface.