问题描述:
在ubuntu编译别人的项目时,报错:error: ‘type’ is not a member of ‘cv::DataType<cv:DataType < cv::KeyPoint>’
解决:
最后找到了终于解决了方案:https://github.com/ros-perception/image_pipeline/issues/308
在.h文件或者引用库前面加上一句
#define OPENCV_TRAITS_ENABLE_DEPRECATED
例如我的程序: