人脸识别的代码,为什么在Size里面的第一个capture会报错呢
#include<opencv2/opencv.hpp>
#include<iostream>
using namespace cv;
using namespace std;
int main()
{
VideoCapture(0);//打开摄像头
Size S = Size((int)capture.get(CAP_PROP_FRAME_HEIGHT),(int)capture.get(CAP_PROP_FRAME_WIDTH));
int fps = capture.get(CAP_PROP_FPS);
waitKey(0);
return 0;
}