Base class for detecting the position of plate in a vehicle image (cv::Mat).
Input is a vehicle image (cv::Mat).
Output is position and score of plate in the input image.
Sample code:
cv::Mat image = cv::imread("car.jpg");
auto network = vitis::ai::PlateDetect::create
(true);
auto r = network->run(image);
auto score = r.box.score.
auto x = r.box.x * image.cols;
auto y = r.box.y * image.rows;
auto witdh = r.box.width * image.cols;
auto height = r.box.height * image.rows;
Quick Function Reference
The following table lists all the functions defined in the vitis::ai::PlateDetect
class:
Type | Name | Arguments |
---|---|---|
std::unique_ptr< PlateDetect > |
create |
|
std::unique_ptr< PlateDetect > |
create |
|
PlateDetect |
|
|
PlateDetect |
|
|
PlateDetect & |
operator= |
|
~PlateDetect |
|
|
int | getInputWidth |
|
int | getInputHeight |
|
size_t | get_input_batch |
|
PlateDetectResult
|
run |
|
std::vector< PlateDetectResult > |
run |
|