Skip to main content

Siamese CNN based face verification package

Project description

FaceVerifyAI

Python 3.11 TensorFlow License Open In Colab

A Siamese CNN-based face verification Python package built with TensorFlow/Keras for checking whether two face images belong to the same person.

This package provides a simple API for face similarity verification using a pretrained deep learning model with a custom L2Normalize layer.

✨ Features

  • Verify whether two face images match
  • Siamese CNN architecture for similarity learning
  • Easy Python API (verify_face)
  • Installable as a reusable Python package
  • Tested on local machine + Google Colab
  • Includes custom TensorFlow layer support
  • Automatic image preprocessing

⚙️ Installation

Install from GitHub

git clone https://github.com/abhisekkundu-DS/siamese-face-verification.git
cd siamese-face-verification
pip install -e .

pip install git+https://github.com/abhisekkundu-DS/siamese-face-verification.git

Create a virtual environment

python -m venv tfenv
Windows PowerShell:

powershell
.\tfenv\Scripts\Activate
Linux/Mac:

bash
source tfenv/bin/activate
 Install the package
bash
pip install -e .

Example :

Create a test file
Create test.py in the root folder:

python
from faceverifyai import verify_face

result = verify_face("person1.jpg", "person2.jpg")
print(result)
Run the test
bash
python test.py
 Expected output
python
{'match': True, 'score': 0.94}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

faceverifyai-0.1.0.tar.gz (1.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

faceverifyai-0.1.0-py3-none-any.whl (1.8 MB view details)

Uploaded Python 3

File details

Details for the file faceverifyai-0.1.0.tar.gz.

File metadata

  • Download URL: faceverifyai-0.1.0.tar.gz
  • Upload date:
  • Size: 1.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for faceverifyai-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0db75f409b70e26f9288f027acaa84f79726949056620e350ac80a9bf307d7f3
MD5 8e49192bfd0aedcc847e1d82b9ffe0ae
BLAKE2b-256 ab399affbfa99715df39dd50d255d4ae40b04c097356032b38ca86604795bb1e

See more details on using hashes here.

File details

Details for the file faceverifyai-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: faceverifyai-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 1.8 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for faceverifyai-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 35c414dc025bc74895e095d39a771ce51647f191dfe0cc651680810e69bd1e01
MD5 5e98f04bccca5f3f6fd71a7730485b6d
BLAKE2b-256 5aea66cfac227c744a375130cf7336c598f749d5934084a70743c70eed972556

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page