RealSense Cross Platform API
RealSense Cross-platform API
Public Attributes | List of all members
rs2_object_detection Struct Reference

Object detection result from algorithm. More...

#include <rs_types.h>

Public Attributes

int class_id
 
int score
 
int top_left_x
 
int top_left_y
 
int bottom_right_x
 
int bottom_right_y
 
float depth
 
rs2_vector world_position
 
float center_of_mass_x
 
float center_of_mass_y
 
int center_of_mass_valid
 

Detailed Description

Object detection result from algorithm.

Member Data Documentation

◆ bottom_right_x

int rs2_object_detection::bottom_right_x

Bottom-right corner pixel X coordinate

◆ bottom_right_y

int rs2_object_detection::bottom_right_y

Bottom-right corner pixel Y coordinate

◆ center_of_mass_valid

int rs2_object_detection::center_of_mass_valid

Nonzero when world_position, center_of_mass_x and center_of_mass_y are valid

◆ center_of_mass_x

float rs2_object_detection::center_of_mass_x

COM column in source-image pixels. Valid only when center_of_mass_valid is nonzero

◆ center_of_mass_y

float rs2_object_detection::center_of_mass_y

COM row in source-image pixels. Valid only when center_of_mass_valid is nonzero

◆ class_id

int rs2_object_detection::class_id

Object class/category identifier

◆ depth

float rs2_object_detection::depth

Distance to detected object in meters, as computed by firmware

◆ score

int rs2_object_detection::score

Detection confidence score 0-100

◆ top_left_x

int rs2_object_detection::top_left_x

Top-left corner pixel X coordinate

◆ top_left_y

int rs2_object_detection::top_left_y

Top-left corner pixel Y coordinate

◆ world_position

rs2_vector rs2_object_detection::world_position

COM X, Y, Z in camera coordinates, meters. Valid only when center_of_mass_valid is nonzero


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