OpenCV calibrateCamera() Assertion failed

荒凉一梦 提交于 2019-12-03 21:40:57

The only way which I found to tackle with this problem was to download OpenCV source code and then build it using CMAKE and Visual Studio 2010. Now using cmake built libraries, eliminate all of these problems. There have also been 'imread' and 'imshow' related problems; those problems also don't appear, when you build openCV libraries from CMAKE. For how to build libraries from CMAKE check this link http://docs.opencv.org/doc/tutorials/introduction/windows_install/windows_install.html I hope it would help.

I just ran into a similar issue where the same calibrate code crashed inside calibrateCamera using MSVC 2013 even though everything looked OK input, count matched etc and when i skipped the exception the image did actually calibrate.

In my case the issue was that the OpenCV compiled library I was using was compiled as a shared/DLL and my application was using it in static library mode, so changing to Multi Threaded Debug DLL vs Multi Threaded Debug in MSVC fixed it (/MTd vs /MDd). Or alternatively switching to a static build of OpenCV.

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