vitis::ai::MultiTask8UC3 - 1.4.1 English

Vitis AI Library User Guide (UG1354)

Document ID
Release Date
1.4.1 English
Base class for ADAS MuiltTask8UC3 from an image (cv::Mat).

Input is an image (cv::Mat).

Output is struct MultiTaskResult include segmentation results, detection results and vehicle orientation; The result cv::Mat type is CV_8UC3

Sample code:

auto det = vitis::ai::MultiTask8UC3::create(vitis::ai::MULITASK);
auto image = cv::imread("sample_multitask.jpg");
auto result = det->run(image);

Quick Function Reference

The following table lists all the functions defined in the vitis::ai::MultiTask8UC3 class:

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