我在进行实时摄像头对环境的目标检测时 报错:0001838190处(位于wipeiee中有末经处理的异常McrsoC++异常:qv:EEepinn位于内存位宣000000FE2O A。 具体的报错为以下:
引起的中断为:
经过查看中断.发现问题为,输入的模板图像的分辨率大于相机的分辨率。可以自行查看相机的分辨率和模板图像的分辨率进行解决。
在opencv中 查看相机的分辨率的代码如下
double frame_width=0;
double frame_height=0;
double frame_fps = 0;
frame_width=pCapture.get(CV_CAP_PROP_FRAME_WIDTH);
frame_height=pCapture.get(CV_CAP_PROP_FRAME_HEIGHT);
frame_fps=pCapture.get(CV_CAP_PROP_FPS);
cout << "frame_width=" << frame_width << endl;
cout << "frame_height=" << frame_height << endl;
cout << "frame_fps=" << frame_fps << endl;