当前位置:网站首页>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 .
边栏推荐
- China chart recorder market trend report, technology dynamic innovation and market forecast
- Scoring system based on 485 bus
- Cost accounting [20]
- Matlab comprehensive exercise: application in signal and system
- 学习记录:使用STM32F1看门狗
- Research Report on market supply and demand and strategy of China's Medical Automation Industry
- Flex --- detailed explanation of flex layout attributes
- 用C语言写网页游戏
- 学习记录:TIM—基本定时器
- 0-1背包问题(一)
猜你喜欢
随机推荐
JS --- detailed explanation of JS DOM (IV)
学习记录:理解 SysTick系统定时器,编写延时函数
STM32學習記錄:輸入捕獲應用
JS --- BOM details of JS (V)
Crawling cat's eye movie review, data visualization analysis source code operation instructions
E. Breaking the Wall
力扣刷题记录--完全背包问题(一)
UCORE Lab 1 system software startup process
LeetCode#268. Missing numbers
Matlab comprehensive exercise: application in signal and system
Research Report of pharmaceutical solvent industry - market status analysis and development prospect prediction
ucore lab 6
Learning record: Tim - Basic timer
HDU - 6024 Building Shops(女生赛)
ucore lab 6
学习记录:使用STM32外部输入中断
Ball Dropping
mysql导入数据库报错 [Err] 1273 – Unknown collation: ‘utf8mb4_0900_ai_ci’
Flex --- detailed explanation of flex layout attributes
csapp shell lab



![mysql导入数据库报错 [Err] 1273 – Unknown collation: ‘utf8mb4_0900_ai_ci’](/img/e6/f4a696179282fe1f4193410c5a493a.png)





