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 : Thursday, February 23, 2006 4:33:34 AM(UTC)

Laumax  
Laumax

Groups: Registered
Posts: 3


Hi, i currently use the demo version to see if any usage of the OCR library can be of any use in our process.

I tried every single OCR demo application in the CSharp V2.0 version and all worked fine.

I am currently doing some programmation try and i have the following exception in my software.

"Scan soft dll are not loaded"

This exception is raised when i try to call the recognize method of the RasterOcr object.

I presume i did everything fine because the findzone method of the RasterOcr object find every single zone your program finds for the same bmp.

Does any one avec any idea ?

 

(Sorry for my bad english and poor explanation of the problem)

 

 

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 : Sunday, February 26, 2006 5:01:32 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,326

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

Hello,

Please try to install the latest OCR runtime Dlls and files on your machine and retry the same issue.
You can download the latest OCR runtime DLLs by using the following URL:
Http://www.leadtools.com/releasedownloads/v14/leadtoolsocrruntime.exe

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
#3 Posted : Monday, February 27, 2006 10:38:03 PM(UTC)

Laumax  
Laumax

Groups: Registered
Posts: 3


Thanks you but it seems that i have the latest versions. [LEADTOOLS EVAL 14.5]

For the OCR demo application i try to generate i add the following references:

using Leadtools;

using Leadtools.Codecs;

using Leadtools.Demos;

using Leadtools.ImageProcessing;

using Leadtools.Ocr;

using Leadtools.WinForms;

In my main function i do the following:

Support.Unlock(false);

DemosGlobal.SetupCodecsPath(); // I checked all the path are corrects. (I've created my demo project in the same directory as the demo project.)

RasterCodecs _codecs = new RasterCodecs();

RasterOcr _rasterOcr = new RasterOcr();

_rasterOcr.StartUp();

CodecsImageInfo oInfo = _codecs.GetInformation(@"c:\Images\Image2.bmp", true);

_codecs.Options.Load.Passes = 2;   // those values have been found by debugging the official demo appications

_codecs.Options.Load.Rotated = true; // those values have been found by debugging the official demo appications

_codecs.Options.Load.Compressed = true; // those values have been found by debugging the official demo appications

IRasterImage _image = _codecs.Load(@"c:\\Image2.bmp", 0, CodecsLoadByteOrder.BgrOrGray, 1, 1);

_rasterOcr.AddPage(_image, 0);

_rasterOcr.ActivePage = 0;

_rasterOcr.EnableSubSystem = true;

_rasterOcr.EnableCorrection = true;

_rasterOcr.SpellLanguageID = RasterOcrLanguage.English;

_rasterOcr.EnableZoneForceSingleColumn = true;

_rasterOcr.ZoneParser = RasterOcrPageParser.Auto;

_rasterOcr.FindZones(0);

Int32 nCount = _rasterOcr.GetZonesCount(0); // This function works well and have the same behavior than the official ocr demo one.

_rasterOcr.Recognize(0, 1); // This function raise the "Scansoft dll are nor loaded" exception... [:'(]

String strcontent = _rasterOcr.SaveResultsToMemory();

Console.WriteLine(strcontent);

_rasterOcr.ShutDown();

Does anyone have any idea ?

 

 

 

 
#4 Posted : Wednesday, March 1, 2006 2:58:20 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,326

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

Hello,

I think the problem on your machine might be related to one of the following:

(1) Please make sure that you set the RasterCodecs.CodecsPath property points to the correct path on the redist as follows:
+----------------------------+
RasterCodecs.CodecsPath = @"D:\Program Files\LEAD Technologies, Inc\LEADTOOLS 14.5\Redist\DOTNET\v20";    
+----------------------------+

(2) Please make sure to include the following lines of code to your project:
+----------------------------+
RasterOcr.RecognizeStatus += new RasterOcrRecognizeStatus(ocr_RecognizeStatus);
RasterOcr.EnableSubSystem = true;
RasterOcr.EnableCorrection = true;
RasterOcr.SpellLanguageID = RasterOcrLanguage.Auto;
RasterOcr.RecognitionDataFileName = @"c:\test.rdf";
+----------------------------+

Please try the above instructions and let me know what will happen with you.

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
#5 Posted : Wednesday, March 1, 2006 3:12:27 AM(UTC)

Laumax  
Laumax

Groups: Registered
Posts: 3


Thank you,

It finally works now...

The error was due (stragely) to the fact that i didn't initialized the RasterOcr.RecognitionDataFileName variable.

Don't ask me why it shouts that the Scansoft dll were not loading...

Thank you very much ^^

 
#6 Posted : Tuesday, March 14, 2006 12:18:10 PM(UTC)

dkelley  
dkelley

Groups: Registered
Posts: 1


I had the same problem with the scansoft dll error message.  When I set the

rasterOCR.RecognitionDataFileName

to a valid file name, it works.  Without that var set, it throws the aforementioned error.  This response was repeatable.  I saw that one other response to this question found this solution. I am just verifying that it also worked for me.

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