1. openCV装4.0.1.
openCV 4.0.1有个小布丁(https://github.com/opencv/opencv/pull/13969/files)要根据它修改下:
modules/videoio/src/cap_v4l.cpp 的245行后加上:
// https://github.com/opencv/opencv/issues/13929
#ifndef V4L2_CID_MPEG_VIDEO_H264_VUI_EXT_SAR_HEIGHT
#define V4L2_CID_MPEG_VIDEO_H264_VUI_EXT_SAR_HEIGHT (V4L2_CID_MPEG_BASE+364)
#endif
#ifndef V4L2_CID_MPEG_VIDEO_H264_VUI_EXT_SAR_WIDTH
#define V4L2_CID_MPEG_VIDEO_H264_VUI_EXT_SAR_WIDTH (V4L2_CID_MPEG_BASE+365)
#endif
不然会报错cap_v4l.cpp:1613:16: error: ‘V4L2_CID_MPEG_VIDEO_H264_VUI_EXT_SAR_HEIGHT’ was not declared in this scope
2. 编译st_tissue-recognition时报错 error: ‘CV_BGR2GRAY’ was not declared in this scope。要改下st_tissue-recognition代码的一个地方:st_tissue_recognition/src/util.cpp的28行的CV_BGR2GRAY改成cv::COLOR_GRAY2BGR
3. 编译st_tissue-recognition要用gcc 7.4. 不然会报main.cpp:99:29: error: ‘dirname’ was not declared in this scope 。。。。。
st_spot_detector应该也是依赖 ST tissue recognition library