oGDPictureImaging.OCRTesseractGetOrientation() always 0

Discussions about Tesseract OCR integration in GdPicture.
Post Reply
hipersoft
Posts: 2
Joined: Fri Jun 19, 2015 10:23 am
Location: Hungary

oGDPictureImaging.OCRTesseractGetOrientation() always 0

Post by hipersoft » Sat Aug 01, 2015 7:35 pm

Hello,

I want to ask for help with getting the orientation of an image.

I am using GdPicture.NET 11.
I have tried to get the orientation of the text of an image, but I always get "0".
Program step-by-step:
Scan page
Apply filters to the image (like rotation)
OCR

Even if I set the rotation to 90 in the Filters section it returns 0

Code:
int rotation = oGDPictureImaging.OCRTesseractGetOrientation(ImageID, ocrLanguage, ocrLanguageFilePath, 10);
if (rotation > 0)
oGDPictureImaging.RotateAngle(ImageID, -rotation);

I never get into the if cause.
Additional info. ocrLanguage is "hun" in default, but I tried with "eng" too, and ocrLanguageFilePath is set to the folder which contains the language files.

I searched the forums for a while for any solution, but none of them worked for me.

Best regards,
Niki

User avatar
Loïc
Site Admin
Posts: 5581
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: oGDPictureImaging.OCRTesseractGetOrientation() always 0

Post by Loïc » Tue Aug 25, 2015 11:48 am

Hello Niki,

Could you share input image from which you obtain such undesired behavior ? If they are confidential please open a ticket on our helpdesk that you can reach here: http://support.gdpicture.com

With best regards,

Loïc

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest