Face Recognition Using Kairos API - Tutorial

Teacher
Vivek Gupta
Vivek Gupta
Role : Writing free tutorials in free time
  • Website : http://vsgupta.in/
  • Experience : 5+ Years
  • Specialist in : IoT, NLP, Machine Learning, Chatbots, Voice Assistants, Hardware Engineering
Read More

Face Recognition Using Kairos API – Tutorial

Introduction

As described in summary section, In this tutorial we are going to Face Recognition Using Kairos API. Before beginning, lets see the architecture which we will be using to recognize images using Kairos.

Kairos-Face-Recognition-architecture

Kairos-Face-Recognition-architecture

The architecture consists of two main components:

  1. Kairos Server -

    Kairos Server will allow us to store and train the image through Rest API provided by kairos. Along with that we will leverage API to recognize images. Before sending image to Kairos server, you have to also give in your name and the gallery name before sending the picture. The picture will be saved by your name and the gallery name. Now to recognize the image, The face recognition api from kairos will enable you to pass on the new image along with the gallery name from where you have to search the image. And if it recognizes the image, it will send back a response with success message.

  2. Computer (Server to capture image from webcam) -

    The Computer will allow us to capture image from webcam through HTML pages which we will make to train and recognize image. I have created two different pages for training and recognizing image. We have used HTML5, CSS, Javascript and Jquery. We are using the Materialize library for user interface. It is really beautiful library to create user interfaces and free to use.

Before Starting with the tutorial, get your "APP ID" and "Key" from Kairos by signing up and logging in here:

https://www.kairos.com/

Video:

Follow the below video step by step for complete instructions:

Code :

  1. Face Training (Copy the below code in notepad and save it as .html):
    First we will create the user interface with a navigation bar, two buttons to capture and start the video along with a text box to enter person's name.

    And then we write the javascript function to train the image. Make sure to replace your "APPID" and "APP Key" to yours in the below code.

  2. Face Recognition (Copy the below code in notepad and save it as .html):
    Now we will write code for recognizing the image.

    Make sure to replace your "APPID" and "APP Key" to yours in the below code.

     

You can Download the code from the below github repository.

https://github.com/vikkey321/Face-Recognition-using-Kairos

Support me by subscribing to my YouTube channel by hitting the below button.

youtube-iotmonk-subscribe

Please login to get access to the quiz
Back to Face Recognition Using Kairos API – Tutorial

No Comments

Post a Reply