SolarOS 4.19.1 manual · api
Native image pipelines
Quick reference
pipeline start qr <source>creates an OS-owned QR processing job.pipeline start model <source> <handle>uses a resident image bundle.pipeline info <processor> [source] [query]inspects capabilities and model metadata.pipeline start himax <camera-id> [limit] [interval_ms]uses the current HX6538 model.pipeline result <id>reads the latest result;stopreleases workers and sources;destroyalso removes the configuration and latest result.
The pipeline service connects an image source to a native processor in an OS-owned background job. Python and Lua configure and inspect the job; their sessions can exit while processing continues. QR and model processors share the same start, stop, and result commands.
Competing lifecycle controls can report busy. If another client takes control of the public job during startup, a retained configuration remains discoverable through pipeline list and can be explicitly destroyed.
Enable the pipelines group and the desired processor package (vision for QR, inference for ESP-DL). The full flavor includes these groups where supported. RTSP sources additionally require service.rtsp-client and a JPEG video track.
Himax camera-bound inference
The Watcher image includes the Himax provider. Other firmware can install the external processor-himax native library when supplied by its module repository. Discovery and inference belong to that provider; the expansion driver remains usable for ordinary camera sampling without it.
pipeline info himax
pipeline info himax camera0 models
pipeline start himax camera0 1
pipeline result 1
pipeline destroy 1
info defaults to source camera0 and query info. Other queries are version, models, model, algorithms, identity, and metadata. Queries briefly acquire the camera and fail if another consumer owns it. Zero type/size values in factory model metadata do not necessarily mean inference is unavailable.
The Himax processor accepts its attached camera only. It captures and processes one image on the chip, returning the matching JPEG and result together. It cannot process image files, RTSP frames or another camera's images. Use qr or model for those inputs. Model zero uses the current Himax selection. A nonzero model in native/Python/Lua configurations selects that HX6538 slot before capture; the selection remains afterward. Upload is separate; see Himax model management. Pipelines do not program models or firmware.
Results preserve SSCMA boxes, classes, points, count and perf fields when provided. Coordinates are marked coordinate_space: "sscma"; perf contains preprocessing, inference and postprocessing milliseconds. No class labels or coordinate conversion are inferred. decode_us is zero. The result's encoded image remains available through pipeline:<id> for Agent attachments, including after the job stops, until replacement or pipeline destruction.