Keep the format while using computer vision

Eduardo Gomez 3,416 Reputation points
2022-04-14T10:16:09.353+00:00

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
193132-image.png

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");  
                        }  
Azure Computer Vision
Azure Computer Vision
An Azure artificial intelligence service that analyzes content in images and video.
292 questions
{count} votes