Object Detection API
Object Detection Client
Subscribing to Object Detections
auterion::ObjectDetectionClient object_detection_client{sdk};
// Subscribe to detection updates with a callback
object_detection_client.subscribeDetections2D([](const auterion::ImageDetections2D& detections) {
std::cout << "Received " << detections.detections.size()
<< " detections for frame " << detections.frame_id << std::endl;
// Process each detection
for (const auto& detection : detections.detections) {
// Access detection properties
const auto& bbox = detection.bbox;
std::cout << "Detection at position (" << bbox.center.x() << ", " << bbox.center.y()
<< ") with size " << bbox.size_x << "x" << bbox.size_y << std::endl;
// Access object hypotheses (class labels and confidence scores)
for (const auto& hypothesis : detection.object_hypotheses) {
std::cout << " Class: " << hypothesis.class_id
<< ", Score: " << hypothesis.score << std::endl;
}
}
});Querying Latest Detections
Controlling the Object Detection Service
Object Detection Provider
Publishing Object Detections
Controlling Provider Operation Based on Service State
Data Structures
ImageDetections2D
Detection2D
BoundingBox2D
ObjectHypothesis
Last updated