tessnet2

Tessnet2 in WebForms .Net returns DllNotFoundException liblept172.dll

混江龙づ霸主 提交于 2019-12-25 07:09:56
问题 I wrote a basic app using Tessnet2 and now trying to move it to a WebForms website. Copied the logic etc. but when I run it I get an error message(Exception: DllNotFoundException) "An exception of type System.DllNotFoundException" occured in Tesseract.dll but was not handled in user code. Additional information: Failed to find library "liblept172.dll" for platform x86." As said above, this code works as a C# console and after applying necessary logic to move it to the website I thought I

Can't find referenced assembly when compiling for Windows Mobile

孤街浪徒 提交于 2019-12-22 18:49:49
问题 I decided to use tessnet2 library for my Windows Mobile 6 project. Unfortunetly while I am trying to compile it, it throws an error: The best overloaded method match for 'tessnet2.Tesseract.GetThresholdedImage(System.Drawing.Bitmap, System.Drawing.Rectangle)' has some invalid arguments The type 'System.Drawing.Rectangle' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' OK,

Tessnet2 Init-Method crashes with certain tessdata path

ε祈祈猫儿з 提交于 2019-12-20 04:22:31
问题 I'm using the Tessnet2 assembly (which uses Tesseract) to do OCR. Unfortunately the programm crashes without any exception after I call the init method: tessnet2.Tesseract ocr = new tessnet2.Tesseract(); ocr.Init(@"D:\Test\Tessdata\german", "deu", false); The german folder contains the following tesseract 2 word data: deu.DangAmgigs deu.freq-dawg deu.inttemp deu.normproto deu.pffmtable deu.unicharset deu.user-words deu.word-dawg If I use null for the path it works fine because I installed

tessnet2 fails to load

﹥>﹥吖頭↗ 提交于 2019-12-18 11:48:24
问题 i'm using the tessnet2 wrapper to the Tesseract 2.04 Source on windows XP, configured it to work with x86. TessarctTest project main function contains: Bitmap bmp = new Bitmap(@"C:\temp\New Folder\dotnet\eurotext.tif"); tessnet2.Tesseract ocr = new tessnet2.Tesseract(); // ocr.SetVariable("tessedit_char_whitelist", "0123456789"); ocr.Init(@"C:\temp\tessdata", "eng", false); // List<tessnet2.Word> r1 = ocr.DoOCR(bmp, new Rectangle(792, 247, 130, 54)); List<tessnet2.Word> r1 = ocr.DoOCR(bmp,

What files should be included in the tessdata folder after training tesseract?

别来无恙 提交于 2019-12-12 19:28:33
问题 I am using tesseract as the OCR engine for my ANPR application. I have trained tesseract 3.01v with the numberplate font. But I need to know: Which files should be included in the tessdata folder? Should I use the same tessdata folder where tesseract 3.01v is installed? I have trained with tesseract 3.01v and I am using tessnet2 in my code so will it be a problem? Following is the code that I tried it with but it keeps exiting from the DoOcr() method. List<tessnet2.Word> ocrText = new List

Cannot find a way to make tessnet2 work

流过昼夜 提交于 2019-12-11 18:33:23
问题 I have created a console application. Added a reference to tessnet2_32. Ocr ocr = new Ocr(); using (Bitmap bmp = new Bitmap(filename)) { tessnet2.Tesseract tessocr = new tessnet2.Tesseract(); tessocr.Init(@"C:\temp\tessdata", "eng", false); ... I also tried changing "C:\temp\tessdata" to C:\work\ConsoleApplication3\ConsoleApplication3 C:\work\ConsoleApplication3\ConsoleApplication3\tessdata C:\work\ConsoleApplication3\ConsoleApplication3\bin\debug C:\work\ConsoleApplication3

Tessnet2 error in C#

风格不统一 提交于 2019-12-11 04:00:08
问题 I am using Tessnet2 ocr in C# by following codes: tessnet2.Tesseract ocr = new tessnet2.Tesseract(); ocr.SetVariable("tessedit_char_whitelist", "0123456789"); ocr.Init(Application.StartupPath + @"D:\\Program Files (x86)\\Visual Studio 2010\\Projects\\AForgeTest2\\AForgeTest2\\tessdata\\", "eng", true); List<tessnet2.Word> result = ocr.DoOCR(numberTest, Rectangle.Empty); string code = result[0].Text; testBox1.Text = code; but when I run the debug it shows the error message in the 5th line:

c# PDF to Bmp for free

北慕城南 提交于 2019-12-07 14:32:50
问题 I am writing a program that uses OCR (tessnet2) to scan an image file and extract certain information. This was easy before I found out that I was going to be scanning attachments of PDFs from an Exchange server. The first problem I am working on is how to convert my PDFs to BMP files. From what I can tell so far of TessNet2, it can only read in image files - specifically BMP. So I am now tasked with converting a PDF of indeterminate size (2 - 15 pages) to BMP image. After that is done I can

Can't find referenced assembly when compiling for Windows Mobile

﹥>﹥吖頭↗ 提交于 2019-12-06 13:39:17
I decided to use tessnet2 library for my Windows Mobile 6 project. Unfortunetly while I am trying to compile it, it throws an error: The best overloaded method match for 'tessnet2.Tesseract.GetThresholdedImage(System.Drawing.Bitmap, System.Drawing.Rectangle)' has some invalid arguments The type 'System.Drawing.Rectangle' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' OK, I know. Add reference to the assembly. The problem is, that I did it. I add reference by 'Add

c# PDF to Bmp for free

岁酱吖の 提交于 2019-12-06 03:48:11
I am writing a program that uses OCR (tessnet2) to scan an image file and extract certain information. This was easy before I found out that I was going to be scanning attachments of PDFs from an Exchange server. The first problem I am working on is how to convert my PDFs to BMP files. From what I can tell so far of TessNet2, it can only read in image files - specifically BMP. So I am now tasked with converting a PDF of indeterminate size (2 - 15 pages) to BMP image. After that is done I can easily scan each image using the code I have built already with TessNet2. I have seen things using