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

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Tuesday, October 18, 2005 6:06:28 AM(UTC)

Otis  
Guest

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.
File Attachment(s):
Find word and highlight.zip (24kb) downloaded 46 time(s).
 

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 : Thursday, September 13, 2007 10:31:57 AM(UTC)

drjones  
drjones

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)

jigar  
Guest

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)

drjones  
drjones

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)

jigar  
Guest

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)

drjones  
drjones

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)

jigar  
Guest

Groups: Guests
Posts: 3,022

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

Yes, the szWord is of type L_WCHAR which is the same as WCHAR.  If you want to conver it to a LPCSTR you can use the WideCharToMultiByte() function in windows.h.  Documentation for it is here: http://msdn2.microsoft.c...us/library/ms776420.aspx

 
#8 Posted : Thursday, September 27, 2007 5:16:30 AM(UTC)

GregR  
GregR

Groups: Registered, Tech Support, Administrators
Posts: 764


This demo has been ported to version 15 in VB.NET 2005.
File Attachment(s):
NET - V15 - Find Word and Highlight.zip (10kb) downloaded 30 time(s).
 
#9 Posted : Thursday, September 27, 2007 5:17:02 AM(UTC)

GregR  
GregR

Groups: Registered, Tech Support, Administrators
Posts: 764


This demo has been ported to version 15 with the C++ Class Library
File Attachment(s):
CLIB - V15 - Find Word and Highlight VC6.zip (51kb) downloaded 24 time(s).
 
#10 Posted : Tuesday, June 30, 2009 11:01:07 AM(UTC)

GregR  
GregR

Groups: Registered, Tech Support, Administrators
Posts: 764


For 16.0, 16.5, & 17.0 versions, please visit http://support.leadtools...rums/24558/ShowPost.aspx

For 17.5, please vist http://support.leadtools...9405/ShowPost.aspx#39405
 
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-2024, Yet Another Forum.NET
This page was generated in 0.131 seconds.