Face Comparision Using Face++ and Python
Prerequisites: Python Programming Language
Python is a high-level general-purpose language. It is used for multiple purposes like AI, Web Development, Web Scraping, etc. One such use of Python can be Face Comparison. A module name python-facepp can be used for doing the same. This module is for communicating with Face++ facial recognition service.
- python-facepp – To install this module type the below command in the terminal.
pip install python-facepp
- emoji – To install this module type the below command in the terminal.
pip install emoji
This app compares two photographs of the same person or two different persons against his/her face features like face landmarks, beauty score, face emotion, etc. If both photographs are matching with each other, the app result is “Both photographs are of same person ” otherwise app result is “Both photographs are of two different persons”.
This app is used mainly for a face verification process like “to deliver some confidential
document to you, courier boy first verify your face and then deliver a courier.”
facepp API is allowed only to compare image URL links of two photographs.
Convert Image to URL using
In this website, choose your photograph from your local drive by click on the “choose images” button and then this website will create different URL links after processing your photograph.
(See below images)
We will be using two pairs of photos for comparison.
Below is the implementation.
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course