Hi,

I am getting the error as like below for the code snippet.

cannot convert from 'System.Drawing.Bitmap' to 'Tesseract.Pix'

Code:

using System.Drawing;
using Tesseract;

Bitmap img = (Bitmap)Bitmap.FromFile("/Users/prkotagi/Desktop/Test.bmp"); 
TesseractEngine engine = new TesseractEngine("/Volumes/Macintosh HD - 
Data/Csharpcode/eng.traineddata","eng",EngineMode.Default);
Page page = engine.Process(img, PageSegMode.Auto);
string result = page.GetText();
Console.WriteLine(result);

-- 
You received this message because you are subscribed to the Google Groups 
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tesseract-ocr+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/12038bf8-0b83-45c4-82cb-a5b7e72736f2n%40googlegroups.com.

Reply via email to