|
|
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
28 #include "nvll_osd_struct.h"
29 #include "nvds_tracker_meta.h"
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; }
132 void setUserData(
void* data,
void*(*copy)(
void*,
void*),
void(*release)(
void*,
void*));
145 typedef std::unique_ptr<AbstractIterator<ClassifierMetadata>>
Iterator;
162 std::string
getLabel(
unsigned int nth)
const;
174 typedef std::unique_ptr<AbstractIterator<ObjectMetadata>>
Iterator;
211 std::string
label()
const;
223 unsigned int iterate(
const std::function<
void(
const UserMetadata&)>& func,
int meta_type)
const;
251 const std::string sensor=
"N/A",
252 const std::string uri=
"N/A",
253 const std::vector<std::string>labels=std::vector<std::string>());
277 unsigned int iterate(
const std::function<
void(
const UserMetadata&)>& func,
int meta_type)
const;
303 std::unordered_map<std::string, Tensor*>
getLayers();
354 template <
class C,
int N>
368 static void*
copy(
void* data,
void* user_data) {
372 C* dst =
new C(*src);
376 static void free(
void* data,
void* user_data) {
394 typedef std::unique_ptr<AbstractIterator<DisplayMetadata>>
Iterator;
407 unsigned int nRects()
const;
411 unsigned int nLines()
const;
439 typedef std::unique_ptr<AbstractIterator<FrameMetadata>>
Iterator;
462 unsigned int iterate(
const std::function<
void(
const UserMetadata&)>& func,
int meta_type)
const;
518 operator bool()
const {
519 return data_ !=
nullptr;
542 std::vector<RoiMetadata>
getRois()
const;
678 std::unordered_map<std::string, bool>
getOcStatus()
const;
701 std::unordered_map<int, uint32_t>
getObjCnt()
const;
732 unsigned int iterate(
const std::function<
void(
const UserMetadata&)>& func,
int meta_type)
const;
751 template<
class C,
int N>
756 return user_meta ? true :
false;
769 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.