|
|
NVIDIA DeepStream SDK API Reference
|
7.1 Release
|
Go to the documentation of this file.
21 #ifndef NVIDIA_DEEPSTREAM_METADATA
22 #define NVIDIA_DEEPSTREAM_METADATA
32 #define USER_METADATA_START = (4096 + 4096 + 1)
50 virtual operator bool() {
return data_ !=
nullptr; }
85 virtual bool done() = 0;
92 return !(*
this == other);
102 typedef std::unique_ptr<AbstractIterator<UserMetadata>>
Iterator;
124 typedef std::unique_ptr<AbstractIterator<ClassifierMetadata>>
Iterator;
141 std::string
getLabel(
unsigned int nth)
const;
153 typedef std::unique_ptr<AbstractIterator<ObjectMetadata>>
Iterator;
190 std::string
label()
const;
199 unsigned int iterate(
const std::function<
void(
const UserMetadata&)>& func,
int meta_type)
const;
224 const std::string sensor=
"N/A",
225 const std::string uri=
"N/A",
226 const std::vector<std::string>labels=std::vector<std::string>());
244 std::unordered_map<std::string, Tensor*>
getLayers();
254 template <
class C,
int N>
267 static void*
copy(
void* data,
void* user_data) {
271 C* dst =
new C(*src);
275 static void free(
void* data,
void* user_data) {
293 typedef std::unique_ptr<AbstractIterator<DisplayMetadata>>
Iterator;
306 unsigned int nRects()
const;
310 unsigned int nLines()
const;
338 typedef std::unique_ptr<AbstractIterator<FrameMetadata>>
Iterator;
361 unsigned int iterate(
const std::function<
void(
const UserMetadata&)>& func,
int meta_type)
const;
426 unsigned int iterate(
const std::function<
void(
const UserMetadata&)>& func,
int meta_type)
const;
439 template<
class C,
int N>
444 return user_meta ? true :
false;
457 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.
metadata iterator template
T * operator->()
Dereference the associated metadata as a pointer.
Holds circle parameters to be overlayed.
bool operator!=(const AbstractIterator< T > &other) const
check if two iterator point to different position
Holds arrow parameters to be overlaid.
virtual ~AbstractIterator()
Destructor.
T & operator*()
Dereference the associated metadata.
AbstractIterator(const T &data)
Construct an iterator for an iterable metadata.
Holds parameters of text to be overlayed.
T & get()
Directly access the associated metadata.
virtual AbstractIterator< T > & next()=0
advances the iterator to access the next data