Skip to content

Face Counter is a versatile Python project that offers both a face counting script and a web application for visualizing face counts within images. Whether you're conducting facial analysis for research or simply curious about the number of faces in a photo, Face Counter simplifies the process.

Notifications You must be signed in to change notification settings

Hardvan/FaceCounter

Repository files navigation

Face Counter

Welcome to Face Counter, a Python project that simplifies face counting in images and provides an intuitive web application for visualizing the results with highlighted faces. Whether you're curious about the number of faces in a group photo or need to analyze facial data, Face Counter has got you covered.

Link to the Website (Hosted on Render)

Project Flowchart

ML and Web Dev Flowchat

Example

Input Image

Input Image

Output Image

Output Image

Individual Faces Extracted

Face 1 Face 2 Face 3 Face 4 Face 5

Installation

  1. Clone the repo

    git clone https://github.com/Hardvan/FaceCounter
  2. Navigate to the folder

    cd FaceCounter
  3. Create a virtual python environment by typing the following in the terminal

    python -m venv .venv
  4. Activate the virtual environment

    Windows:

    .\.venv\Scripts\activate

    Linux:

    source .venv/bin/activate
  5. Install dependencies by typing the following in the terminal

    pip install -r requirements.txt
  6. Run the app

    python app.py
  7. Click on the link in the terminal to open the website

    It will look something like this:

    Running on http://127.0.0.1:5000

Testing the CountFaces.py script

If you want to test the script, you can run the following command in the terminal:

python CountFaces.py

This will run the script on the image in the images folder and print the number of faces found in the image along with storing the image with the faces highlighted in the output folder.

About

Face Counter is a versatile Python project that offers both a face counting script and a web application for visualizing face counts within images. Whether you're conducting facial analysis for research or simply curious about the number of faces in a photo, Face Counter simplifies the process.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •