Browse docsvision.target
On this page
API method

vision.target

Returns the highest-score target or null.

Syntax

Atlas Script
vision.target(name?, label?)

Parameters

name Optional
Name used to look up, register, or identify the requested resource.
label Optional
Optional target-label filter. It matches a target label/text or a class_N identifier.

Return value

Returns target.

Remarks

Returns the highest-score target or null. The first argument may be an explicit string name or an ONNX source model from models.set; the optional label matches label/text or a class_N ID. Prefer configuredTool.target because a configured typed VisionTool argument is not recognized by this compatibility call and can become unfiltered.

Examples

Usage pattern
// Replace name, label with values described above.
vision.target(name, label);
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.