python的opencv怎么对图像进行平滑处理

2025-03-03 19:19:30
推荐回答(1个)
回答1:

帧差法的代码:
#define
threshold_diff1
10
//设置简单帧差法阈值
#define
threshold_diff2
10
//设置简单帧差法阈值
int
main(int
argc,unsigned
char*
argv[])
{
Mat
img_src1,img_src2,img_src3;//3帧法需要3帧图片
Mat
img_dst,gray1,gray2