private RecognitionResult GetResultFromResponse(HttpResponseMessage response)
        {
            var result = new RecognitionResult();

            if (response.IsSuccessStatusCode)
            {
                var     content = response.Content.ReadAsStringAsync().Result;
                dynamic json    = JObject.Parse(content);
                if (json.result == "Found match")
                {
                    result.IsAccessGiven = true;
                    result.Name          = json.names[0];
                }
            }

            return(result);
        }
Example #2
0
 public override void SnapshotProcessed(RecognitionResult recog_result)
 {
     Console.WriteLine("[Optional callback called]: Snapshot processed");
 }