Using Microsoft Azure Face API,https://docs.microsoft.com/en-in/azure/cognitive-services/face/overview.
The Identify API can be used to identify a detected face against a database of people. This may be useful for automatic image tagging in photo management software. You create the database in advance, and it can be edited over time.
The following image depicts an example of a database named "myfriends." Each group may contain up to 1,000,000 different person objects, and each person object can have up to 248 faces registered.
- 1. You should have a valid Microsoft Azure account to use Face API. This project uses a trail API_ENDPOINT and SUBSCRIPTION_KEY.
- 2. Create a "PersonGroup" to hold the source photos of the people.
- 3. Create a "PersonGroup.Person" for each employee and add it to the group.
- 4. Train the PersonGroup (it is asynchronous).
- 5. Get the TrainingStatus - should return "status": "succeeded".
- 6. Get the faceId of the query face using Face.Detect API. It will return a faceId to be used in step 6.
- 7. Run Face.Verify API with the personGroupId and the query "faceId".