All Projects → 12345k → Multi-Face-Comparison

12345k / Multi-Face-Comparison

Licence: other
This repo is meant for backend API for face comparision and computer vision. It is built on python flask framework

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Multi-Face-Comparison

Mobileface
A face recognition solution on mobile device.
Stars: ✭ 669 (+3245%)
Mutual labels:  face, face-recognition, face-detection
Human Detection And Tracking
Human-detection-and-Tracking
Stars: ✭ 753 (+3665%)
Mutual labels:  face, face-recognition, face-detection
Facecropper
✂️ Crop faces, inside of your image, with iOS 11 Vision api.
Stars: ✭ 479 (+2295%)
Mutual labels:  face, face-recognition, face-detection
Look4Face
Demo of Face Recognition web service
Stars: ✭ 23 (+15%)
Mutual labels:  face, face-recognition, face-detection
FaceIDLight
A lightweight face-recognition toolbox and pipeline based on tensorflow-lite
Stars: ✭ 17 (-15%)
Mutual labels:  face, face-recognition, face-detection
Imagedetect
✂️ Detect and crop faces, barcodes and texts in image with iOS 11 Vision api.
Stars: ✭ 286 (+1330%)
Mutual labels:  face, face-recognition, face-detection
Awesome Face
😎 face releated algorithm, dataset and paper
Stars: ✭ 739 (+3595%)
Mutual labels:  face, face-recognition, face-detection
Face Recognition.js
Simple Node.js package for robust face detection and face recognition. JavaScript and TypeScript API.
Stars: ✭ 1,768 (+8740%)
Mutual labels:  face, face-recognition, face-detection
Dockerface
Face detection using deep learning.
Stars: ✭ 173 (+765%)
Mutual labels:  face, face-recognition, face-detection
Lookatme
VideoView that plays video only when 👀 are open and 👦 is detected with various other features
Stars: ✭ 161 (+705%)
Mutual labels:  face, face-recognition, face-detection
Nearest-Celebrity-Face
Tensorflow Implementation of FaceNet: A Unified Embedding for Face Recognition and Clustering to find the celebrity whose face matches the closest to yours.
Stars: ✭ 30 (+50%)
Mutual labels:  face, face-recognition, deeplearning
timeline
Timeline - A photo organizer
Stars: ✭ 39 (+95%)
Mutual labels:  face, face-recognition, face-detection
face
[deprecated] 👽 Face Recognition package for Laravel
Stars: ✭ 37 (+85%)
Mutual labels:  face, face-recognition, face-detection
WhoAreYou
Face detection and recognition with CoreML and ARKit
Stars: ✭ 91 (+355%)
Mutual labels:  face-recognition, face-detection
FaceRecognition With FaceNet Android
Face Recognition using the FaceNet model and MLKit on Android.
Stars: ✭ 113 (+465%)
Mutual labels:  face-recognition, face-detection
Face-X
Demonstration of different algorithms and operations on faces. Join the Discord channel for discussion.
Stars: ✭ 226 (+1030%)
Mutual labels:  face-recognition, face-detection
Insta flters with python
With this program you can add hat & glass on your face(it's support multiple faces)
Stars: ✭ 21 (+5%)
Mutual labels:  face, face-detection
face-swap
换脸程序
Stars: ✭ 32 (+60%)
Mutual labels:  face-recognition, face-detection
shunyaface
Fast Face Recognition on the edge
Stars: ✭ 49 (+145%)
Mutual labels:  face-recognition, face-detection
DeepVTB
🌌 OpenVTuber-虚拟アイドル共享计划 An application of real-time face and gaze analyzation via deep nerual networks.
Stars: ✭ 32 (+60%)
Mutual labels:  face, face-detection

Multi-Face-Comparison

Compare two images and it will return True or False. This is the main focus of this repo. I have attached two py file. One is compare_image.py this can be run in the terminal with two images name like

karthick_aravindan@ml-machine:~/Documents/Two-Face-Comparison$ python compare_image.py image_1.jpg image_2.jpg

Another File is app.py. This file is api which can be attached to website or other apps. In this we compare multiple faces with one target image.

Requirment

pip install face_recognition
pip install flask
pip install scipy

Run

> karthick_aravindan@ml-machine:~/Two-Face-Comparison$ python app.py

Flask api will be hosted 8000 port

Endpoints

  • /api/v1/compare_faces
  • /api/v1/detect_faces

Output for compare_image.py

Distance and Boolean value. Distance is higher means it is false and lower is True

command line output
> karthick_aravindan@ml-machine:~/Two-Face-Comparison$ python compare_image.py  ami.jpg AMI.jpg  
> 0.5439451765528829
> True

Output for compare face API

Output will be in json format. Addition I have calculate time take to predict

Example
[
    {
        "result": "True",
        "distance": 0.0,
        "time_taken": 0.29,
        "target": "rajini.jpeg",
        "face": "rajini.jpeg"
    },
    {
        "result": "False",
        "distance": 0.77,
        "time_taken": 0.339,
        "target": "rajini.jpeg",
        "face": "kamal.jpg"
    }
]    

I have used postman to check the api. The url mostly will be like http://localhost:8000/compare_faces in POST format.

form-data key name will be target and faces in Postman

request

Detect Faces API

It will returns list of face coordinates for the images.

Example

[
    {
        "coordinates": [
            {
                "ymin": 46,
                "xmin": 175,
                "ymax": 136,
                "xmax": 86
            }
        ],
        "time_taken": 0.046,
        "image_name": "kamal.jpg"
    },
    {
        "coordinates": [
            {
                "ymin": 32,
                "xmin": 101,
                "ymax": 84,
                "xmax": 49
            }
        ],
        "time_taken": 0.016,
        "image_name": "harry.jpg"
    }
]

request

command line output
> karthick_aravindan@ml-machine:~/Two-Face-Comparison$ python detect_face.py image_path/ami.jpg
> Coordinates:  [(53, 114, 115, 52)]

Links for other resources

https://face-recognition.readthedocs.io/en/latest/installation.html

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].