RPA Hackathon by Vincix Group - Need Help in Level 2

I am trying out Hackathon by Vincix group and I am stuck in one of question in Level 2.


I have tried reading the string and splitting the string with respect to the space and stored in the string array. I got the last value of string array for which I have to find the coordinates of.
I can’t figure out how can I find the coordinates.
I know I can use Get OCR TEXT but i am not sure how to use it

@Rajat_16 Use Find OCR text position, and assign Output variable(ocrText) to Tesseract OCR. Iterate through the values in the ocrText, you will find the coordinates with the text as a Key value pair.

1 Like

Hi @supermanPunch, Im trying to but I’m getting trouble on the same part of getting ocr position, it’s needed iterate the ocr?Can you explain a bit more detailed? Thanks

Use Find children activity,

loop through the images one by one then
Do OCR scrape for each image - once u find the match then get Row No. and Column No using get attribute activity

Thanks!

1 Like

Did that but isn’t working :confused:

Hi @mmcruzRPA,

VincixRPAChallengeLevel-2.xaml (17.0 KB)

Please refer this workflow. Go to step 6 in level-2 and test it.

Thanks!

1 Like

Thank you so much for your help @kadiravan_kalidoss!
I’m getting error in Get OCR Text, says, value cannot be null.

true

set “true” value in ContinueOnError Property under Get OCR text activity.

Thanks!

1 Like

It’s already true @kadiravan_kalidoss, I put the Get OCR in try catch and now don’t gives error, but now I’m getting from If condition error “Object reference not set to an instance of an object”.

In if condition, please use below statement:

Not string.IsNullOrEmpty(strOut) and strOut.Contains(“table”)

Thanks!

1 Like

Yes is the same if inside the workflow you uploaded, I’m testing the workflow you uploaded, but gives error to me :confused:

VincixRPAChallengeLevel-2.xaml (17.8 KB)

For me its working fine, modified few changes in if statement. Please check it out.

Note: Change the word “table” to your text under this statement.

strOut.Contains(“table”)

Thanks!

1 Like

Now I don’t get any error, but don’t receive any output, I will take a more detailed look to this situation.
Thanks!

1 Like