NVIDIA DeepStream SDK API Reference

9.2 Release
sources/gst-plugins/gst-nvinfereval/nvds_eval_gt_loader.h File Reference

Go to the source code of this file.

Data Structures

struct  GTBox
 GTBox: one ground-truth bounding box in absolute pixel coordinates. More...
 

Typedefs

using GTKey = std::pair< std::string, uint32_t >
 GTKey: (camera_id, frame_num). More...
 
using GTIndex = std::map< GTKey, std::vector< GTBox > >
 

Enumerations

enum  GtFormat {
  GtFormat::KITTI,
  GtFormat::NVSCHEMA,
  GtFormat::COCO,
  GtFormat::TAO,
  GtFormat::UNKNOWN,
  GtFormat::KITTI,
  GtFormat::NVSCHEMA,
  GtFormat::COCO,
  GtFormat::TAO,
  GtFormat::UNKNOWN
}
 

Functions

GtFormat gt_detect_format (const std::string &path)
 Detect the format of the GT file or directory at path. More...
 
bool gt_load (const std::string &path, GTIndex &index, GtFormat fmt=GtFormat::UNKNOWN)
 Load ground truth from path into index. More...
 

Typedef Documentation

◆ GTIndex

using GTIndex = std::map<GTKey, std::vector<GTBox> >

◆ GTKey

using GTKey = std::pair<std::string, uint32_t>

GTKey: (camera_id, frame_num).

camera_id is a string — it matches: Mode B: InferenceProvenanceMeta.camera_name Mode A: std::to_string(source_id) COCO: "0" (single-camera convention) KITTI: sub-directory name or "0" for a flat directory

Definition at line 44 of file sources/gst-plugins/gst-nvinfereval/nvds_eval_gt_loader.h.

Enumeration Type Documentation

◆ GtFormat

enum GtFormat
strong
Enumerator
KITTI 
NVSCHEMA 
COCO 
TAO 
UNKNOWN 
KITTI 
NVSCHEMA 
COCO 
TAO 
UNKNOWN 

Definition at line 47 of file sources/gst-plugins/gst-nvinfereval/nvds_eval_gt_loader.h.

Function Documentation

◆ gt_detect_format()

GtFormat gt_detect_format ( const std::string &  path)

Detect the format of the GT file or directory at path.

◆ gt_load()

bool gt_load ( const std::string &  path,
GTIndex &  index,
GtFormat  fmt = GtFormat::UNKNOWN 
)

Load ground truth from path into index.

Format is auto-detected if fmt == UNKNOWN. Returns true on success.