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



Last Go to last post Unread Go to first unread post
#1 Posted : Friday, December 22, 2006 2:18:07 AM(UTC)

Groups: Registered
Posts: 3

Hi there!
I was using OCR in version 11.5 and there was the method


This displayed a dialog where the user could see the image and the recognized text simultaneously. Is this functionality gone in 14.5 or do I simply have to create the whole dialog from scratch?

Thanks in advance
Michael Asteriou


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 : Monday, December 25, 2006 6:22:50 AM(UTC)

Adnan Ismail  

Groups: Guests
Posts: 3,022

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

Hello Michael,

The dialog is not available version 14.5. You need to create
your own dialog and use the Verification event (ILTZoneData) to report the suggested word for the last recognized word in a specific zone.

#3 Posted : Wednesday, July 11, 2007 11:54:16 AM(UTC)


Groups: Registered
Posts: 7


   I am using lead tools version 13 and upgrading to version 14.5. Inaddition to Recognizeocr, I am using the following functions:

LTOcr->SetPolygonX(nPt, x);

LTOcr->SetPolygonY(nPt, y);

LTOcr->SaveDoc(cpTextFile, FILE_ASCII_STANDARD);

LTOcr->SetZone(1,OCRZONE_TYPE_TEXT, LTOcr->GetLanguage(),

0, // no predefined lexical class

0, // no user lexical class

OCRLEX_NO_LEXICAL, 1); // zone 1 is king

Do I need to implement these functions from scratch.

Any information is appreciated.

#4 Posted : Thursday, July 12, 2007 5:51:31 AM(UTC)


Groups: Registered, Tech Support, Administrators
Posts: 764

I do not see those functions documented in our OCR help files.  Please be more specific as to which interface you are using.

Are you using some of the demos or code from the demos that came with
the toolkit by chance?  Some of our demos will wrap certain
functionality like OCR into new classes, perhaps that's what you are
using.  If that is the case, then you will likely not have that same
class in 14.5's demos since we made major changes to our demos between 13 and 14.5.
#5 Posted : Thursday, July 12, 2007 9:21:52 AM(UTC)


Groups: Registered
Posts: 7


   Could you please refer to the chain of mails above. In one of the mails Adnan has mentioned regarding recognizeocr function. I am not using any demos. My application has been using it and I am not able figure out the corresponding dll or ocx for the above mentioned functions in version 13 as well as 14.5. What I have learnt from Adnans' thread that recognizeocr is not available so I would like to know the status of other functions.

Also, it would be great if could share the corresponding binary of ltroc13n.dll in version 14.5 . It has been removed in version 14.5 and my application is making use of functions implemented in ltroc13n. Could you please refer your development and get the required information.


Thanks in advance.


#6 Posted : Thursday, July 12, 2007 11:40:16 AM(UTC)


Groups: Registered, Tech Support, Administrators
Posts: 764

The help file(s) should have a version history that will explain most
of the major changes made to functions and dlls between versions 13, 14 and 14.5.  Please read those articles

If you still have trouble finding the new functions, then you will need to answer the first question I asked.  Which interface (API, COM, etc.) are you using?  If you tell me this I will be able to consult the proper documentation in order to help you find what you're looking for.

I believe that ltroc13n.dll was used for helping you register files.  We got rid of that dll and didn't replace it or move its functionality to anything else as far as I know.  What were you using it for and what functions did you use?
#7 Posted : Thursday, July 12, 2007 12:34:23 PM(UTC)


Groups: Registered
Posts: 7

Hi Greg,

   Thanks for your prompt response. These are some of the functions and constants used in my application wrt ltroc13:


1) short ILEADRasterOCR::AddPagesFromBitmap ( short iPageIndex, long lBitmap, VARIANT_BOOL bAddList )

2) void ILEADRasterOCR::PutEnableMethodErrors ( VARIANT_BOOL pVal )

3)ILEADRasterOCR::SetSegment ( short iPageIndex, struct ILTOCRSegmentInfo * pltSegInfo, VARIANT_BOOL bAddSegment )

4) short ILEADRasterOCR::RecognizeSegment ( short iPageIndex, long lSegmentID, enum TEXT_OUTPUT_FORMAT TextFormat, long lFlags, BSTR * pbstrSegText, short * piSegTextLen )

5) short ILEADRasterOCR::FreeSegment ( struct ILTOCRSegmentInfo * pltSegInfo )

6) short ILEADRasterOCR::UpdateOptions ( )

7) short ILEADRasterOCR::SetActiveLangs ( long lLangGroupId, const _variant_t & vLangSubIds, short iLangSubCount ) {



1)    UseCharacterMode

2)      ShowVerificationDialog

3)      EnableVerificationEvent

4)      OperatingOptions

5)      VerificationMode

6)      UseHeaderFooter

7)      LeftSingleQuote

8)      RightSingleQuote

9)      LeftDoubleQuote

10)  RightDoubleQuote

11)  QuestionableChar

12)  UnrecognizedChar


Could you please tell me the corresponding dll and ocx binaries which contains the above functions and constants.

I am still analyzing recognizeocr to provide more information and get back to you asap.

Thanks in Advance


#8 Posted : Saturday, July 14, 2007 10:16:32 AM(UTC)


Groups: Registered
Posts: 7


It would be great if you could give some idea regarding ltroc13n.

Thanks in Advance
#9 Posted : Monday, July 16, 2007 6:50:34 AM(UTC)


Groups: Registered, Tech Support, Administrators
Posts: 764

The COM OCR engine was completely redesigned between 13 and 14, so unfortunately there is no version history available, nor are there any direct corresponding dlls, functions, and ocxs

ltroc13n.dll was removed in 13.  The COM OCR functionality in 14 is within ltrdc14n.dll

For the functions and constants that have something close, I'll give that to you, but otherwise they were removed and you will  need to consult the documentation to implement the same logic you previously used.


1. ILEADRasterDocument.Addpage
2. ILEADRasterDocument.EnableMethodErrors
3,4,5,6. Segmentation does not exist in 14.  See the article "Working with zones"
7. ILEADRasterDocument.ActiveLanguage

These have all been reorganized or removed.
1, 2, 3, 5: See "Working with zones" and "Using the ILTZoneData Properties"
11,12: See "Using Recognized Characters"
The header/footer, single/double quotes have been removed.
#10 Posted : Monday, July 16, 2007 4:35:24 PM(UTC)


Groups: Registered
Posts: 7

Thanks for the update Greg.


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.184 seconds.