问题
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