Hide navigation sidebar
Hide table of contents sidebar
Skip to content
Back to top
Toggle table of contents sidebar

# DetectedDocument.orientation Property

Module: DetectedDocument

Type: DocumentOrientation

## Definition

Document orientation in source image. [0,0,0] means the document is in front of the camera.

Python

    orientation: DocumentOrientation

Exceptions

> DocumentException
> An error has occurred during Document Library execution.

Dart

    DocumentOrientation get orientation => getOrientation();

Exceptions

> DocumentException
> An error has occurred during Document Library execution.

C#

    public DocumentOrientation orientation
    {
        get => Getorientation();
    }

Exceptions

> DocumentException
> An error has occurred during Document Library execution.

Java

    public DocumentOrientation getOrientation() throws DocumentException

Exceptions

> DocumentException
> An error has occurred during Document Library execution.

Swift

    public var orientation: DocumentOrientation
        get {
            return try! getOrientation()
        }
    }

Exceptions

> DocumentException
> An error has occurred during Document Library execution.

C

    int id3DetectedDocument_GetOrientation (ID3_DETECTED_DOCUMENT hDetectedDocument, id3DocumentOrientation * sOrientation)

Returns

> `int`
> An error code.
> See id3DocumentError file for the list of possible error codes.