On this page
vision.target
Returns the highest-score target or null.
Syntax
Atlas Script
vision.target(name?, label?)Parameters
nameOptional- Name used to look up, register, or identify the requested resource.
labelOptional- 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);