matchAsync method
Future<double>
matchAsync(
- Mat faceFeature1,
- Mat faceFeature2, {
- int disType = FaceRecognizerSF.FR_COSINE,
})
Implementation
Future<double> matchAsync(
Mat faceFeature1,
Mat faceFeature2, {
int disType = FaceRecognizerSF.FR_COSINE,
}) async {
final rval = cvRunAsync<double>(
(callback) => cffi.FaceRecognizerSF_Match_Async(
ref,
faceFeature1.ref,
faceFeature2.ref,
disType,
callback,
), (c, p) {
final rval = p.cast<ffi.Double>().value;
calloc.free(p);
return c.complete(rval);
});
return rval;
}