Image.extractRoi Method

Module: Image

Definition

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

extract_roi(self, bounds: Rectangle) -> Image

Parameters

bounds Rectangle
in Bounds of the crop to extract.

Returns

The extracted region of interest.

Exceptions

An error has occurred during Face Library execution.
Image 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 Face Library execution.
public Image 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 Face Library execution.
public Image extractRoi(Rectangle bounds) throws FaceException

Parameters

bounds Rectangle
in Bounds of the crop to extract.

Returns

The extracted region of interest.

Exceptions

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

Parameters

bounds Rectangle
in Bounds of the crop to extract.

Returns

The extracted region of interest.

Exceptions

An error has occurred during Face Library execution.
int id3FaceImage_ExtractRoi (
    ID3_FACE_IMAGE hImage,
    const id3FaceRectangle * sBounds,
    ID3_FACE_IMAGE hImageRoi)

Parameters

in Handle to the Image object.

in Bounds of the crop to extract.

hImageRoi ID3_FACE_IMAGE
out The extracted region of interest.

Returns

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