Auterion App SDK
Auterion SDK is a library that can be used by AuterionOS apps to communicate with the system.
Loading...
Searching...
No Matches
auterion::ImageDetections2D Struct Reference

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< Detection2Ddetections {}
 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).
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ImageDetections2D()

auterion::ImageDetections2D::ImageDetections2D ( uint16_t  frame_id,
const rclcpp::Time &  image_timestamp,
uint32_t  image_width,
uint32_t  image_height 
)
inline

Construct an empty batch for one source frame.

Parameters
frame_idId of the source frame, from ImageHeader::frame_id (0 = unset).
image_timestampCapture timestamp of the source frame.
image_widthSource image width [px].
image_heightSource image height [px].

The documentation for this struct was generated from the following file: