compare method
- Image cmpImage
Computes the difference with another image.
param cmpImage The image to compare. return Comparison result in percent (0% is same, 100% is full different). throws FaceException An error has occurred during Face Library execution.
Implementation
double compare(Image cmpImage) {
Pointer<Float> pResult = calloc();
try {
var err = faceSDK.id3FaceImage_Compare(_pHandle.value, cmpImage.handle, pResult);
if (err != FaceError.success.value) {
throw FaceException(err);
}
final vResult = pResult.value;
return vResult;
} finally {
calloc.free(pResult);
}
}