Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

opencv 2.3.* imread not working

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

like image 428
Poul K. Sørensen Avatar asked Oct 19 '11 07:10

Poul K. Sørensen


2 Answers

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.

like image 194
Poul K. Sørensen Avatar answered Oct 11 '22 04:10

Poul K. Sørensen


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.

like image 35
Jav_Rock Avatar answered Oct 11 '22 06:10

Jav_Rock