> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ImageProcessingTools オブジェクトの DetectOrientationByText メソッド

このメソッドは、テキスト行に基づいて画像の向きを検出します。

## 構文

```vb Visual Basic .NET theme={null}
Function DetectOrientationByText( _
  Image As Image, _
  Language As Language, _
) As RotationTypeEnum
```

```cpp C++ theme={null}
HRESULT DetectOrientationByText(
  IImage*           Image,
  ILanguage*        Language,
  RotationTypeEnum* Result
);
```

## パラメーター

**Image**

\[in] 処理対象の [**Image**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/image.md) オブジェクトを参照します。

**Language**

\[in] 画像内のテキストの言語を指定する [**Language**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/language.md) オブジェクトを参照します。

**Result**

\[out, retval] [**RotationTypeEnum**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/rotationtypeenum.md) 定数を返します。

## 戻り値

このメソッドには固有の戻り値はありません。[ABBYY FlexiCapture SDK 関数の標準の戻り値](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/errorcodes.md)を返します。

## 備考

このメソッドは画像の向き、つまり画像が正常な向きから回転している角度を返します。画像を正しい向きに戻すために必要な回転角度を検出するには、[**DetectRequiredRotation**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/imageprocessingtools-detectrequiredrotation.md) メソッドを使用します。2 つのメソッドが返す結果は、互いに逆の値になります。

## 関連項目

[**ImageProcessingTools**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/imageprocessingtools.md)

[**ImageProcessingTools::DetectRequiredRotation**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/imageprocessingtools-detectrequiredrotation.md)
