简体   繁体   English

打开简历相机校准

[英]Open cv camera calibration

I am running the camera calibration program present in the opencv\\sources\\samples\\cpp\\tutorial_code\\calib3d\\camera_calibration folder . 我正在运行opencv \\ sources \\ samples \\ cpp \\ tutorial_code \\ calib3d \\ camera_calibration文件夹中的相机校准程序。 When i try to run the source code in release mode i get the , i get a buffer overrun error saying 当我尝试以发布模式运行源代码时,得到,我收到缓冲区溢出错误,提示

A buffer overrun has occurred in Camera calibration_19.10.exe which has corrupted the program's internal state. 相机calibration_19.10.exe中发生缓冲区溢出,已损坏程序的内部状态。 Press Break to debug the program or Continue to terminate the program. 按Break调试程序,或按Continue终止程序。

where Camera calibration_19.10 is the name of the project i am compiling my source code in. 其中Camera Calibration_19.10是我正在编译源代码的项目的名称。

The question here is that what is the mistake in the code or the linked libraries resulting in the above error to pop up ??. 这里的问题是,代码或链接库中的错误是什么导致上述错误弹出??。

The problem with my project was i had set my opencv libraries to \\opencv\\build\\x86\\vc12\\lib . 我的项目的问题是我将我的opencv库设置为\\ opencv \\ build \\ x86 \\ vc12 \\ lib。 But visual studio needed \\opencv\\build\\x86\\vc11\\lib. 但是Visual Studio需要\\ opencv \\ build \\ x86 \\ vc11 \\ lib。 So when i used the .dlls(opencv_world300.dll,opencv_world300d.dll) from \\opencv\\build\\x86\\vc11\\bin into my project debug and release folder , the executables worked fine without the above mentioned error 因此,当我使用\\ opencv \\ build \\ x86 \\ vc11 \\ bin中的.dlls(opencv_world300.dll,opencv_world300d.dll)进入我的项目debug和release文件夹时,可执行文件可以正常工作而不会出现上述错误

PS if u get the above error when using visual studio 2012. use \\opencv\\build\\x86\\vc11\\bin dll's instead of \\opencv\\build\\x86\\vc12\\bin dll's and all ist gut. PS,如果您在使用Visual Studio 2012时遇到上述错误。请使用\\ opencv \\ build \\ x86 \\ vc11 \\ bin dll代替\\ opencv \\ build \\ x86 \\ vc12 \\ bin dll和所有ist。 :D :D

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM