Page 1 of 1

GetOrientation Method (GdPictureOCR)

Posted: Mon Mar 19, 2018 12:43 am
by mtnguyen
Hi GDPicture team,

As we are upgrading GDPicture from 11.2.0.7 to 14.0.42, we have encountered an issue with GetOrientation.
Using provided sample code, we have got pages that got rotated where they should not be.
We used you sample code of splitting TIF to get the problematic page and attached it here.

https://www.gdpicture.com/guides/gdpicture/Ho ... 20OCR.html

Code: Select all

using (GdPictureOCR gdpictureOCR = new GdPictureOCR())
{
	gdpictureOCR.ResourceFolder = DictionaryPath;
	gdpictureOCR.AddLanguage(_OCRLanguage);
	status = gdpictureOCR.SetImage(m_ImageID);
	int intPageRotation = gdpictureOCR.GetOrientation();
	if (intPageRotation != 0)
	{
		status = m_GdPictureImaging.RotateAngle(m_ImageID, 360 - intPageRotation);
	}
}
Thanks in advance.
Tri

Re: GetOrientation Method (GdPictureOCR)

Posted: Tue Mar 27, 2018 9:49 am
by Loïc
Hi,

Using the last version I can't reproduce the problem with the attached image. Which dictionary are you using?

Kind regards,

Re: GetOrientation Method (GdPictureOCR)

Posted: Tue Mar 27, 2018 10:24 pm
by mtnguyen
Hi Loïc,

I am using the English dictionary eng.traineddata that has modified date 11/12/2017 (I guess this has not been changed since then). Beside, this is the dictionary that comes with the installation package v14.0.42.

When you are saying the latest version, do you mean v14.0.44? As I was using v14.0.42, I will try with the latest version and update you on it.

Thank you for your response.
Best regards
Tri

Re: GetOrientation Method (GdPictureOCR)

Posted: Wed Jan 16, 2019 2:53 pm
by Gabriela
Hi,

When it comes to using the latest published release, we always refer to the last version of the product, you can check the version number here:
https://www.gdpicture.com/products/version-history/
The latest release of the toolkit you can always download here:
https://www.gdpicture.com/download-gdpicture/