I store the ocr text in a text file:
Code: Select all
oGdPictureImagingSource.OCRTesseractReinit();
oGdPictureImagingSource.OCRTesseractSetPassCount(5);
sOCR = oGdPictureImagingSource.OCRTesseractDoOCR(iImagePage, "deu", Application.StartupPath + "\\OCR", "");
if (oGdPictureImagingSource.GetStat() == GdPictureStatus.OK)
{
oGdPictureImagingSource.OCRTesseractClear();
System.IO.Stream fs = new System.IO.FileStream("Text.OCR", System.IO.FileMode.Create);
byte[] data = System.Text.Encoding.UTF8.GetBytes(sOCR);
fs.Write(data, 0, data.Length);
fs.Close();
}
What is the problem. When I use the method GetPageTextWithCoords(...) then is the coordinates correct.
Regards
Steffen