【问题标题】:How to solve GpuAcc_64.dll exception in OpenCV 3 and C++?如何解决 OpenCV 3 和 C++ 中的 GpuAcc_64.dll 异常?
【发布时间】: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);

【问题讨论】:

    标签: c++ windows opencv


    【解决方案1】:

    如果您使用的是带有专用板载 GPU 的笔记本电脑,请尝试禁用其中一个,看看是否可行。

    我不知道究竟是什么导致了这个问题,但这就是为我解决了这个问题的原因。 (更具体地说,禁用我的板载 GPU 修复了它)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2010-09-24
      • 2019-12-28
      • 2022-08-07
      • 2016-04-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多