DocumentImage.extractRoi Method

Module: DocumentImage

Definition

Extracts a region of interest in the image according to the given bounds.

extract_roi(self, bounds: Rectangle) -> DocumentImage

Parameters

bounds Rectangle
in Bounds of the crop to extract.

Returns

The extracted region of interest.

Exceptions

An error has occurred during Document Library execution.
DocumentImage extractRoi(Rectangle bounds)

Parameters

bounds Rectangle
in Bounds of the crop to extract.

Returns

The extracted region of interest.

Exceptions

An error has occurred during Document Library execution.
public DocumentImage ExtractRoi(Rectangle bounds)

Parameters

bounds Rectangle
in Bounds of the crop to extract.

Returns

The extracted region of interest.

Exceptions

An error has occurred during Document Library execution.
public DocumentImage extractRoi(Rectangle bounds) throws DocumentException

Parameters

bounds Rectangle
in Bounds of the crop to extract.

Returns

The extracted region of interest.

Exceptions

An error has occurred during Document Library execution.
public func extractRoi(bounds: Rectangle) throws -> DocumentImage

Parameters

bounds Rectangle
in Bounds of the crop to extract.

Returns

The extracted region of interest.

Exceptions

An error has occurred during Document Library execution.
int id3DocumentImage_ExtractRoi (
    ID3_DOCUMENT_IMAGE hDocumentImage,
    ID3_DOCUMENT_RECTANGLE hBounds,
    ID3_DOCUMENT_IMAGE hDocumentImageRoi)

Parameters

hDocumentImage ID3_DOCUMENT_IMAGE
in Handle to the DocumentImage object.

in Bounds of the crop to extract.

hDocumentImageRoi ID3_DOCUMENT_IMAGE
out The extracted region of interest.

Returns

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