CaptureImage.compare Method

Module: CaptureImage

Definition

Computes the difference with another image.

compare(self, cmp_capture_image: CaptureImage) -> float

Parameters

cmp_capture_image CaptureImage
in The image to compare.

Returns

float
Comparison result in percent (0% is same, 100% is full different).

Exceptions

An error has occurred during Devices Library execution.
double compare(CaptureImage cmpCaptureImage)

Parameters

cmpCaptureImage CaptureImage
in The image to compare.

Returns

double
Comparison result in percent (0% is same, 100% is full different).

Exceptions

An error has occurred during Devices Library execution.
public float Compare(CaptureImage cmpCaptureImage)

Parameters

cmpCaptureImage CaptureImage
in The image to compare.

Returns

float
Comparison result in percent (0% is same, 100% is full different).

Exceptions

An error has occurred during Devices Library execution.
public float compare(CaptureImage cmpCaptureImage) throws DevicesException

Parameters

cmpCaptureImage CaptureImage
in The image to compare.

Returns

float
Comparison result in percent (0% is same, 100% is full different).

Exceptions

An error has occurred during Devices Library execution.
int id3DevicesCaptureImage_Compare (
    ID3_DEVICES_CAPTURE_IMAGE hCaptureImage,
    ID3_DEVICES_CAPTURE_IMAGE hCmpCaptureImage,
    float * result)

Parameters

in Handle to the CaptureImage object.

hCmpCaptureImage ID3_DEVICES_CAPTURE_IMAGE
in The image to compare.

result float *
out Comparison result in percent (0% is same, 100% is full different).

Returns

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