Skip to content

RigvedManoj/FaceMatch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FACEMATCH

FaceMatch is a system for identifying facial matches within an image database. With FaceMatch, users can create a database of images of people and, by uploading a new image, quickly find any matches for the person of interest within the database.

Built with a client-server architecture using Flask-ML, FaceMatch provides structured support for efficient client-server communication tailored to ML applications.

Getting started

Prerequisites

  • Python 3.12
  • Virtual environment support (recommended but optional)

Installation

Clone the repository

git clone https://github.com/RigvedManoj/FaceMatch.git
cd FaceMatch

SetUp Virtual environment

python -m venv facematch-env
source facematch-env/bin/activate  

# On Windows: facematch-env\Scripts\activate

With Conda

conda create -n facematch-env python=3.12
conda activate facematch-env

Install dependencies

Run below command from root directory of project.

pip install -r requirements.txt

Usage

CLI

Run all below commands from root directory of project.

Start the server

python -m src.facematch.face_match_server

Task 1: Upload images to database

python -m src.Sample_Client.sample_bulk_upload_client --directory_paths <path_to_directory_of_images> --database_name <database_name>

Note: The name of the database could be a new database you wish to create or an existing database you wish to upload to.

Run with Sample images directory: (Requires absolute path of directory)

python -m src.Sample_Client.sample_bulk_upload_client --directory_paths <path_to_project>\resources\sample_images --database_name test_database

Task 2: Find matching faces

python -m src.Sample_Client.sample_find_face_client --file_paths <path_to_image> --database_name <database_name>

Note: The name of the database needs to be an existing database you wish to query.

Run with Sample test image: (Requires absolute path of image)

python -m src.Sample_Client.sample_find_face_client --file_paths <path_to_project>\resources\test_image.jpg --database_name test_database

Rescue-Box frontend

Run below command from root directory of project.

Start the server

python -m src.facematch.face_match_server

Use Rescue-Box-Desktop

  • Install Rescue-Box from link

  • Open Rescue-Box-Desktop and resgiter the model by adding the server IP address and port number in which the server is running.

  • Choose the model from list of available models under the MODELS tab.

  • Checkout the Inspect page to learn more about using the model.

For Developers

Run all below commands from root directory of project.

Run unit tests

python -m unittest discover test
  • Run individual test

python -m unittest test.<test_file_name>

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published