Skip to content

Instantly share code, notes, and snippets.

@juucustodio
Created March 14, 2018 21:29
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/9ecb2ed35efe42bfc20d7264c9dfc9a5 to your computer and use it in GitHub Desktop.
Save juucustodio/9ecb2ed35efe42bfc20d7264c9dfc9a5 to your computer and use it in GitHub Desktop.
Example of Xamarin.Forms App to get handwritten text from an image using Microsoft Cognitive Services - http://julianocustodio.com/HandwritingText
<?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:DemoHandwritingText"
x:Class="DemoHandwritingText.MainPage">
<ScrollView>
<StackLayout>
<StackLayout Orientation="Horizontal"
HorizontalOptions="Center"
VerticalOptions="Center">
<Image x:Name="MinhaImagem" Aspect="AspectFill" HeightRequest="200"
WidthRequest="400" HorizontalOptions="CenterAndExpand" />
</StackLayout>
<Button Clicked="TakePicture" Text="Foto"></Button>
<Label x:Name="Resultado" FontAttributes="Bold" FontSize="20"
HorizontalOptions="CenterAndExpand"/>
</StackLayout>
</ScrollView>
</ContentPage>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment