Video Analysis底层库拆分,sdk的go封装
zhangzengfei
2019-11-14 6c5479bec34af351eebf956adf993975ab12e2ae
csdk.cpp
@@ -100,4 +100,18 @@
const char* c_api_yolo_obj_name(const int typ){
    return yolo_obj_name_by_type(typ);
}
// plateid api
int c_api_plate_id_init(const int width, const int height, char *soPath) {
    return init_plate_id_detector(width, height, soPath);
}
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);
}
int c_api_plate_id_free() {
    return uninit_plate_id_detector();
}