summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorGuo, Yejun <yejun.guo@intel.com>2020-03-20 20:54:07 +0800
committerGuo, Yejun <yejun.guo@intel.com>2020-04-07 11:04:47 +0800
commit7e4527e8fa1f8f0bba6a7f7cadc407813f17fbd1 (patch)
tree6f01c89c95ce4f50296625c05a4f7bc4df1d6c72 /doc
parentbbc64799dce727aaa73522353eaf01b11ad79755 (diff)
avfilter/vf_derain.c: put all the calculation in model file.
currently, the model outputs the rain, and so need a subtraction in filter c code to get the final derain result. I've sent a PR to update the model file and accepted, see at https://github.com/XueweiMeng/derain_filter/pull/3 Signed-off-by: Guo, Yejun <yejun.guo@intel.com> Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
Diffstat (limited to 'doc')
-rw-r--r--doc/filters.texi7
1 files changed, 5 insertions, 2 deletions
diff --git a/doc/filters.texi b/doc/filters.texi
index dce396e3fd..59933634cb 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -8878,6 +8878,7 @@ delogo=x=0:y=0:w=100:h=77:band=10
@end itemize
+@anchor{derain}
@section derain
Remove the rain in the input image/video by applying the derain methods based on
@@ -8932,6 +8933,8 @@ Note that different backends use different file formats. TensorFlow and native
backend can load files for only its format.
@end table
+It can also be finished with @ref{dnn_processing} filter.
+
@section deshake
Attempt to fix small changes in horizontal and/or vertical shift. This
@@ -9201,9 +9204,9 @@ Set the output name of the dnn network.
@itemize
@item
-Halve the red channle of the frame with format rgb24:
+Remove rain in rgb24 frame with can.pb (see @ref{derain} filter):
@example
-ffmpeg -i input.jpg -vf format=rgb24,dnn_processing=model=halve_first_channel.model:input=dnn_in:output=dnn_out:dnn_backend=native out.native.png
+./ffmpeg -i rain.jpg -vf format=rgb24,dnn_processing=dnn_backend=tensorflow:model=can.pb:input=x:output=y derain.jpg
@end example
@item