Video Analysis底层库拆分,sdk的go封装
zhangzengfei
2019-11-19 a8ff93a0cf274795f0e9c3d66093f1c4c6ccf972
csrc/buz/plate/eparking/detector.cpp
File was renamed from csrc/buz/plate/detector.cpp
@@ -120,7 +120,7 @@
        }
    }
    cPlateIDResult* plate_id_detect(int *plateIDCount, const cIMAGE *img) {
    cPlateIDResult* plate_id_detect(int *plateIDCount, const cIMAGE *img, const cRECT *rect) {
        if (!img) {
            return NULL;
        }
@@ -132,11 +132,7 @@
        memset(&result[0], 0, sizeof(result));
        // 设置识别区域
        ::TH_RECT rcDetect;
        rcDetect.top = 0;
        rcDetect.right = img->width;
        rcDetect.bottom = img->height;
        rcDetect.left = 0;
        ::TH_RECT rcDetect = {rect->left, rect->top, rect->right, rect->bottom};
        int ret = TH_RecogImage((BYTE*)(img->data), img->width, img->height, result, &nResultNum, &rcDetect, &config);
        // printf("TH_RecogImage ret = %d\n", ret);