opencv 设置摄像头分辨率


使用函数cv::VideoCapture::set()函数设置摄像头的分辨率


#include "cartoon.h"

int main()
{
	VideoCapture capture(0);
	if (!capture.isOpened()) { //判断能够打开摄像头
		cout<<"can not open the camera"<>frame; //载入图像

		if (frame.empty()) { //判断图像是否载入
			cout<<"can not load the frame"<

opencv 设置摄像头分辨率_第1张图片




你可能感兴趣的:(opencv)