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
oGDPictureImaging.OCRTesseractGetOrientation() always 0
Re: oGDPictureImaging.OCRTesseractGetOrientation() always 0
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: https://www.gdpicture.com/support/getting-support-from-our-team
With best regards,
Loïc
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: https://www.gdpicture.com/support/getting-support-from-our-team
With best regards,
Loïc
Who is online
Users browsing this forum: No registered users and 2 guests