This module facilitates the overlay of annotations onto the video frame, currently overlay utilizes OpenCV library to draw on frames, which is software based. Overlay supports drawing of bounding boxes, text, lines, arrows, circles and polygons on frames. Application can also incorporate custom implementation using base class.
More...
#include <vart_overlay.hpp>
This module facilitates the overlay of annotations onto the video frame, currently overlay utilizes OpenCV library to draw on frames, which is software based. Overlay supports drawing of bounding boxes, text, lines, arrows, circles and polygons on frames. Application can also incorporate custom implementation using base class.
- See also
- OverlayImplBase
◆ Overlay() [1/3]
| vart::Overlay::Overlay |
( |
| ) |
|
|
delete |
◆ Overlay() [2/3]
Overlay() - Constructor for creating an overlay instance, which accepts input type and device instance parameters.
- Parameters
-
| [in] | overlay_impl_type | Enum class to specify which type of overlay implementation to use. Only OverlayImplType::OPENCV is currently supported. |
| [in] | device | Device handle. Must be non-null. See vart::Device for more details. |
◆ Overlay() [3/3]
Overlay() - Constructor for creating an overlay instance, which accepts user defined pimpl parameters.
- Parameters
-
| [in] | ptr | Pointer to user's implementation instance |
◆ draw_overlay()
draw_overlay() - Draws the input overlay information on to the frame
- Parameters
-
| [in,out] | frame | Video frame on which drawing operation to be performed. |
| [in] | shape_info | Information used in the drawing operation. Read-only despite the signature taking a non-const reference; the OpenCV backend does not mutate the supplied OverlayShapeInfo. |
◆ get_pimpl_handle()
| const std::shared_ptr<OverlayImplBase>& vart::Overlay::get_pimpl_handle |
( |
| ) |
const |
get_pimpl_handle() - Retrieves pointer to implementation class.
- Returns
- Constant reference to the pimpl. Non-null when the
Overlay was constructed via the type-enum constructor; for the pimpl constructor it is only non-null if the caller supplied a non-null pointer.
The documentation for this class was generated from the following file: