Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FaceMatch

FaceMatch is a Flask web application that verifies a person's identity by comparing their selfie with a document image. It uses the face_recognition library for facial recognition and verification.

Features

  • Upload a document image (e.g., ID, passport) and a selfie image.
  • Verify if the face in the document matches the face in the selfie.
  • Store uploaded images in a unique folder for each verification session.

Requirements

  • Python 3.x
  • Flask
  • face_recognition
  • face_recognition_models
  • Werkzeug

Installation

  1. Clone the repository:

    git clone https://github.com/Mk-1000/FaceMatch.git
    cd FaceMatch
  2. Create a virtual environment:

    python3 -m venv venv
  3. Activate the virtual environment:

    • On macOS and Linux:

      source venv/bin/activate
    • On Windows:

      venv\Scripts\activate
  4. Install the required packages:

    pip install --upgrade setuptools
    pip install Flask
    pip install face_recognition
    pip install git+https://github.com/ageitgey/face_recognition_models

Usage

  1. Run the Flask application:

    flask run

    or

    python app.py
  2. Send a POST request to /upload with the following form data:

    • documentImage: The document image file.
    • selfieImage: The selfie image file.

    You can use a tool like Postman or cURL for testing.

Example cURL Command

curl -X POST http://127.0.0.1:5000/upload \
     -F 'documentImage=@/path/to/document_image.jpg' \
     -F 'selfieImage=@/path/to/selfie_image.jpg'

License

This project is licensed under the MIT License. See the LICENSE file for details.

Acknowledgements

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages