Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
ABBYY FineReader Engine API の FRPage オブジェクトの DetectOrientation メソッド — 画像上のテキストの向きを検出し、TextOrientation オブジェクトを返します。検出に失敗した場合は NULL を返します。
HRESULT DetectOrientation( IObjectsExtractionParams* ExtractionParams, IRecognizerParams* RecognizerParams, ITextOrientation** Result );
ITextOrientation DetectOrientation( IObjectsExtractionParams ExtractionParams, IRecognizerParams RecognizerParams );
Function DetectOrientation( _ [ExtractionParams As IObjectsExtractionParams = Nothing], _ [RecognizerParams As IRecognizerParams = Nothing] _ ) As ITextOrientation
C# コード
FREngine.IFRDocument frdoc; // ドキュメントが作成され、画像が追加済みであることを前提とします // ドキュメント内の各ページの向きを取得する int pagesCount = frDoc.Pages.Count; FREngine.RotationTypeEnum[] rotations = new FREngine.RotationTypeEnum[pagesCount]; for (int i = 0; i < pagesCount; i++) { FREngine.IFRPage page = frDoc.Pages[i]; FREngine.ITextOrientation ori = page.DetectOrientation(null, null); rotations[i] = FREngine.RotationTypeEnum.RT_UnknownRotation; if( ori != null ) { rotations[i] = ori.RotationType; } }
このページは役に立ちましたか?