How to coordinates of text in image

How to get coordinates of text in image Using Microsoft ocr
Need to find Result(IEnumerable<KeyValuePair<Rectangle,String>>)

Please suggest with some example.

License type(Free, Trial/License code): Uipath communtiy edition 2019.8

Screenshot:

image

May i know from which activity we are getting this datatype of variable
Cheers @abhiseky93

1 Like

@Palaniyappan I am using Microsoft Ocr Activity

1 Like

fine
sorry for the delayed response
–once after using microsoft ocr (here i have used Google ocr)
use a for each loop activity and pass the output variable of type microsoft ocr as input and keep the type argument as object
–inside the loop use a write line activity and mention like this
item.tostring
which would give us the coordinates buddy, for the region we have choosen

but make sure that while SCREEN SCRAPPING YOU SHOULD HAVE ENABLED THIS OPTION THEN ONLY we will get the coordinates of each word like this

it worked as well

Cheers @abhiseky93

1 Like

Thanks for your instant reply but unable to find Google Ocr there is Google Vision Ocr which has Key can you help me out how can i store

image
Main.xaml (6.6 KB)

1 Like

@abhiseky93 Search for tesseract ocr this is nothing but google ocr in older version it was named as google ocr now it is renamed to tesseract ocr

1 Like

@indra How to access IEnumerable output variable ? IEnumerable<KeyValuePair<Rectangle,String>> How to declare and get value can you provide some example