ffmpeg实例,edgedetect边缘检测


ffmpeg命令目录


原图,边缘图

在这里插入图片描述在这里插入图片描述

Detect and draw edges. The filter uses the Canny Edge Detection algorithm.
边缘检测,使用canny边缘算法

The filter accepts the following options:
滤镜接收一下参数

low
high
Set low and high threshold values used by the Canny thresholding algorithm.
设置Canny阈值算法使用的低阈值和高阈值。

The high threshold selects the "strong" edge pixels, which are then connected through 8-connectivity with the "weak" edge pixels selected by the low threshold.
高阈值选择“强”边缘像素,然后通过8-连通性与低阈值选择的“弱”边缘像素连接
四连通区域是11011其中0代表中心点,4个1代表上下左右四个方向。
八连通区域是111101111也就是除了上下左右四个方向外,还有左上、右上、左下、右下。

low and high threshold values must be chosen in the range [0,1], and low should be lesser or equal to high.
必须在[0,1]范围内选择低阈值和高阈值,低阈值应小于或等于高阈值。

Default value for low is 20/255, and default value for high is 50/255.
“低”的默认值为20/255,“高”的默认值为50/255

mode
Define the drawing mode.
定义绘图模式

‘wires’
Draw white/gray wires on black background.
如上图,黑白

‘colormix’
Mix the colors to create a paint/cartoon effect.
最后生成图,类似油画效果,卡通效果

‘canny’
Apply Canny edge detector on all selected planes.

Default value is wires.

planes
Select planes for filtering. By default all available planes are filtered.

ffmpeg edgedetect

Canny边缘检测算法

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值