matchAsync method

Future<double> matchAsync(
  1. Mat faceFeature1,
  2. Mat faceFeature2, {
  3. int disType = FaceRecognizerSF.FR_COSINE,
})

Implementation

Future<double> matchAsync(
  Mat faceFeature1,
  Mat faceFeature2, {
  int disType = FaceRecognizerSF.FR_COSINE,
}) async {
  final rval = cvRunAsync<double>(
      (callback) => cobjdetect.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;
}