码迷,mamicode.com
首页 > 其他好文 > 详细

去除雨滴的滤镜 Derain in FFmpeg

时间:2019-06-07 19:14:30      阅读:139      评论:0      收藏:0      [点我收藏+]

标签:only   text   spec   win   input   处理   inf   native   files   

Remove the rain in the input image/video by applying the derain methods based on convolutional neural networks. Supported models:

Recurrent Squeeze-and-Excitation Context Aggregation Net (RESCAN). See http://openaccess.thecvf.com/content_ECCV_2018/papers/Xia_Li_Recurrent_Squeeze-and-Excitation_Context_ECCV_2018_paper.pdf.
Training scripts as well as scripts for model generation are provided in the repository at https://github.com/XueweiMeng/derain_filter.git.

The filter accepts the following options:

‘dnn_backend’
Specify which DNN backend to use for model loading and execution. This option accepts the following values:

‘native’
Native implementation of DNN loading and execution.

Default value is ‘native’.

‘model’
Set path to model file specifying network architecture and its parameters. Note that different backends use different file formats. TensorFlow backend can load files for both formats, while native backend can load files for only its format.

ffmpeg -i derain_input.mp4 -vf derain=model=derain_RESCAN.model derain_output.mp4

缺点:利用 CPU 处理时速度太慢,效果不是很完美。

 

技术图片 技术图片

去除雨滴的滤镜 Derain in FFmpeg

标签:only   text   spec   win   input   处理   inf   native   files   

原文地址:https://www.cnblogs.com/nlsoft/p/10988764.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!