Base class for recognizing plate from an image (cv::Mat).
Input is a plate image (cv::Mat).
Output is the number and color of plate in the input image.
Sample code:
Note: Only Chinese plates are supported. Only the Edge platform is
supported.
cv::Mat image = cv::imread("plate.jpg");
auto network = vitis::ai::PlateNum::create(true);
auto r = network->run(image);
auto plate_number = r.plate_number;
auto plate_color = r.plate_color;
Quick Function Reference
The following table lists all the functions defined in the vitis::ai::PlateNum class:
| Type | Member | Arguments |
|---|---|---|
| std::unique_ptr< PlateNum > | create |
|
| std::unique_ptr< PlateNum > | create |
|
| PlateNum |
|
|
| PlateNum |
|
|
| PlateNum & | operator= |
|
| ~PlateNum |
|
|
| int | getInputWidth |
|
| int | getInputHeight |
|
| size_t | get_input_batch |
|
PlateNumResult
|
run |
|
std::vector<
PlateNumResult
> |
run |
|