int test07() {

char c;

VideoCapture inputVido(0);//1为外部摄像头ID,0为电脑内置ID

Mat src;

for (;;)

{

inputVido >> src;

imshow("视频",src);

c = waitKey(10);

if (c == 27)break;

}

return 0;

}

opencv可以使用哪些摄像头(Opencv-打开摄像头)(1)

,