Base class for detecting objects in the input image(cv::Mat). Input is an image(cv::Mat). Output is the position of the objects in the input image. Sample code:
std::vector<cv::Mat> images;
for (auto name : image_names) {
images.push_back(cv::imread(name, cv::IMREAD_GRAYSCALE));
}
auto model = vitis::ai::C2D2_lite::create
(C2D2_lite_0_pt, C2D2_lite_1_pt);
auto result = model->run(images);
std::cout << result;
Quick Function Reference
The following table lists all the functions defined in the vitis::ai::C2D2_lite
class:
Type | Name | Arguments |
---|---|---|
std::unique_ptr< C2D2_lite > |
create |
|
float | run |
|
std::vector< float > | run |
|
int | getInputWidth |
|
int | getInputHeight |
|
size_t | get_input_batch |
|