vitis::ai::Cflownet - 3.5 English

Vitis AI Library User Guide (UG1354)

Document ID
UG1354
Release Date
2023-06-29
Version
3.5 English
Base class for Cflownet (production recognication)

Input is an image (cv:Mat).

Output is a struct of detected results, named CflownetResult.

Sample code :

Mat img = cv::imread("sample_Cflownet.jpg");
auto Cflownet = vitis::ai::Cflownet::create("bosch_fcnsemsegt",true);
auto result = Cflownet->run(img);
std::cout << result.width <<"\n";

Quick Function Reference

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

Table 1. Quick Function Reference
Type Member Arguments
std::unique_ptr< Cflownet > create
  • const std::string & model_name
  • bool need_preprocess
vitis::ai::CflownetResult run
  • const float * p
std::vector< vitis::ai::CflownetResult > run
  • const std::vector< const float * > ps
int getInputWidth
  • void
int getInputHeight
  • void
size_t get_input_batch
  • void