8

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

Community
  • 1
  • 1
Poul K. Sørensen
  • 16,950
  • 21
  • 126
  • 283

2 Answers2

7

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.

Poul K. Sørensen
  • 16,950
  • 21
  • 126
  • 283
6

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.

Community
  • 1
  • 1
Jav_Rock
  • 22,059
  • 20
  • 123
  • 164