Multitaskv3 Network Type , declaration multitask Network.
number of classes label: 0 name: "car" label: 1 name: "sign" label: 2 name: "person"
Base class for ADAS MuiltTask from an image (cv::Mat).
Input an image (cv::Mat).
Output is a struct of MultiTaskv3Result
include segmentation results, detection results and vehicle towards;
Sample code:
auto det = vitis::ai::MultiTaskv3::create
("multi_task");
auto image = cv::imread("sample_multitaskv3.jpg");
auto result = det->run_8UC3(image);
cv::imwrite("sample_multitaskv3_result.jpg",result.segmentation);
cv::imwrite("sample_multitaskv3_result.jpg",result.depth);
Display of the model results:
Figure 1. result image
Quick Function Reference
The following table lists all the functions defined in the vitis::ai::MultiTaskv3
class:
Type | Name | Arguments |
---|---|---|
std::unique_ptr< MultiTaskv3 > |
create |
|
int | getInputWidth |
|
int | getInputHeight |
|
size_t | get_input_batch |
|
MultiTaskv3Result
|
run_8UC1 |
|
std::vector< MultiTaskv3Result > |
run_8UC1 |
|
MultiTaskv3Result
|
run_8UC3 |
|
std::vector< MultiTaskv3Result > |
run_8UC3 |
|