| 
      
        
       | 
    
    
        
            NVIDIA DeepStream SDK API Reference
         | 
        
            
                8.0 Release
            
         | 
    
  
 
 
Go to the documentation of this file.
   21 #ifndef NVIDIA_DEEPSTREAM_METADATA 
   22 #define NVIDIA_DEEPSTREAM_METADATA 
   33 #define USER_METADATA_START = (4096 + 4096 + 1) 
   51   virtual operator bool() { 
return data_ != 
nullptr; }
 
   86   virtual bool done() = 0;
 
   93     return !(*
this == other);
 
  103   typedef std::unique_ptr<AbstractIterator<UserMetadata>> 
Iterator;
 
  116   virtual operator bool()
 override { 
return data_ != 
nullptr; }
 
  128   typedef std::unique_ptr<AbstractIterator<ClassifierMetadata>> 
Iterator;
 
  145   std::string 
getLabel(
unsigned int nth) 
const;
 
  157   typedef std::unique_ptr<AbstractIterator<ObjectMetadata>> 
Iterator;
 
  194   std::string 
label() 
const;
 
  206   unsigned int iterate(
const std::function<
void(
const UserMetadata&)>& func, 
int meta_type) 
const;
 
  231     const std::string sensor=
"N/A",
 
  232     const std::string uri=
"N/A",
 
  233     const std::vector<std::string>labels=std::vector<std::string>());
 
  257   unsigned int iterate(
const std::function<
void(
const UserMetadata&)>& func, 
int meta_type) 
const;
 
  283   std::unordered_map<std::string, Tensor*> 
getLayers();
 
  334 template <
class C, 
int N>
 
  348   static void* 
copy(
void* data, 
void* user_data) {
 
  352     C* dst = 
new C(*src);
 
  356   static void free(
void* data, 
void* user_data) {
 
  374   typedef std::unique_ptr<AbstractIterator<DisplayMetadata>> 
Iterator;
 
  387   unsigned int nRects() 
const;
 
  391   unsigned int nLines() 
const;
 
  419   typedef std::unique_ptr<AbstractIterator<FrameMetadata>> 
Iterator;
 
  442   unsigned int iterate(
const std::function<
void(
const UserMetadata&)>& func, 
int meta_type) 
const;
 
  498   operator bool()
 const {
 
  499     return data_ != 
nullptr;
 
  522   std::vector<RoiMetadata> 
getRois() 
const;
 
  617   std::unordered_map<std::string, bool> 
getOcStatus() 
const;
 
  640   std::unordered_map<int, uint32_t> 
getObjCnt() 
const;
 
  671   unsigned int iterate(
const std::function<
void(
const UserMetadata&)>& func, 
int meta_type) 
const;
 
  686   template<
class C, 
int N>
 
  691     return user_meta ? true : 
false;
 
  704     void* data, 
unsigned int type, 
void*(*copy)(
void*, 
void*), 
void(*free)(
void*, 
void*)
 
  
 
virtual bool done()=0
check if the end is reached
 
Holds the box parameters of a line to be overlayed.
 
virtual bool operator==(const AbstractIterator< T > &other) const =0
check if two iterator point to the same position
 
Holds the box parameters of the box to be overlayed.
 
Holds the mask parameters of the segment to be overlayed.
 
virtual ~AnalyticsObjInfo()
Destructor for AnalyticsObjInfo.
 
metadata iterator template
 
std::vector< std::string > getRoiStatus() const
Get the ROI status.
 
T * operator->()
Dereference the associated metadata as a pointer.
 
Holds circle parameters to be overlayed.
 
AnalyticsObjInfo(void *data=nullptr)
Constructor for AnalyticsObjInfo.
 
bool operator!=(const AbstractIterator< T > &other) const
check if two iterator point to different position
 
Holds arrow parameters to be overlaid.
 
std::string getObjStatus() const
Get the object status.
 
virtual ~AbstractIterator()
Destructor.
 
T & operator*()
Dereference the associated metadata.
 
unsigned int getUniqueId() const
Get the unique identifier for this metadata.
 
std::string getDirStatus() const
Get the direction status.
 
AbstractIterator(const T &data)
Construct an iterator for an iterable metadata.
 
Holds parameters of text to be overlayed.
 
std::vector< std::string > getLcStatus() const
Get the line crossing status.
 
Batch of all streams of a given target misc output.
 
Holds 3D bbox information for an object.
 
T & get()
Directly access the associated metadata.
 
Holds unclipped bounding box coordinates of the object.
 
virtual AbstractIterator< T > & next()=0
advances the iterator to access the next data
 
std::vector< std::string > getOcStatus() const
Get the overcrowding status.