Skip to content

Instantly share code, notes, and snippets.

@juucustodio
Created March 22, 2018 21:20
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/4d35ef1a8e683f7b78c27d03e2a48748 to your computer and use it in GitHub Desktop.
Save juucustodio/4d35ef1a8e683f7b78c27d03e2a48748 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
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:DemoFaceVerify"
x:Class="DemoFaceVerify.MainPage">
<StackLayout>
<StackLayout Orientation="Horizontal"
HorizontalOptions="Center"
VerticalOptions="Center" BackgroundColor="DarkSlateGray">
<Image x:Name="MinhaImagem1" Aspect="AspectFill" HeightRequest="200"
WidthRequest="400" HorizontalOptions="CenterAndExpand" />
</StackLayout>
<Button Text="Tirar Foto 1" Clicked="TakePicture1" FontSize="20" />
<StackLayout Orientation="Horizontal"
HorizontalOptions="Center"
VerticalOptions="Center" BackgroundColor="DarkSlateGray">
<Image x:Name="MinhaImagem2" Aspect="AspectFill" HeightRequest="200"
WidthRequest="400" HorizontalOptions="CenterAndExpand" />
</StackLayout>
<Button Text="Tirar Foto 2" Clicked="TakePicture2" FontSize="20" />
<Button Text="Verificar" Clicked="FaceVerify" BackgroundColor="Blue"/>
</StackLayout>
</ContentPage>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment