getScoreThresholdAsync method

Future<double> getScoreThresholdAsync()

Implementation

Future<double> getScoreThresholdAsync() async {
  final rval = cvRunAsync<double>(
      (callback) => cobjdetect.FaceDetectorYN_GetScoreThreshold_Async(ref, callback), (c, p) {
    final rval = p.cast<ffi.Float>().value;
    calloc.free(p);
    return c.complete(rval);
  });
  return rval;
}