arucoGenerateImageMarkerAsync function

Future<Mat> arucoGenerateImageMarkerAsync(
  1. PredefinedDictionaryType dictionaryId,
  2. int id,
  3. int sidePixels,
  4. int borderBits, [
  5. Mat? outImg,
])

Implementation

Future<Mat> arucoGenerateImageMarkerAsync(
  PredefinedDictionaryType dictionaryId,
  int id,
  int sidePixels,
  int borderBits, [
  Mat? outImg,
]) async {
  outImg ??= Mat.empty();
  return cvRunAsync0(
      (callback) => ccontrib.cv_aruco_generateImageMarker(
            dictionaryId.value,
            id,
            sidePixels,
            borderBits,
            outImg!.ref,
            callback,
          ), (c) {
    c.complete(outImg);
  });
}