Class vart::MetaConvert#
-
class MetaConvert
This module facilitates the conversion of Infer metadata into a format compatible with the overlay module.
Metaconvert also accepts configuration parameters as JSON string, which provide further flexibility on configuring overlay information such as line thickness, font size, font type ., etc. Please check API documentation for more information. Additionally, if users have a custom meta data then they can integrate customized functions to convert them into a format suitable for processing by the overlay module by overriding base class.
Public Functions
-
MetaConvert() = delete#
MetaConvert() - Constructor for using existing metaconvert implementations.
- Parameters:
infer_res_type – Enum class to specify which implementation to instantiate
json_data – JSON config string based on the implementation class
device – Device handle to be used
MetaConvert() - Constructor for using user defined implementation.
- Parameters:
ptr – Pointer to user’s implementation instance
-
const std::shared_ptr<MetaConvertImplBase> &get_pimpl_handle() const#
get_pimpl_handle() - Gives pointer to implementation class.
- Returns:
Returns a constant reference of pointer to implementation class.
prepare_overlay_meta() - Converts inference results to data structures needed for overlay.
- Parameters:
root_infer_res – Root node of the Inference results to be interpreted and converted
- Returns:
Overlay shape info as per the inference results.
Private Members
-
std::shared_ptr<MetaConvertImplBase> pimpl#
-
MetaConvert() = delete#