A web-based application built with Flask, OpenCV, and MediaPipe to detect age, gender, and facial landmarks from images or live camera feed.
-
Realtime Camera Detection
- Uses your webcam directly in the browser.
- Performs live detection of age, gender, and facial landmarks.
-
Image Upload Detection
- Upload an image from your device.
- The app processes the image and returns the detection result.
-
Modern UI
- Styled with Tailwind CSS via CDN.
- Responsive and minimal interface.
- Backend: Python, Flask
- Computer Vision: OpenCV, MediaPipe
- ML Models: Pre-trained Age & Gender detection models
- Frontend: HTML, Tailwind CSS
git clone https://github.com/gbennnn/facial-landmarks-detection.git
cd facial-landmarks-detection
python -m venv venv
source venv/bin/activate # Linux / Mac
venv\Scripts\activate # Windowspip install -r requirements.txtDownload the pre-trained models and place them in the model/ folder:
deploy.prototxtres10_300x300_ssd_iter_140000.caffemodelage_deploy.prototxtage_net.caffemodelgender_deploy.prototxtgender_net.caffemodel
python app.pyOpen your browser and go to:
http://127.0.0.1:5000/
This project is licensed under the MIT License - see the LICENSE file for details.
