templatematch

Performs template matching on videos and images, providing detected positions via bus messages.

Example launch line

 gst-launch-1.0 videotestsrc ! videoconvert ! templatematch template=/path/to/file.jpg ! videoconvert ! xvimagesink

Hierarchy

GObject
    ╰──GInitiallyUnowned
        ╰──GstObject
            ╰──GstElement
                ╰──GstBaseTransform
                    ╰──GstVideoFilter
                        ╰──GstOpencvVideoFilter
                            ╰──templatematch

Factory details

Authors: – Noam Lewis

Classification:Filter/Effect/Video

Rank – none

Plugin – opencv

Package – GStreamer Bad Plug-ins

Pad Templates

sink

video/x-raw:
         format: BGR
          width: [ 1, 2147483647 ]
         height: [ 1, 2147483647 ]
      framerate: [ 0/1, 2147483647/1 ]

Presencealways

Directionsink

Object typeGstPad


src

video/x-raw:
         format: BGR
          width: [ 1, 2147483647 ]
         height: [ 1, 2147483647 ]
      framerate: [ 0/1, 2147483647/1 ]

Presencealways

Directionsrc

Object typeGstPad


Properties

display

“display” gboolean

Sets whether the detected template should be highlighted in the output

Flags : Read / Write

Default value : true


method

“method” gint

Specifies the way the template must be compared with image regions. 0=SQDIFF, 1=SQDIFF_NORMED, 2=CCOR, 3=CCOR_NORMED, 4=CCOEFF, 5=CCOEFF_NORMED.

Flags : Read / Write

Default value : 3


template

“template” gchararray

Filename of template image

Flags : Read / Write

Default value : NULL


The results of the search are