tesseract - Tessnet2 for .Net - exits at the tessocr.Init call -


i have .net console app running in visual studio 10, windows vista home premium. trying tessnet2 example work. here code:

        ocr ocr = new ocr();         using (var bmp = new bitmap(@"c:\aaa\a-nsl\caselines\scanned documents\test_scan_04.jpg"))         {             var tessocr = new tessnet2.tesseract();             tessocr.init(@"c:\users\paul\documents\visual studio 2010\projects\tessnet2wpf\consoleapplication1\bin\debug", "eng", false);             tessocr.getthresholdedimage(bmp, rectangle.empty).save("c:\\temp\\" + guid.newguid() + ".bmp");             // tessdata directory must in directory exe             console.writeline("multithread version");             ocr.doocrmultithred(bmp, "eng");             console.writeline("normal version");             ocr.doocrnormal(bmp, "eng");         } 

the application exits code 1 @ tessocr.init call.

i have placed 9 eng language files in debug directory of application.

not sure else can do?

they need in directory called "tessdata".


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -