2016-11-29 12 views
1

C++(OpenCV 3)でuEyeカメラを使用しようとすると、0x .....(GpuAcc_64.dll)で例外がスローされます。どのようにこれを解決するための任意のアイデア?これは、コード行 "VideoCapture capture = VideoCapture(1);"で発生します。OpenCV 3とC++でGpuAcc_64.dll例外を解決するには?

マイコード:

#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); 

答えて

1

専用のオンボードGPUとラップトップ上にある場合は、それらのいずれかを無効にしてみてください、それが動作するかどうかを確認。

私は問題の原因を正確にはわかりませんが、これが私の問題を解決しました。 (具体的には、私のオンボードGPUを無効にして固定)

関連する問題