需要重新编译opencv的,最后getCudaEnabledDeviceCount();这个函数返回值大于零才行//first.cpp:定义控制台应用程序的入口点。//#include"stdafx.h"#include#include"opencv2/opencv.hpp"#include"opencv2/gpu/gpu.hpp"#pragmaco..