vitis::ai::Cflownet - 3.5 日本語

Vitis AI ライブラリ ユーザー ガイド (UG1354)

Document ID
UG1354
Release Date
2023-06-29
Version
3.5 日本語
Cflownet のベース クラス (プロダクション認識)。

入力はイメージ (cv:Mat) です。

出力は CflownetResult という名前の検出結果の構造体です。

サンプル コード:

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";

関数クイック リファレンス

次の表に、vitis::ai::Cflownet クラスに定義されているすべての関数を示します。

表 1. 関数クイック リファレンス
タイプ メンバー 引数
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