当前位置:网站首页>Opencv learning log 33 Gaussian mean filtering
Opencv learning log 33 Gaussian mean filtering
2022-07-06 15:43:00 【@Spring sauce】
Preface
This article is mainly about opencv Gaussian mean filtering in image processing .
One 、 Gaussian mean filtering
// Third question Gaussian mean filtering
#include <opencv2/opencv.hpp>
#include <iostream>
using namespace cv;
int main()
{
VideoCapture cap;
cap.open("C://Users//john//Desktop//VID.mp4");
cv::Size rect;
rect.width = 5;
rect.height = 5;
if (!cap.isOpened())
{
std::cout << " Cannot open video file " << std::endl;
return -1;
}
double fps = cap.get(CAP_PROP_FPS);
std::cout << "fps" << fps << std::endl;
while (1)
{
cv::Mat frame;
cv::Mat resframe;
bool rSucess = cap.read(frame);
cv::imshow("frame", frame);
GaussianBlur(frame, resframe, rect,5,5);
cv::imshow("resframe", resframe);
waitKey(0);
}
}
summary
1. The code can run directly , If you don't understand, please leave a message .
边栏推荐
- Nodejs+vue网上鲜花店销售信息系统express+mysql
- China medical check valve market trend report, technical dynamic innovation and market forecast
- Cost accounting [14]
- China's PCB connector market trend report, technological innovation and market forecast
- Truck History
- csapp shell lab
- STM32如何使用STLINK下载程序:点亮LED跑马灯(库版本)
- Research Report on surgical fluid treatment industry - market status analysis and development prospect prediction
- Optimization method of path problem before dynamic planning
- ucorelab4
猜你喜欢
C语言必背代码大全
程序员的你,有哪些炫技的代码写法?
STM32如何使用STLINK下载程序:点亮LED跑马灯(库版本)
STM32學習記錄:輸入捕獲應用
学习记录:使用STM32外部输入中断
ucore lab 6
ucore lab7
Learning record: use stm32f1 watchdog
Take you to use wxpy to create your own chat robot (plus wechat interface basic data visualization)
STM32 learning record: play with keys to control buzzer and led
随机推荐
Indonesian medical sensor Industry Research Report - market status analysis and development prospect forecast
Borg Maze (BFS+最小生成树)(解题报告)
学习记录:USART—串口通讯
C语言数组的概念
LeetCode#237. Delete nodes in the linked list
UCORE Lab 1 system software startup process
FSM和i2c实验报告
学习记录:串口通信和遇到的错误解决方法
数据在内存中的存储&载入内存,让程序运行起来
ucorelab3
Truck History
学习记录:STM32F103 时钟系统概述工作原理
动态规划前路径问题优化方式
JS调用摄像头
Medical colposcope Industry Research Report - market status analysis and development prospect forecast
Research Report on market supply and demand and strategy of Chinese graphic screen printing equipment industry
Es6--- two methods of capturing promise status as failed
C语言学习笔记
1010 things that college students majoring in it must do before graduation
想应聘程序员,您的简历就该这样写【精华总结】