Classification
Warning
The AI Accelerator requires ROS 2 Humble, so PolyScope X 10.12.1 is the latest compatible release. PolyScope X 10.13 and later use ROS 2 Jazzy and are not currently supported.
ark_load_classification_model(model) => error code
Load an existing classification model on the AI Accelerator.
ark_set_classification_params(roi = struct(x=240.0, y=140.0, width=160.0, height=120.0)) => void
Configure parameters for the classification including a region of interest within the image.
ark_infer_classification() => error code, class (string) + score
Request a classification from the model, returns any relevant error codes, the label of the class detected, and the confidence level of the result.