ferreirix / C-sharp-client

Recognize.im API client for C#

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Recognize.im API

This class provides access to Recognize.im API.

Usage

string client_id = "1"; //API User ID
string clapi_key = "c80fg457eff59f7fff44b9372bafgf2"; //CLAPI user key
string api_key = "0987ads35a"; //API user key

//initialize proxy class
recognize.recognizeProxy proxy = new recognize.recognizeProxy(client_id, api_key , clapi_key);

//insert new image
Dictionary<string, string> response1 = proxy.imageInsert("CSharp1", "C# sample name", "poznan.jpg");

//apply changes
Dictionary<string, string> response2 = proxy.indexBuild();

//check progress of applying changes
Dictionary<string, string> response3 = proxy.indexStatus();

//recognize image
recognize.recognitionResponse response4 = proxy.recognize("poznan.jpg");

//draw frames
Image image = Image.FromFile("poznan.jpg");
Image frames = response4.drawFrames(image);
if(frames != null) frames.Save("frames.jpg");

Authorization

You don't need to call method auth by yourself, you just need do provide valid credentials. You can get them from your account tab

About

Recognize.im API client for C#


Languages

Language:C# 100.0%