Options for detect and detectAndRemove.

interface DetectOptions {
    anchor?: AnchorStrategy;
    simplificationEpsilon?: number;
}

Properties

Flood-fill anchor set. Defaults to { kind: 'bottomRow' }.

simplificationEpsilon?: number

Douglas-Peucker epsilon (in pixels) for the extracted contours. Default 1.