vitis::ai::BCC - 2.5 日本語

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

Document ID
UG1354
Release Date
2022-06-15
Version
2.5 日本語
BCC (ベイズ群衆カウント) のベース クラス

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

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

サンプル コード:

Mat img = cv::imread("sample_BCC.jpg");
auto BCC = vitis::ai::BCC::create("bcc_pt",true);
auto result = BCC->run(img);
std::cout << result.count << "\n";

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

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

表 1. 関数クイック リファレンス
タイプ メンバー 引数
std::unique_ptr< BCC > create
  • const std::string & model_name
  • bool need_preprocess
vitis::ai::BCCResult run
  • const cv::Mat & img
std::vector< vitis::ai::BCCResult > run
  • const std::vector< cv::Mat > & imgs
int getInputWidth
  • void
int getInputHeight
  • void
size_t get_input_batch
  • void