vitis::ai::RoadLinePostProcess
Class of the roadline post-process. It will initializes the parameters once instead of computing them each time the program executes.
Quick Function Reference
The following table lists all the functions defined in the vitis::ai::RoadLinePostProcess
class:
Type | Name | Arguments |
---|---|---|
std::unique_ptr< RoadLinePostProcess > | create |
|
std::vector< RoadLineResult > | road_line_post_process |
|
create
Create an RoadLinePostProcess
object.
Prototype
std::unique_ptr< RoadLinePostProcess
> create(const std::vector< vitis::ai::library::InputTensor > &input_tensors, const std::vector< vitis::ai::library::OutputTensor > &output_tensors, const vitis::ai::proto::DpuModelParam &config);
Parameters
The following table lists the create
function arguments.
Type | Name | Description |
---|---|---|
const std::vector< vitis::ai::library::InputTensor > & | input_tensors | A vector of all input-tensors in the network. Usage: input_tensors[input_tensor_index]. |
const std::vector< vitis::ai::library::OutputTensor > & | output_tensors | A vector of all output-tensors in the network. Usage: output_tensors[output_index]. |
const vitis::ai::proto::DpuModelParam & | config | The DPU model configuration information. |
Returns
A unique printer ofRoadLinePostProcess
. road_line_post_process
Run roadline post-process in batch mode.
Prototype
std::vector< RoadLineResult
> road_line_post_process(const std::vector< int > &inWidth, const std::vector< int > &inHeight, size_t batch_size)=0;
Returns
The vector of struct ofRoadLineResult
.