|
|
NVIDIA DeepStream SDK API Reference
|
9.1 Release
|
Go to the documentation of this file.
26 #ifndef NVIDIA_DEEPSTREAM_METADATA
27 #define NVIDIA_DEEPSTREAM_METADATA
33 #include "nvll_osd_struct.h"
34 #include "nvds_tracker_meta.h"
35 #include "nvds_audio_meta.h"
39 #define USER_METADATA_START = (4096 + 4096 + 1)
57 virtual operator bool() {
return data_ !=
nullptr; }
92 virtual bool done() = 0;
101 return !(*
this == other);
112 typedef std::unique_ptr<AbstractIterator<UserMetadata>>
Iterator;
125 virtual operator bool()
override {
return data_ !=
nullptr; }
141 void setUserData(
void* data,
void*(*copy)(
void*,
void*),
void(*release)(
void*,
void*));
155 typedef std::unique_ptr<AbstractIterator<ClassifierMetadata>>
Iterator;
172 std::string
getLabel(
unsigned int nth)
const;
184 typedef std::unique_ptr<AbstractIterator<ObjectMetadata>>
Iterator;
221 std::string
label()
const;
233 unsigned int iterate(
const std::function<
void(
const UserMetadata&)>& func,
int meta_type)
const;
262 const std::string sensor=
"N/A",
263 const std::string uri=
"N/A",
264 const std::vector<std::string>labels=std::vector<std::string>());
269 const std::string sensor=
"N/A",
270 const std::string uri=
"N/A");
294 unsigned int iterate(
const std::function<
void(
const UserMetadata&)>& func,
int meta_type)
const;
320 std::unordered_map<std::string, Tensor*>
getLayers();
371 template <
class C,
int N>
385 static void*
copy(
void* data,
void* user_data) {
389 C* dst =
new C(*src);
393 static void free(
void* data,
void* user_data) {
411 typedef std::unique_ptr<AbstractIterator<DisplayMetadata>>
Iterator;
424 unsigned int nRects()
const;
428 unsigned int nLines()
const;
456 typedef std::unique_ptr<AbstractIterator<FrameMetadata>>
Iterator;
479 unsigned int iterate(
const std::function<
void(
const UserMetadata&)>& func,
int meta_type)
const;
524 typedef std::unique_ptr<AbstractIterator<AudioFrameMetadata>>
Iterator;
542 unsigned int iterate(
const std::function<
void(
const UserMetadata&)>& func,
int meta_type)
const;
602 operator bool()
const {
603 return data_ !=
nullptr;
626 std::vector<RoiMetadata>
getRois()
const;
762 std::unordered_map<std::string, bool>
getOcStatus()
const;
785 std::unordered_map<int, uint32_t>
getObjCnt()
const;
821 unsigned int iterate(
const std::function<
void(
const UserMetadata&)>& func,
int meta_type)
const;
840 template<
class C,
int N>
845 return user_meta ? true :
false;
860 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.
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.
bool operator==(const AbstractIterator< T > &other) const
check if two iterator point to the same position
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.
virtual bool equals(const AbstractIterator< T > &other) const =0
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.