Video Analysis底层库拆分,sdk的go封装
zhangzengfei
2019-11-19 a8ff93a0cf274795f0e9c3d66093f1c4c6ccf972
csdk.cpp
@@ -33,7 +33,7 @@
}
int c_api_face_track_resize(const int chan, const int wid, const int hei){
    return face->face_track_resize(chan, wid, hei);
    return face_track_resize(chan, wid, hei);
}
YoloHandle c_api_yolo_init(
@@ -100,4 +100,32 @@
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 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, const cRECT *rcDetect) {
    const cIMAGE img{data, w, h, 3};
    return plate_id_detect(plateIDCount, &img, rcDetect);
}
int c_api_plate_id_free() {
    return uninit_plate_id_detector();
}
// plateid cloud sdk api
int c_api_plate_id_cloud_init(const cPlateIDCloudSDKCfg *config, char *soPath, char *modelPath) {
    return init_plate_id_cloud_sdk_detector(config, soPath, modelPath);
}
cPlateIDCloudSDKResult* c_api_plate_id_cloud_detect(int *plateIDCount, uchar *data, const int w, const int h, const cRECT *rcDetect) {
    const cIMAGE img{data, w, h, 3};
    return plate_id_cloud_sdk_detect(plateIDCount, &img, rcDetect);
}
void c_api_plate_id_cloud_free() {
    uninit_plate_id_cloud_sdk_detector();
}