Metadata for overlay display on a frame.
The metadata is for nvosd element display various shapes on the curernt frame.
Definition at line 372 of file metadata.hpp.
Public Types | |
typedef std::unique_ptr< AbstractIterator< DisplayMetadata > > | Iterator |
Public Member Functions | |
DisplayMetadata (void *data=nullptr) | |
Constructor through opaque data pointer. More... | |
virtual | ~DisplayMetadata () |
Destructor. More... | |
unsigned int | nRects () const |
Number of the rectangles. More... | |
unsigned int | nLabels () const |
Number of the labels. More... | |
unsigned int | nLines () const |
Number of the lines. More... | |
unsigned int | nArrows () const |
Number of the arrows. More... | |
unsigned int | nCircles () const |
Number of the circles. More... | |
bool | add (NvOSD_TextParams &) |
Add a text label. More... | |
bool | add (NvOSD_RectParams &) |
Add a rectangle. More... | |
bool | add (NvOSD_LineParams &) |
Add a line. More... | |
bool | add (NvOSD_ArrowParams &) |
Add an arrow. More... | |
bool | add (NvOSD_CircleParams &) |
Add a circle. More... | |
virtual | operator bool () |
operator to check if a metadata is void More... | |
Protected Attributes | |
void * | data_ |
Friends | |
class | FrameMetadata |
typedef std::unique_ptr<AbstractIterator<DisplayMetadata> > deepstream::DisplayMetadata::Iterator |
Definition at line 374 of file metadata.hpp.
deepstream::DisplayMetadata::DisplayMetadata | ( | void * | data = nullptr | ) |
Constructor through opaque data pointer.
By default an empty display metadata object is created.
|
virtual |
Destructor.
bool deepstream::DisplayMetadata::add | ( | NvOSD_ArrowParams & | ) |
Add an arrow.
bool deepstream::DisplayMetadata::add | ( | NvOSD_CircleParams & | ) |
Add a circle.
bool deepstream::DisplayMetadata::add | ( | NvOSD_LineParams & | ) |
Add a line.
bool deepstream::DisplayMetadata::add | ( | NvOSD_RectParams & | ) |
Add a rectangle.
bool deepstream::DisplayMetadata::add | ( | NvOSD_TextParams & | ) |
Add a text label.
Referenced by deepstream::CountMarker::handleData().
unsigned int deepstream::DisplayMetadata::nArrows | ( | ) | const |
Number of the arrows.
unsigned int deepstream::DisplayMetadata::nCircles | ( | ) | const |
Number of the circles.
unsigned int deepstream::DisplayMetadata::nLabels | ( | ) | const |
Number of the labels.
unsigned int deepstream::DisplayMetadata::nLines | ( | ) | const |
Number of the lines.
unsigned int deepstream::DisplayMetadata::nRects | ( | ) | const |
Number of the rectangles.
|
inlinevirtualinherited |
operator to check if a metadata is void
Reimplemented in deepstream::UserMetadata.
Definition at line 51 of file metadata.hpp.
References deepstream::Metadata::data_.
|
friend |
Definition at line 408 of file metadata.hpp.
|
protectedinherited |
Definition at line 54 of file metadata.hpp.
Referenced by deepstream::Metadata::operator bool(), and deepstream::UserMetadata::operator bool().