getInputSizeAsync method

Future<(int, int)> getInputSizeAsync()

Implementation

Future<(int, int)> getInputSizeAsync() async {
  final rval = cvRunAsync<(int, int)>(
      (callback) => cffi.FaceDetectorYN_GetInputSize_Async(ref, callback), (c, p) {
    final size = p.cast<cvg.Size>().ref;
    final ret = (size.width, size.height);
    return c.complete(ret);
  });
  return rval;
}