This repository contains an API for detecting personal data in images using deep learning. It also includes a web interface for visualization and utilizing the API functionality.
The repository is organized as follows:
app.py: Main file containing the API for personal data detection in images.templates/: Folder containing theindex.htmlfile used for the web interface.requirements.txt: File specifying the dependencies required to run the application.Dockerfile: File for building the Docker image of the application.aks/: Folder containing configuration files for deploying the application to Azure Kubernetes Service (AKS).deployment.yaml: Configuration file for deploying the service in AKS.service.yaml: Configuration file for exposing the service in AKS.
-
Clone this repository to your local machine:
git clone https://github.com/your-user/repository-name.git cd repository-nameRemember to replace
"your-user"and"repository-name"with your actual GitHub username and repository name. You can also customize the instructions and descriptions as needed. -
Install the dependencies using pip:
pip install -r requirements.txt
-
Run the API and web interface:
python app.py
This will start the API at http://localhost:5000, and you can access the web interface in your browser.
-
(Optional) If you want to run the application in a Docker container:
docker build -t anonymization . docker run -p 5000:5000 anonymization -
(Optional) AKS Deployment:
- Ensure you have an AKS instance set up and the docker image is in your ACR.
- Apply the configuration in the
aks/folder usingkubectl:kubectl apply -f aks/deployment.yaml kubectl apply -f aks/service.yaml
Contributions are welcome. If you find any bugs or have suggestions for improvement, feel free to open an issue or submit a pull request.