createAsync static method

Future<ArucoDetector> createAsync(
  1. ArucoDictionary dictionary,
  2. ArucoDetectorParameters parameters
)

Implementation

static Future<ArucoDetector> createAsync(
  ArucoDictionary dictionary,
  ArucoDetectorParameters parameters,
) async =>
    cvRunAsync<ArucoDetector>(
      (callback) => cffi.ArucoDetector_NewWithParams_Async(
        dictionary.ref,
        parameters.ref,
        callback,
      ),
      (c, p) => c.complete(ArucoDetector.fromPointer(p.cast<cvg.ArucoDetector>())),
    );