Questions tagged [tessnet2]

Tessnet2 is a .NET open-source assembly using the Tesseract OCR engine.

60 questions
0
votes
1 answer

Tessnet2 close program with System.AccessViolationException

private void Recognize() { Bitmap image = new Bitmap(@"C:\OCRTest\test.jpg"); pictureBox1.Image = image; tessnet2.Tesseract ocr = new tessnet2.Tesseract(); ocr.SetVariable("tessedit_char_whitelist", "0123456789"); …
0
votes
2 answers

C# .net wrapper for tessnet

I try to write wrapper for tessnet OCR library. I am getting an error saying "Cannot marshal 'return value': Generic types cannot be marshaled." for this code section List k = OCRWrapper.DoOCR(new Bitmap(@"C:\Data\pdf2image\auto.png"), new…
yohan.jayarathna
  • 3,423
  • 13
  • 56
  • 74
0
votes
0 answers

Tesseract (tessnet2) cannot read simple numbers

I designed a simple code for extracting the text out of images. The images only contain numbers. This are the images, I want to convert: The result of the OCR conversion is always ~ For this two images, the OCR conversion is giving results with…
Jan021981
  • 521
  • 3
  • 28
0
votes
1 answer

Why Tessnet2 can't extract text?

I using "tessnet2_64.dll" This is my code , extract text: try { var image = new Bitmap(@"D:\Tessnet2\C#\test2.jpg"); var ocr = new Tesseract(); //…
D T
  • 3,522
  • 7
  • 45
  • 89
0
votes
0 answers

Tesseract giving diffrent results for the same image when "tessedit_char_whitelist" is set and ocr is done

I am using tesseract to find text in scanned image, I am trying to set "tessedit_char_whitelist" by calling as follows, so that only alphanumeric search is performed tes_obj.SetVariable("tessedit_char_whitelist",…
0
votes
1 answer

Tessnet 2 return wrong result

I trying to run tessnet on a bitmap returned from a screenshot created with getwindow function but the result is bad. I tried to run on a bmp file saved in paint. This image is same as image created with getwindow and for this the tessnet work. This…
ezegyfa
  • 31
  • 2
0
votes
2 answers

Tessnet2 in WebForms .Net returns DllNotFoundException liblept172.dll

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…
Pete Kozak
  • 493
  • 1
  • 4
  • 21
0
votes
1 answer

Tessnet2 (Tesseract) is not returning the correct results - ways to improve output

I am using tessnet2 (tesseract-ocr) in C# on following image: This is my code: var image = new Bitmap(@"D:\anuj\a2.jpg"); ocr.Init(@"D:\anuj\OCRTest\tessdata", "eng", false); var result = ocr.DoOCR(image, Rectangle.Empty); foreach (Word word in…
user3751794
0
votes
0 answers

Write C# wrapper for latest Tesseract (Like how tessnet did)

I have been using tessnet 2.0 for my project for a while now. But recently I needed to start using a software written by my colleague, and it is not compatible with the tessnet 2.0 dll which uses .NET 2.0. I guess I will have to find a way to write…
Liren Yeo
  • 3,215
  • 2
  • 20
  • 41
0
votes
0 answers

Can't make tessnet2 and tesseract worked to recognize license plate number

I managed to make License Plate Recognition example from emgucv worked. However I didn't get the desired OCR recognition to recognize the license plate number of vehicle at my place. this is the code public class LicensePlateDetector :…
0
votes
0 answers

OCR small image with Tessnet

I am trying to OCR following image using tessnet. Unfortunately it doesn't work. I've tried to Re-scale image or convert this image to bitonal image, but it didn't help. I am using english language pack with following…
Jack
  • 350
  • 2
  • 15
0
votes
1 answer

Read value from List>

I have following code in my C# project: List> RecognizedPlates = DetectLicensePlate(img, licensePlateImagesList, filteredLicensePlateImagesList, licenseBoxList); foreach (List W in RecognizedPlates) { richTextBox1.Text =…
user3259999
0
votes
0 answers

DoOCR Closes active application in C#

I am developing Application in C# about OCR. I use Tessnet2 as OCR engine, here is my code: Bitmap image = new Bitmap(pictureBox1.Image); tessnet2.Tesseract ocr = new tessnet2.Tesseract(); ocr.SetVariable("tessedit_char_whitelist", "0123456789"); //…
user3259999
0
votes
1 answer

Tessract (tessnet2 for .NET) - more than 2 decimal places

I am strugling with a problem of reading data from a table. If a number has got up to 2 decimal places everything looks OK, when number has got 3 decimal places I am not getting decimal point, ie. (instead of getting 5.575 I am getting…
Jack
  • 350
  • 2
  • 15
0
votes
1 answer

Question regrading which files are needed by tessnet2.dll

I made an application for an automated invoice management system for my company. I am using the tessnet2 library for OCR. The whole application works properly on my development machine but as soon as I put the code on the target machine, wihout the…