File was renamed from csrc/buz/plate/detector.cpp |
| | |
| | | } |
| | | } |
| | | |
| | | 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; |
| | | } |
| | |
| | | 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); |