summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-05-02 21:00:01 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-05-02 21:15:48 +0200
commit94340e4b28cc73ca7f9895892a2768df68d027a0 (patch)
treeb3a749c6825d9506146d19603a669316e22e232e /doc
parent4e8ee7acb858747b2bcdfb2384f9504df3b00a3a (diff)
avfilter: add find_rect filter
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'doc')
-rw-r--r--doc/filters.texi30
1 files changed, 30 insertions, 0 deletions
diff --git a/doc/filters.texi b/doc/filters.texi
index b7a9c9be81..68ad41314e 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -5163,6 +5163,36 @@ framework.
It does not take parameters.
+@section find_rect
+
+Find a rectangular object
+
+It accepts the following options:
+
+@table @option
+@item object
+Filepath of the object image, needs to be in gray8.
+
+@item threshold
+Detection threshold, default is 0.5.
+
+@item mipmaps
+Number of mipmaps, default is 3.
+
+@item xmin, ymin, xmax, ymax
+Specifies the rectangle in which to search.
+@end table
+
+@subsection Examples
+
+@itemize
+@item
+Generate a representative palette of a given video using @command{ffmpeg}:
+@example
+ffmpeg -i file.ts -vf find_rect=newref.pgm,cover_rect=cover.jpg:mode=cover new.mkv
+@end example
+@end itemize
+
@anchor{format}
@section format