RealSense Cross Platform API
RealSense Cross-platform API
Public Member Functions | List of all members
rs2::object_detection_frame Class Reference

#include <rs_frame.hpp>

Inheritance diagram for rs2::object_detection_frame:
rs2::inference_frame rs2::frame

Public Member Functions

 object_detection_frame ()
 
 object_detection_frame (const frame &f)
 
unsigned int get_detection_count () const
 
rs2_object_detection get_detection (unsigned int index) const
 
- Public Member Functions inherited from rs2::inference_frame
 inference_frame ()
 
 inference_frame (const frame &f)
 
- Public Member Functions inherited from rs2::frame
 frame ()
 
 frame (rs2_frame *ref)
 
 frame (frame &&other) noexcept
 
frameoperator= (frame other)
 
 frame (const frame &other)
 
void swap (frame &other)
 
 ~frame ()
 
void keep ()
 
 operator bool () const
 
rs2_sensorget_sensor ()
 
double get_timestamp () const
 
rs2_timestamp_domain get_frame_timestamp_domain () const
 
rs2_metadata_type get_frame_metadata (rs2_frame_metadata_value frame_metadata) const
 
bool supports_frame_metadata (rs2_frame_metadata_value frame_metadata) const
 
unsigned long long get_frame_number () const
 
const int get_data_size () const
 
const void * get_data () const
 
stream_profile get_profile () const
 
template<class T >
bool is () const
 
template<class T >
as () const
 
rs2_frameget () const
 
 operator rs2_frame * ()
 
frame apply_filter (filter_interface &filter)
 

Additional Inherited Members

- Protected Member Functions inherited from rs2::frame
void add_ref () const
 
void reset ()
 

Constructor & Destructor Documentation

◆ object_detection_frame() [1/2]

rs2::object_detection_frame::object_detection_frame ( )
inline

Extends inference_frame class with additional object detection related attributes and functions

◆ object_detection_frame() [2/2]

rs2::object_detection_frame::object_detection_frame ( const frame f)
inline

Extends inference_frame class with additional object detection related attributes and functions

Parameters
[in]frame- existing frame instance

Member Function Documentation

◆ get_detection()

rs2_object_detection rs2::object_detection_frame::get_detection ( unsigned int  index) const
inline

Get a specific detection by index

Parameters
[in]index- zero-based index of the detection
Returns
rs2_object_detection - the detection at the specified index

◆ get_detection_count()

unsigned int rs2::object_detection_frame::get_detection_count ( ) const
inline

Get the number of detected objects in this frame

Returns
unsigned int - number of detections

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