Browse docsvision.edges
On this page
API method

vision.edges

Configures native edge-density detection and returns an edges value.

Syntax

Atlas Script
vision.edges(roi?, threshold?, min_area?, enabled?)

Parameters

roi Optional
Optional region of interest: a four-value [x, y, width, height] array. Pass null when the method accepts a full-frame scan.
threshold Optional
Detection or matching threshold. Higher values require a stronger match.
min_area Optional
Minimum detected area to retain. Smaller candidates are ignored.
enabled Optional
Optional boolean that turns this configured tool on or off. Use true to process it and false to keep its configuration without running it.

Return value

Returns edges.

Remarks

Configures native edge-density detection and returns an edges value. Read/set enabled, overlay, roi, threshold, min_area; read results, count, target.

Examples

Detect motion and edges.atlas
const centerRoi = [0.25, 0.25, 0.50, 0.50];
motion movement = vision.motion(centerRoi, 0.20, 25, true);
edges edgeAreas = vision.edges(centerRoi, 0.35, 25, true);

event on_frame() {
    ui.status(string.format("Motion {} edges {}", movement.count, edgeAreas.count));
}
Reference details are generated from the Atlas Script schema in this documentation source snapshot. Confirm release-specific behavior in the Atlas for Windows build you use.