vitis::ai::MultiTaskv38UC1 - 2.0 English

Vitis AI Library User Guide (UG1354)

Document ID
UG1354
Release Date
2022-01-20
Version
2.0 English
Base class for ADAS MuiltTask8UC1 from an image (cv::Mat).

Input is an image (cv::Mat).

Output is struct MultiTaskv3Result include segmentation results, detection results and vehicle towards; The result cv::Mat type is CV_8UC1

Sample code:

auto det = vitis::ai::MultiTaskv38UC1::create(vitis::ai::MULTITASKv3);
auto image = cv::imread("sample_multitaskv3.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::MultiTaskv38UC1 class:

Table 1. Quick Function Reference
Type Name Arguments
std::unique_ptr< MultiTaskv38UC1 > create
  • const std::string & model_name
  • bool need_preprocess
int getInputWidth
  • void
int getInputHeight
  • void
size_t get_input_batch
  • void
MultiTaskv3Result run
  • const cv::Mat & image
std::vector< MultiTaskv3Result > run
  • const std::vector< cv::Mat > & images