vitis::ai::PlateNum - 1.2 English

Vitis AI Library User Guide (UG1354)

Document ID
UG1354
Release Date
2020-07-21
Version
1.2 English
Base class for recognizing plate from a 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 China plate Only edge platform supported @endnote
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:

Table 1. Quick Function Reference
Type Name Arguments
std::unique_ptr< PlateNum > create
  • need_mean_scale_process
  PlateNum
  • void
  PlateNum
  • void
PlateNum & operator=
  • void
  ~PlateNum
  • void
int getInputWidth
  • void
int getInputHeight
  • void
size_t get_input_batch
  • void
PlateNumResult run
  • img
std::vector< PlateNumResult > run
  • images