CaptureImage.crop Method

Module: CaptureImage

Definition

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

crop(self, left: int, top: int, width: int, height: int) -> CaptureImage

Parameters

left int
in Left bound of the crop to extract.

top int
in Top bound of the crop to extract.

width int
in Width of the crop to extract.

height int
in Height of the crop to extract.

Returns

The extracted region of interest.

Exceptions

An error has occurred during Devices Library execution.
CaptureImage crop(int left, int top, int width, int height)

Parameters

left int
in Left bound of the crop to extract.

top int
in Top bound of the crop to extract.

width int
in Width of the crop to extract.

height int
in Height of the crop to extract.

Returns

The extracted region of interest.

Exceptions

An error has occurred during Devices Library execution.
public CaptureImage Crop(int left, int top, int width, int height)

Parameters

left int
in Left bound of the crop to extract.

top int
in Top bound of the crop to extract.

width int
in Width of the crop to extract.

height int
in Height of the crop to extract.

Returns

The extracted region of interest.

Exceptions

An error has occurred during Devices Library execution.
public CaptureImage crop(int left, int top, int width, int height) throws DevicesException

Parameters

left int
in Left bound of the crop to extract.

top int
in Top bound of the crop to extract.

width int
in Width of the crop to extract.

height int
in Height of the crop to extract.

Returns

The extracted region of interest.

Exceptions

An error has occurred during Devices Library execution.
int id3DevicesCaptureImage_Crop (
    ID3_DEVICES_CAPTURE_IMAGE hCaptureImage,
    int left,
    int top,
    int width,
    int height,
    ID3_DEVICES_CAPTURE_IMAGE hCaptureImageCrop)

Parameters

in Handle to the CaptureImage object.

left int
in Left bound of the crop to extract.

top int
in Top bound of the crop to extract.

width int
in Width of the crop to extract.

height int
in Height of the crop to extract.

hCaptureImageCrop ID3_DEVICES_CAPTURE_IMAGE
out The extracted region of interest.

Returns

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