Keep the format while using computer vision
Eduardo Gomez
3,431
Reputation points
Hello
I am using computer vision with Azure, to extract text
it works great, but I cannot think of a way to maintain the format
This is what I read
This is the Original, that has spaces
https://notesbucket.blob.core.windows.net/notes/40a9f2d1ab704fd89ecc6f3a59d98755.jpg
This is my code
var txt = await ComputerVision.ReadText(VisionClient, url);
var sb = new StringBuilder();
if (txt != null) {
using (UserDialogs.Instance.Loading("test")) {
foreach (var r in txt) {
foreach (var l in r.Lines) {
sb.Append(l.Text);
}
}
await Application.Current.MainPage.DisplayAlert("",
sb.ToString(), "OK");
}
Sign in to answer