Amin Memar

Amin Memar

  • 1.9k
  • 130
  • 4.4k

tesseract ocr version 4

Aug 12 2019 5:01 AM
i want to use tesseract version 4 cause i need persian language
 here is my code
Bitmap img = new Bitmap(@"C:\****\ConsoleApp4\ConsoleApp4\Untitled.png");
            Tesseract.TesseractEngine engine = new Tesseract.TesseractEngine(@"****\ConsoleApp4\ConsoleApp4\tessdata", "fas");
but i got this error
Error opening data file C:\****\ConsoleApp4\ConsoleApp4\tessdata/fas.traineddata
Please make sure the TESSDATA_PREFIX environment variable is set to your "tessdata" directory.
Failed loading language 'fas'
Tesseract couldn't load any languages!
can anyone help me?

Brought to you by:

Answers (1)