Base class for ADAS MuiltTask8UC1 from an image (cv::Mat).
Input is an image (cv::Mat).
Output is struct MultiTaskResult
include segmentation results, detection results and vehicle towards; The result cv::Mat type is CV_8UC1
Sample code:
auto det = vitis::ai::MultiTask8UC1::create(vitis::ai::MULTITASK);
auto image = cv::imread("sample_multitask.jpg");
auto result = det->run(image);
cv::imwrite("res.jpg",result.segmentation);
Quick Function Reference
The following table lists all the functions defined in the vitis::ai::MultiTask8UC1
class:
Type | Name | Arguments |
---|---|---|
std::unique_ptr< MultiTask8UC1 > |
create |
|
int | getInputWidth |
|
int | getInputHeight |
|
size_t | get_input_batch |
|
MultiTaskResult
|
run |
|
std::vector< MultiTaskResult > |
run |
|