Welcome Guest! To enable all features, please Login or Register.



Last Go to last post Unread Go to first unread post
#1 Posted : Wednesday, August 22, 2018 4:38:18 AM(UTC)

Groups: Registered
Posts: 2

Thanks: 1 times

I'm new here and using VB.NET 2017.

Can someone please give me an example how to OCR an image with text on it and then find a specific text phrase to locate it's center X Y coordinates?

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Wednesday, August 22, 2018 11:51:14 AM(UTC)
Anthony Northrup

Groups: Registered, Tech Support, Administrators
Posts: 199

Was thanked: 27 time(s) in 27 post(s)


You can either use our OCR engine directly, or our Documents SDK for extracting the text from a file. If you'll only ever be processing images I'd probably recommend the OCR engine directly as it gives access to more details about the accuracy of the result (should you need that).

For our OCR engine, you'll mainly want to be comparing your search text to the OcrWords on the page. These can be found using the GetWords method of the IOcrPageCharacters class:

We have a simply tutorial for getting started with our OCR engine both in C# and VB, you can use similar logic to the zone highlighting for your needs:

If you'd like a more complete example that shows how to highlight words throughout a document, we have a C# sample on our forums (you can easily translate C# to VB with a variety of tools online):

Anthony Northrup
Developer Support Engineer
LEAD Technologies, Inc.

thanks 1 user thanked Anthony Northrup for this useful post.
ocnuybear on 8/22/2018(UTC)
#3 Posted : Wednesday, August 22, 2018 12:09:23 PM(UTC)

Groups: Registered
Posts: 2

Thanks: 1 times

Thank you Anthony :)
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2021, Yet Another Forum.NET
This page was generated in 0.039 seconds.