Browse docsvision.person
On this page
API method

vision.person

Configures an ONNX detector from a weight widget binding and returns a live person tool.

Syntax

Atlas Script
vision.person(weight, roi?, threshold?, enabled?, backend?)

Parameters

weight
The binding from a weight widget. The user selects an owned Library weight or a local ONNX file in Session setup.
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.
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.
backend Optional
Optional inference backend selection. Use the documented vision backend constant for the installed Atlas build.

Return value

Returns person.

Remarks

Configures an ONNX detector from a weight widget binding and returns a live person tool. Select an eligible owned Library weight or a self-contained local ONNX file in Vision → Session setup → Script. An empty binding returns no detections. The tool keeps its configuration as the selected weight changes. ROI defaults to the full frame, threshold to 0.5, enabled to true, and backend to vision.auto. Read results, count, and target. Configure enabled, overlay, ROI, and threshold on the tool. The selected model determines which detections carry the person label.

Examples

Configure face and person models.atlas
widget weight faceSource("Face model");
widget weight personSource("Person model");
face faces = vision.face(faceSource, null, 0.60, true, vision.cpu);
person people = vision.person(personSource, null, 0.60, true, vision.auto);

event on_frame() {
    ui.status(string.format("Faces {} people {}", faces.count, people.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.