opencv 2.3.* imread not working

不问归期 提交于 2020-01-02 02:12:26

问题


I cant get imread to work, its same problem as this guy:

OpenCV imwrite 2.2 causes exception with message "OpenCV Error: Unspecified error (could not find a writer for the specified extension)" on Windows 7

I just dont wannt use the workaround. Anyone know the problem?

Using windows 7 64bit


回答1:


The problem was due to mixing up debugging and release builds. If building in debug mode, the debug libs are needed. On unix this dont seem to be a problem.




回答2:


imread(filename) doesn't load any data if you use release libraries in debug mode. This is weird, I think it should'n happen but actually it does. Check this question asking about the reason why this is happening.



来源:https://stackoverflow.com/questions/7817704/opencv-2-3-imread-not-working

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!