C++ 如何解决OpenCV 3和C+中的GpuAcc_64.dll异常+;?
我在0x处遇到异常。。。。。当我尝试在C++中使用UEKE相机(OpenCV 3)时,(GPACACH64。DLL)。你知道怎么解决这个问题吗?这发生在代码行“VideoCapture=VideoCapture(1);” 我的代码:C++ 如何解决OpenCV 3和C+中的GpuAcc_64.dll异常+;?,c++,windows,opencv,C++,Windows,Opencv,我在0x处遇到异常。。。。。当我尝试在C++中使用UEKE相机(OpenCV 3)时,(GPACACH64。DLL)。你知道怎么解决这个问题吗?这发生在代码行“VideoCapture=VideoCapture(1);” 我的代码: #include "opencv2/highgui.hpp" #include "opencv2/opencv.hpp" #include "opencv2/calib3d.hpp" #include "opencv2/imgproc/imgproc.hpp" #i
#include "opencv2/highgui.hpp"
#include "opencv2/opencv.hpp"
#include "opencv2/calib3d.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include <iostream>
#include <fstream>
using namespace cv;
using namespace std;
int main()
{
// The number of boards you want to capture, the number of internal corners horizontally
// and the number of internal corners vertically (That's just how the algorithm works).
int numBoards;
int numCornersHor;
int numCornersVer;
cout << "Enter number of corners along width: ";
cin >> numCornersHor;
cout << "Enter number of corners along height: ";
cin >> numCornersVer;
cout << "Enter number of boards: ";
cin >> numBoards;
// We also create some additional variables that we'll be using later on.
int numSquares = numCornersHor * numCornersVer;
Size board_sz = Size(numCornersHor, numCornersVer);
// We want live feed for our calibration!
VideoCapture capture = VideoCapture(1);
#包括“opencv2/highgui.hpp”
#包括“opencv2/opencv.hpp”
#包括“opencv2/calib3d.hpp”
#包括“opencv2/imgproc/imgproc.hpp”
#包括
#包括
使用名称空间cv;
使用名称空间std;
int main()
{
//要捕获的板数,水平方向的内角数
//以及垂直方向上的内角数(这就是算法的工作原理)。
内木桨;
int Numcornersor;
国际货币基金组织;
cout>numcornersor;
cout>numCornersVer;
木桨;
//我们还创建了一些附加变量,稍后将使用这些变量。
int numSquares=numcornersor*numCornersVer;
尺寸板_sz=尺寸(NumCornersor,numCornersVer);
//我们需要现场反馈进行校准!
视频捕获=视频捕获(1);
如果您使用的是带有专用车载GPU的笔记本电脑,请尝试禁用其中一个GPU,看看是否有效
我不知道到底是什么原因导致了这个问题,但这正是我解决这个问题的原因。(更具体地说,禁用我的车载GPU修复了它)