Code Monkey home page Code Monkey logo

facialtraitanalyzer's Introduction

FacialTraitAnalyzer (Age and Gender Detection Web App) ๐Ÿ‘ฆ๐Ÿ‘ฉ๐Ÿ”

Overview:

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.

Key Features:

  • 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. ๐Ÿ“Š

image

Screenshot 2023-12-30 132324

Project Structure ๐Ÿ“‚

.
โ”œโ”€โ”€ 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

Prerequisites ๐Ÿ› ๏ธ

  • Python 3
  • Django
  • OpenCV

Getting Started ๐Ÿš€

  1. Clone the repository:

    git clone https://github.com/octonawish-akcodes/FacialTraitAnalyzer.git
  2. Install the required dependencies:

    pip install -r requirements.txt
  3. Apply migrations:

    python manage.py migrate
  4. 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.

Docker Usage Section ๐Ÿณ

  1. Pull the Docker image from Docker Hub:

    docker pull abhidocker12/age_gender_detection:latest
  2. 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/.

Usage ๐Ÿ–ผ๏ธ

  1. Visit http://127.0.0.1:8000/age_gender/upload/ in your web browser.

  2. Upload an image using the provided form.

  3. Click "Submit" to perform age and gender detection.

  4. View the detection result, including the detected image, gender, and age.

facialtraitanalyzer's People

Contributors

octonawish-akcodes avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.