Hi Loic,
I am trying to test the OCR tools but I am having a problem.
I would like to hightlight on the image where specific text is found. To do this, after DoOCR, I call GetCharTop and GetCharLeft for a given position of a string of text. This should return the starting top and left position of the text in pixels. I then call DrawFillRectangle using these coordinates. It appears that GetChar is not very accurate. Do you have any suggestions?
Thanks,
Heard
GetCharTop & GetCharLeft
Re: GetCharTop & GetCharLeft
Loic,
I solved it. I was counting the spaces also which was throwing off the character offset. Once I condensed the ocr output to a single string with no spaces, it works fine.
Heard
I solved it. I was counting the spaces also which was throwing off the character offset. Once I condensed the ocr output to a single string with no spaces, it works fine.
Heard
Who is online
Users browsing this forum: No registered users and 1 guest