EasyPR icon indicating copy to clipboard operation
EasyPR copied to clipboard

debug模式下编译报错channels is not a member of cv::DataType<_Tp>

Open mshtang opened this issue 6 years ago • 1 comments

I'm submitting a ... (check one with "x")

[ ] bug report
[x] help wanted
[ ] feature request

Current behavior VS2017+OpenCV3.4.2版本在debug模式下编译解决方案报错: Severity Code Description Project File Line Suppression State Error C2039 'channels': is not a member of 'cv::DataType<_Tp>' libeasypr c:\opencv\build\include\opencv2\core\mat.inl.hpp 1099 Error C3867 'cv::Mat::channels': non-standard syntax; use '&' to create a pointer to member libeasypr c:\opencv\build\include\opencv2\core\mat.inl.hpp 1099 Error C2297 '': illegal, right operand has type 'int (__cdecl cv::Mat:: )(void) const' libeasypr c:\opencv\build\include\opencv2\core\mat.inl.hpp 1099 Error C2039 'depth': is not a member of 'cv::DataType<_Tp>' libeasypr c:\opencv\build\include\opencv2\core\traits.hpp 362 Error C2065 'depth': undeclared identifier libeasypr c:\opencv\build\include\opencv2\core\traits.hpp 362

搜到之前类似的issue让把traits.hpp中的#define OPENCV_TRAITS_ENABLE_DEPRECATED uncomment掉,但没有用。 请问大神这个问题该如何解决?

mshtang avatar Oct 26 '18 07:10 mshtang

别用3.4把 换3.2,我也出现了这个问题

miaoxiangli avatar Nov 09 '18 06:11 miaoxiangli