Missing methods in GdPicture14
Posted: Wed Mar 28, 2018 5:21 pm
Hello, I'm migrating my app to use GdPicture14 from using GdPicture12.
Some old methods of GdPictureImaging can't be found.
Could you please tell how API changed to migrate my OCR logic intact?
My faulty code is here:
These methods in no longer present in GdPictureImaging class:
OCRTesseractSetOCRContext(context);
OCRTesseractReinit();
OCRTesseractSetPassCount(1);
OCRTesseractDoOCR(_nativeImage, lang, _dictionaryPath, string.Empty);
Some old methods of GdPictureImaging can't be found.
Could you please tell how API changed to migrate my OCR logic intact?
My faulty code is here:
Code: Select all
using (var gdPictureImaging = new GdPictureImaging())
{
var context = OCRContext.OCRContextDocument
gdPictureImaging.OCRTesseractSetOCRContext(context);
gdPictureImaging.ResetROI();
gdPictureImaging.OCRTesseractReinit();
gdPictureImaging.OCRTesseractSetPassCount(1);
var content = gdPictureImaging.OCRTesseractDoOCR(_nativeImage, lang, _dictionaryPath, string.Empty);
return content;
}
OCRTesseractSetOCRContext(context);
OCRTesseractReinit();
OCRTesseractSetPassCount(1);
OCRTesseractDoOCR(_nativeImage, lang, _dictionaryPath, string.Empty);