Reputation: 3
I can't seem to use imread() and my friend suggest a workaround using cvLoadImage(), do anybody know why??? I don't really want to use a workaround.
Upvotes: 0
Views: 451
Reputation: 2106
What version of OpenCV are you using, try running in both release and debug mode? it could be a bug. If I am not wrong, you should be on 2.3 or below? I used to have this error too. Use a newer and more stable version. 2.4.6 which contains tons of bugfixes. Using OpenCV2.3 is asking for problems. Try using the most latest and most stable release when possible.
On why it happens, you can find out over here:OpenCV imread(filename) fails in debug mode when using release libraries
Hope this helps. Cheers
Upvotes: 1