On this page
vision
Native computer-vision configuration helpers and latest results.
Syntax
visionReturn value
See the remarks for the returned value and runtime behavior.
Inference backend constants
Every constant the native script registry defines for vision, generated from the registry manifest.
| Constant | Backend |
|---|---|
vision.auto | auto |
vision.cpu | cpu |
vision.directml | directml |
vision.gpu | directml |
Remarks
Native computer-vision configuration helpers and latest results. Each configuration call emits a pipeline config and returns a typed live value with enabled/overlay/roi plus results/count/target members. Prefer those members over compatibility vision.results/vision.target calls. Most non-model tool names are fixed to their type, so a later same-type configuration replaces the earlier one. For tracking, source and roi are stored and re-emitted as configuration metadata but the current tracker applies neither filter and follows all detections.
Examples
// vision is available where its documented API returns or accepts this value.