当前位置:网站首页>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 .
边栏推荐
- Research Report of exterior wall insulation system (ewis) industry - market status analysis and development prospect prediction
- Eslint--- error: newline required at end of file but not found (EOL last) solution
- Nodejs+vue网上鲜花店销售信息系统express+mysql
- Cost accounting [20]
- 初入Redis
- 编程到底难在哪里?
- Accounting regulations and professional ethics [5]
- China's earthwork equipment market trend report, technical dynamic innovation and market forecast
- 学习记录:使用STM32F1看门狗
- B - 代码派对(女生赛)
猜你喜欢
随机推荐
Path problem before dynamic planning
学习记录:使用STM32外部输入中断
Es6--- two methods of capturing promise status as failed
0 - 1 problème de sac à dos (1)
差分(一维,二维,三维) 蓝桥杯三体攻击
Es6---es6 content details
C语言数组的概念
JS --- detailed explanation of JS DOM (IV)
学习记录:使用STM32F1看门狗
LeetCode#2062. Count vowel substrings in strings
D - Function(HDU - 6546)女生赛
CS zero foundation introductory learning record
通俗地理解什么是编程语言
Alice and Bob (2021牛客暑期多校训练营1)
Crawler series (9): item+pipeline data storage
ucore lab 6
LeetCode#62. Different paths
LeetCode#268. Missing numbers
STM32 learning record: play with keys to control buzzer and led
Cost accounting [14]