Skip to content

kairosinc/Kairos.Net

 
 

Repository files navigation

Build status

Kairos.Net

A .NET Wrapper for the Kairos.io Facial Recognition API written in C#.

License: MIT

About Kairos.io

For more information and to register for an API key, visit http://kairos.com/.

This library allows you to interact with the Kairos API for secured cloud-based facial recognition capabilities.

Install via nuget (recommended), or download the latest build from here.

Usage

The .NET library allows you to detect, enroll and recognize a face or faces from an image located on the internet.

Enroll a user

Kairos.API.KairosClient client = new Kairos.API.KairosClient();

// Set your credentials
client.ApplicationID = "your_app_id";
client.ApplicationKey = "your_app_key";

// Enroll a user
var response = client.Enroll("http://localhost/myimage.jpg", "myuserid");

Recognize a user

Kairos.API.KairosClient client = new Kairos.API.KairosClient();

// Set your credentials
client.ApplicationID = "your_app_id";
client.ApplicationKey = "your_app_key";

// Attempt user recognition
var recognizeResponse = client.Recognize("http://localhost/myimage.jpg");

// Get the recognized user ID
var userID = recognizeResponse.Images[0].Candidates.First().Key;  

Detect faces

Kairos.API.KairosClient client = new Kairos.API.KairosClient();

// Set your credentials
client.ApplicationID = "your_app_id";
client.ApplicationKey = "your_app_key";

// Detect the face(s)
var detectResponse = client.Detect("http://wellness.18signals.com/kairos.jpg");

// Get the image and information on the first recognized face
var detectedImage = detectResponse.Images[0];
var face = detectedImage.Faces[0];

Meta

Thanks to Cole Calistra, Brian Brackeen, Humberto Lee, and Dan McGrath.

About

A .NET Wrapper for the Kairos.io Facial Recognition API written in C#

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 99.0%
  • Batchfile 1.0%