|
Auterion App SDK
Auterion SDK is a library that can be used by AuterionOS apps to communicate with the system.
|
2D detections for a single source frame. More...
#include <auterion_sdk/object_detection/image_detections_2d.hpp>
Public Member Functions | |
| ImageDetections2D (uint16_t frame_id, const rclcpp::Time &image_timestamp, uint32_t image_width, uint32_t image_height) | |
| Construct an empty batch for one source frame. | |
Public Attributes | |
| uint16_t | frame_id {0} |
| Id of the source frame (0 = unset). | |
| rclcpp::Time | image_timestamp {} |
| Capture timestamp of the source frame. | |
| std::vector< Detection2D > | detections {} |
| The 2D detections in the frame. | |
| uint32_t | image_width {0} |
| Source image width [px] (0 = unset). | |
| uint32_t | image_height {0} |
| Source image height [px] (0 = unset). | |
2D detections for a single source frame.
Describe the frame in the constructor, then fill detections. Boxes are in the pixel space of that frame, so an app that infers on a resized copy maps them back itself. detectionsForImage(), in <auterion_sdk/object_detection/detections_from_image.hpp>, builds the batch from an SDK image.
|
inline |
Construct an empty batch for one source frame.
| frame_id | Id of the source frame, from ImageHeader::frame_id (0 = unset). |
| image_timestamp | Capture timestamp of the source frame. |
| image_width | Source image width [px]. |
| image_height | Source image height [px]. |