findEllipsesAsync static method

Future<Mat> findEllipsesAsync(
  1. InputArray image, {
  2. double scoreThreshold = 0.7,
  3. double reliabilityThreshold = 0.5,
  4. double centerDistanceThreshold = 0.05,
})

Finds ellipses fastly in an image using projective invariant pruning.

The function detects ellipses in images using projective invariant pruning. For more details about this implementation, please see 137 Jia, Qi et al, (2017). A Fast Ellipse Detector using Projective Invariant Pruning. IEEE Transactions on Image Processing.

https://docs.opencv.org/4.x/df/d2d/group__ximgproc.html#ga45405d89eeaa32d00e5a3d1ecc3090c2

Implementation

static Future<Mat> findEllipsesAsync(
  InputArray image, {
  double scoreThreshold = 0.7,
  double reliabilityThreshold = 0.5,
  double centerDistanceThreshold = 0.05,
}) async =>
    cvRunAsync(
      (callback) => cffi.ximgproc_findEllipses_Async(
        image.ref,
        scoreThreshold,
        reliabilityThreshold,
        centerDistanceThreshold,
        callback,
      ),
      matCompleter,
    );