Im having problems with Tessnet2. I got it working friday and made some chages to day and broke the hole dam thing. so I have gone back to basic here is my code.
using tessnet2;
if (File.Exists(@"c:\temp\test.jpg") == true)
{
Bitmap image = new Bitmap(@"c:\temp\test.jpg");
tessnet2.Tesseract ocr = new tessnet2.Tesseract();
ocr.Init(@"c:\temp\tessdata", "eng", false); // Problem here
List<tessnet2.Word> result = ocr.DoOCR(image, Rectangle.Empty);
foreach (tessnet2.Word word in result)
Console.WriteLine(word.Text);
}
I have created a Application Config file to help support .net 2 files which works fine, also I have enabled debugging of unmanged code and I have have installed C++ Runtime 2008.
Appconfig File
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0"/>
</startup>
</configuration>
help is reaily needed now please.

New Topic/Question
Reply




MultiQuote







|