terminate called after throwing an instance of 'cv::Exception' what(): OpenCV(3.4.3) /home/david/

opencv训练后无法显示图像
terminate called after throwing an instance of ‘cv::Exception’
what(): OpenCV(3.4.3) /home/david/opencv-3.4.3/modules/core/src/matrix_wrap.cpp:800: error: (-215:Assertion failed) (flags & FIXED_TYPE) != 0 in function ‘type’

解决方法:
打开example/detector.c,注释掉610行,save_image(im,“prediction”)
https://www.zhihu.com/appview/p/36933700

你可能感兴趣的:(安装基础)