Base class for
TextMountain
(text detection) Input is an image (cv:Mat).
Output is a struct of classification results, named TextMountainResult.
Sample code :
Mat img = cv::imread("sample_TextMountain.jpg");
auto TextMountain = vitis::ai::TextMountain::create
("textmountain_pt",true);
auto result = TextMountain->run(img);
// result is structure holding the text information
std::cout << result.res.size() <<"\n";
Quick Function Reference
The following table lists all the functions defined in the vitis::ai::TextMountain
class:
Type | Member | Arguments |
---|---|---|
std::unique_ptr<
TextMountain
> |
create |
|
vitis::ai::TextMountainResult | run |
|
std::vector< vitis::ai::TextMountainResult > | run |
|
int | getInputWidth |
|
int | getInputHeight |
|
size_t | get_input_batch |
|