question

EduardoGomez-1870 avatar image
0 Votes"
EduardoGomez-1870 asked YutongTie-MSFT edited

Keep the format while using computer vision

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
image.png (61.7 KiB)
· 7
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello @EduardoGomez-1870

Thanks for reaching out to us, is there any prioritized requirement from you for the format? I have checked on the pic you shared, I am afraid that if you mean you want to keep the same font size, it's impossible. But I would like to check about other requirement which you need. Please let me know.

Regards,
Yutong

0 Votes 0 ·

No, I do not need the font size, or the color, I just need the extracted text, to respect the space between words or paragraphs

0 Votes 0 ·

Hello @EduardoGomez-1870

Thanks for the information, I will check with product group about this limitation and see any workaround about this.

Regards,
Yutong

0 Votes 0 ·

by the way this is my app, in case you want to see it

https://github.com/eduardoagr/DuoNotes

0 Votes 0 ·

Look at tis picture

https://notesbucket.blob.core.windows.net/notes/6a7965af302d46e0a811e6b19ce0caad.jpg

And this is is what my app is extacting193955-image.png

Thre is no spaces betwen words or paragraps


0 Votes 0 ·
image.png (79.7 KiB)

Did you check the picture @YutongTie-MSFT, to see if yo can help me

0 Votes 0 ·

Hello @EduardoGomez-1870

Thanks for your picture, I have forwarded this to engineering group to look into it. I will let you know once I get any response regarding to this.


Regards,
Yutong

0 Votes 0 ·

0 Answers