37 class InferResultImplBase;
49 class InferResult :
public std::enable_shared_from_this<InferResult> {
133 void add_children(std::vector<std::shared_ptr<InferResult>> arg_children);
177 void traverse(
const std::function<
void(std::shared_ptr<InferResult>,
void*)>& callback,
190 std::shared_ptr<InferResultImplBase> pimpl;
191 std::weak_ptr<InferResult> parent;
192 std::vector<std::shared_ptr<InferResult>> children;
This module is used to represent inference results. Built-in supported types are ROOT,...
Definition: vart_inferresult.hpp:49
InferResult(InferResultType infer_res_type)
InferResult() - Constructor for using supported infer result type implementations.
void add_children(std::vector< std::shared_ptr< InferResult >> arg_children)
add_children() - Add all children at once.
const std::shared_ptr< InferResultImplBase > & get_pimpl_handle() const
get_pimpl_handle() - Gives pointer to implementation class.
InferResult(std::shared_ptr< InferResultImplBase > ptr)
InferResult() - Constructor for using user defined implementation.
void transform(InferResScaleInfo &info)
transform() - Transforms the infer results to the input frame resolution.
std::vector< std::shared_ptr< InferResult > > get_children()
get_children() - Returns all children of the node.
std::shared_ptr< InferResult > get_root()
get_root() - Returns root of the given inference result node.
std::shared_ptr< InferResult > get_parent()
get_parent() - Returns parent of the given inference result node.
void add_child(std::shared_ptr< InferResult > child)
add_child() - Add a child to this infer result node.
void traverse(const std::function< void(std::shared_ptr< InferResult >, void *)> &callback, TraversalOrder order, void *user_data)
traverse() - Traverse through the tree nodes in a given order.
InferResultData * get_infer_result()
get_infer_result() - Get the inference result data held by this node.
size_t get_depth()
get_depth() - Returns depth of the current node
VART (Vitis AI Runtime) public API namespace.
InferResultType
Definition: vart_inferresult_types.hpp:37
TraversalOrder
Definition: vart_inferresult_types.hpp:28
Width and height info used to transform inference results to input frame resolution.
Definition: vart_inferresult_types.hpp:62
Base structure for inference result data.
Definition: vart_inferresult_types.hpp:77