【发布时间】:2016-11-29 10:03:31
【问题描述】:
当我尝试在 C++ (OpenCV 3) 中使用 uEye 相机时,在 0x..... (GpuAcc_64.dll) 处抛出异常。知道如何解决这个问题吗?这发生在代码行“VideoCapture capture = VideoCapture(1);”
我的代码:
#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);
【问题讨论】: