Base class for
BCC (Bayesian crowd counting) Input is an image (cv:Mat).
Output is a struct of detection results, named BCCResult.
Sample code :
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";
Quick Function Reference
The following table lists all the functions defined in the vitis::ai::BCC class:
| Type | Name | Arguments |
|---|---|---|
std::unique_ptr< BCC > |
create |
|
| vitis::ai::BCCResult | run |
|
| std::vector< vitis::ai::BCCResult > | run |
|
| int | getInputWidth |
|
| int | getInputHeight |
|
| size_t | get_input_batch |
|