| | |
| | | } |
| | | |
| | | // plateid api |
| | | int c_api_plate_id_init(const int width, const int height, char *soPath) { |
| | | return init_plate_id_detector(width, height, soPath); |
| | | int c_api_plate_id_init(const cPlateIDCfg *config, char *soPath) { |
| | | return init_plate_id_detector(config, soPath); |
| | | } |
| | | |
| | | cPlateIDResult* c_api_plate_id_detect(int *plateIDCount, uchar*data, const int w, const int h) { |
| | | cPlateIDResult* c_api_plate_id_detect(int *plateIDCount, uchar *data, const int w, const int h) { |
| | | const cIMAGE img{data, w, h, 3}; |
| | | return plate_id_detect(plateIDCount, &img); |
| | | } |