A simple web application built with Streamlit to detect faces in an uploaded image. This app is CPU-friendly and uses the face_recognition library.
!Face Detection App Screenshot (Suggestion: Add a screenshot of your app here)
- Upload an image (JPG, JPEG, PNG).
- Display the uploaded image.
- Detect faces in the image upon clicking a button.
- Display the image with bounding boxes around detected faces.
- Show a count of the detected faces.
ai_projectss/
├── app.py # Main Streamlit application
├── logic.py # Core face detection logic
├── ui.py # Streamlit UI components
├── requirements.txt # Python dependencies
└── README.md # This file
-
Clone the repository:
git clone <your-repository-url> cd ai_projectss
-
Create and activate a virtual environment:
python -m venv env # On Windows .\env\Scripts\activate # On macOS/Linux source env/bin/activate
-
Install the dependencies: This project requires
dlibwhich can have a complex installation. It's recommended to install it first.pip install -r requirements.txt
Once the setup is complete, run the Streamlit app with the following command:
streamlit run app.pyThis will open the application in your default web browser.
