NVIDIA DeepStream SDK API Reference

6.2 Release
infer_post_datatypes.h
Go to the documentation of this file.
1 
12 #ifndef __INFER_POST_DATATYPES_H__
13 #define __INFER_POST_DATATYPES_H__
14 
15 #include <string>
16 #include <nvdsinfer.h>
17 
21 typedef struct {
23  float left;
25  float top;
27  float width;
29  float height;
30  /* Index for the object class. */
31  int classIndex;
32  /* String label for the detected object. */
33  char* label;
34  /* confidence score of the detected object. */
35  float confidence;
37 
42 typedef struct {
44  NvDsInferObject* objects;
46  unsigned int numObjects;
48 
49 #ifdef __cplusplus
50 
55 struct InferAttribute : NvDsInferAttribute {
56  /* NvDsInferAttribute::attributeLabel would be ignored */
57  std::string safeAttributeLabel;
58 };
59 
60 typedef struct {
63  std::vector<InferAttribute> attributes;
65  std::string label;
66 } InferClassificationOutput;
67 
68 #endif
69 
74 typedef struct {
76  unsigned int width;
78  unsigned int height;
80  unsigned int classes;
83  int* class_map;
87  float* class_probability_map;
89 
91  uint32_t topK = 0;
92  float threshold = 0.0f;
93  std::string tensorName;
94 };
95 
96 #define INFER_SERVER_PRIVATE_BUF "@@NvInferServer"
97 
98 #define INFER_SERVER_DETECTION_BUF_NAME INFER_SERVER_PRIVATE_BUF "Detections"
99 #define INFER_SERVER_CLASSIFICATION_BUF_NAME \
100  INFER_SERVER_PRIVATE_BUF "Classfications"
101 #define INFER_SERVER_SEGMENTATION_BUF_NAME \
102  INFER_SERVER_PRIVATE_BUF "Segmentations"
103 
104 #endif
TritonClassParams
Definition: infer_post_datatypes.h:90
NvDsInferSegmentationOutput
Holds information parsed from segmentation network output for one frame.
Definition: nvdsinfer_context.h:521
NvDsInferDetectionOutput
Holds information on all objects detected by a detector network in one frame.
Definition: nvdsinfer_context.h:493
TritonClassParams::threshold
float threshold
Definition: infer_post_datatypes.h:92
nvdsinfer.h
TritonClassParams::topK
uint32_t topK
Definition: infer_post_datatypes.h:91
TritonClassParams::tensorName
std::string tensorName
Definition: infer_post_datatypes.h:93
NvDsInferObject
Holds information about one detected object.
Definition: nvdsinfer_context.h:463
NvDsInferAttribute
Holds information about one classified attribute.
Definition: nvdsinfer.h:198