Skip to content

Instantly share code, notes, and snippets.

@juucustodio
Created March 22, 2018 22:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juucustodio/07859fa03fa46258611ae9162bad50da to your computer and use it in GitHub Desktop.
Save juucustodio/07859fa03fa46258611ae9162bad50da to your computer and use it in GitHub Desktop.
This example show how to building a Xamarin.Forms applications using Microsoft Cognitive Services to identify if two pictures are from same person - http://julianocustodio.com/face-verify
using System;
using Microsoft.ProjectOxford.Face;
using Plugin.Media;
using Plugin.Media.Abstractions;
using Xamarin.Forms;
namespace DemoFaceVerify
{
public partial class MainPage : ContentPage
{
private readonly IFaceServiceClient _faceServiceClient;
private readonly Guid personId;
private Guid faceId1;
private Guid faceId2;
private string filePath1;
public MainPage()
{
InitializeComponent();
_faceServiceClient = new FaceServiceClient("KEY", "URL");
faceId1 = new Guid();
faceId2 = new Guid();
personId = new Guid("PERSONID");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment