FaceTraitsAnalyzer is a Django web application designed for age and gender detection in images. Leveraging the power of OpenCV and pre-trained models, this application allows users to upload images and receive real-time analysis of facial features. This is a Django web application that performs age and gender detection on uploaded images using OpenCV and pre-trained models.
- Age Detection: Accurately estimates the age range of individuals in uploaded images. ๐
- Gender Detection: Identifies the gender of faces with high precision. โ๏ธโ๏ธ
- User-Friendly Interface: Intuitive web interface for seamless image upload and result presentation. ๐
- Visual Insights: Presents detection results overlaid on the uploaded images for a comprehensive analysis. ๐
.
โโโ Dockerfile
โโโ README.md
โโโ age_gender_detection_app
โ โโโ __init__.py
โ โโโ __pycache__
โ โ โโโ __init__.cpython-310.pyc
โ โ โโโ admin.cpython-310.pyc
โ โ โโโ apps.cpython-310.pyc
โ โ โโโ forms.cpython-310.pyc
โ โ โโโ models.cpython-310.pyc
โ โ โโโ urls.cpython-310.pyc
โ โ โโโ views.cpython-310.pyc
โ โโโ admin.py
โ โโโ age_deploy.prototxt
โ โโโ age_net.caffemodel
โ โโโ apps.py
โ โโโ forms.py
โ โโโ gender_deploy.prototxt
โ โโโ gender_net.caffemodel
โ โโโ migrations
โ โ โโโ 0001_initial.py
โ โ โโโ __init__.py
โ โ โโโ __pycache__
โ โ โโโ 0001_initial.cpython-310.pyc
โ โ โโโ __init__.cpython-310.pyc
โ โโโ models.py
โ โโโ opencv_face_detector.pbtxt
โ โโโ opencv_face_detector_uint8.pb
โ โโโ templates
โ โ โโโ result.html
โ โ โโโ upload_image.html
โ โโโ tests.py
โ โโโ urls.py
โ โโโ views.py
โโโ age_gender_detection_project
โ โโโ __init__.py
โ โโโ __pycache__
โ โ โโโ __init__.cpython-310.pyc
โ โ โโโ settings.cpython-310.pyc
โ โ โโโ urls.cpython-310.pyc
โ โ โโโ wsgi.cpython-310.pyc
โ โโโ asgi.py
โ โโโ settings.py
โ โโโ urls.py
โ โโโ wsgi.py
โโโ compose.yaml
โโโ db.sqlite3
โโโ manage.py
โโโ media
โ โโโ uploads
โ โโโ 1487718277-screen-shot-2017-02-21-at-60424-pm.png
โ โโโ Screenshot_2023-12-26_204504.png
โ โโโ istockphoto-1147066751-612x612_h4qn96t.jpg
โ โโโ result.png
โโโ requirements.txt
- Python 3
- Django
- OpenCV
-
Clone the repository:
git clone https://github.com/octonawish-akcodes/FacialTraitAnalyzer.git
-
Install the required dependencies:
pip install -r requirements.txt
-
Apply migrations:
python manage.py migrate
-
Run the development server:
python manage.py runserver
The app should be accessible at http://127.0.0.1:8000/age_gender/.
My 8000 port was busy so I used 8001.
-
Pull the Docker image from Docker Hub:
docker pull abhidocker12/age_gender_detection:latest
-
Run the Docker container:
docker run -p 8000:8000 abhidocker12/age_gender_detection:latest
Access the Django application in your web browser at http://localhost:8000/age_gender/upload/.
-
Visit http://127.0.0.1:8000/age_gender/upload/ in your web browser.
-
Upload an image using the provided form.
-
Click "Submit" to perform age and gender detection.
-
View the detection result, including the detected image, gender, and age.