st_tissue_recognition安装

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值