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

# DetectedDocument Class

Namespace: id3.Document

## Definition

Represents a detected document.
Python

    class DetectedDocument

Dart

    class DetectedDocument implements Finalizable

C#

    public partial class DetectedDocument

Java

    public class DetectedDocument implements AutoCloseable, Serializable

Swift

    public class DetectedDocument

C

    typedef struct id3DetectedDocument *ID3_DETECTED_DOCUMENT;

## Usage

Python

    detectedDocumentInstance = DetectedDocument()
    # ...

Explicit destruction

    # ...
    del detectedDocumentInstance

Dart

    final detectedDocumentInstance = sdk.DetectedDocument();
    // ...

Explicit destruction

    // ...
    detectedDocumentInstance.dispose()

C#

    using (var detectedDocumentInstance = new DetectedDocument())
    {
       // ...
    }

Explicit destruction

    var detectedDocumentInstance = new DetectedDocument()
    // ...
    detectedDocumentInstance.Dispose()

Java

    try (DetectedDocument detectedDocumentInstance = new DetectedDocument()) {
    // ...
    }

Explicit destruction

    DetectedDocument detectedDocumentInstance = new DetectedDocument();
    // ...
    detectedDocumentInstance.close();

Swift

    private var detectedDocumentInstance: DetectedDocument? = nil
    detectedDocumentInstance = try DetectedDocument()

C

    ID3_DETECTED_DOCUMENT hDetectedDocument{};
    int err = id3DetectedDocument_Initialize(&hDetectedDocument);
    if (err == ID3_SUCCESS) {
        // ...
        id3DetectedDocument_Dispose(&hDetectedDocument);
    }

## Properties

Name | Type | Description
--- | --- | ---
bounds | PointList | Boundaries of the document detected, in the following order: top-left, top-right, bottom-right, bottom-left.
confidence | int | Confidence score of the detected document, from 0 to 100.
info | DocumentInfo | Document information.
orientation | DocumentOrientation | Document orientation in source image. [0,0,0] means the document is in front of the camera.

## Methods

Name | Description
--- | ---
clone | Clones the DetectedDocument object.