LEADTOOLS Support
Document
Document SDK Questions
Find words in document and highlight with annotations
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Tuesday, October 18, 2005 6:06:28 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
The attached VB.NET example will allow you to load an image and perform OCR on it. You can then specify a word you wish to search for within the image. If the word is found, a highlight annotation will be displayed over the word.
#2
Posted
:
Thursday, September 13, 2007 10:31:57 AM(UTC)
Groups: Registered
Posts: 5
Hi:
Is there a VC++ version of this code? Any pointers would be useful. Thanks. Anand
#3
Posted
:
Friday, September 14, 2007 6:10:48 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
Hello,
Unfortunately, we don't have one available in VC++, but the code flow is the same. You just have to use the corresponding functions available in the API library. Our C++ Class Library is very close to this. If you have anything specific that you have trouble with we can help you out with that.
Thank You
#4
Posted
:
Friday, September 14, 2007 6:51:29 AM(UTC)
Groups: Registered
Posts: 5
Thanks, I could figure it out. But when I output the recognized word to a file, it prints out hex (even if I use the %s qualifier). Am i missing anything obvious? Thanks
#5
Posted
:
Friday, September 14, 2007 7:26:56 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
Hello,
Can you post the code snippet which gets a word from the recognized page and prints it to the console/file. I'm thinking it's because it might be returning in Unicode char set, but I'm not 100% sure on it.
#6
Posted
:
Friday, September 14, 2007 7:53:04 AM(UTC)
Groups: Registered
Posts: 5
yes it is returning the unicode charset. I tried:
myfile << pRecogWords[i].szWord; // (prints unicode)
myfile << printf("%s",pRecogWords[i].szWord); // (prints a single digit)
and similar combinations.
Thanks
#7
Posted
:
Friday, September 14, 2007 10:01:54 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
#8
Posted
:
Thursday, September 27, 2007 5:16:30 AM(UTC)
Groups: Registered, Tech Support, Administrators
Posts: 764
This demo has been ported to version 15 in VB.NET 2005.
#9
Posted
:
Thursday, September 27, 2007 5:17:02 AM(UTC)
Groups: Registered, Tech Support, Administrators
Posts: 764
This demo has been ported to version 15 with the C++ Class Library
#10
Posted
:
Tuesday, June 30, 2009 11:01:07 AM(UTC)
Groups: Registered, Tech Support, Administrators
Posts: 764
LEADTOOLS Support
Document
Document SDK Questions
Find words in document and highlight with annotations
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.