getInputSizeAsync method

Future<(int, int)> getInputSizeAsync()

Implementation

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