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 ?