#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/core/core.hpp>
using namespace cv;
int main()
{
VideoCapture cap(0);
if (!cap.isOpened())
{
return -1;
}
Mat frame;
Mat dst_up;
bool stop = false;
while (!stop)
{
cap >> frame;
pyrUp(frame, dst_up, Size(frame.cols * 2, frame.rows * 2));
imshow("我的视频", dst_up);
if (waitKey(30) >= 0)
stop = true;
}
return 0;
}
opencv 放大视频
最新推荐文章于 2024-06-16 20:21:01 发布