## opencvtextoverlay opencvtextoverlay — Write text on the top of video |

## Synopsis

                        GstNuvDemux;
    struct              GstOpencvTextOverlay;

## Properties

      "colorB"                   gint                  : Read / Write
      "colorG"                   gint                  : Read / Write
      "colorR"                   gint                  : Read / Write
      "height"                   gdouble               : Read / Write
      "text"                     gchar*                : Read / Write
      "thickness"                gint                  : Read / Write
      "width"                    gdouble               : Read / Write
      "xpos"                     gint                  : Read / Write
      "ypos"                     gint                  : Read / Write

## Description

opencvtextoverlay renders the text on top of the video frames

### Example launch line

    1
    gst-launch-0.10 videotestsrc ! ffmpegcolorspace ! opencvtextoverlay text="Opencv Text Overlay " ! ffmpegcolorspace ! xvimagesink

## Synopsis

### Element Information

plugin | opencv
author | sreerenj<bsreerenj@gmail.com>
class | Filter/Effect/Video

### Element Pads

name | sink
direction | sink
presence | always
details | video/x-raw-rgb, bpp=(int)24, depth=(int)24, endianness=(int)4321, red_mask=(int)16711680, green_mask=(int)65280, blue_mask=(int)255, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]

name | src
direction | source
presence | always
details | video/x-raw-rgb, bpp=(int)24, depth=(int)24, endianness=(int)4321, red_mask=(int)16711680, green_mask=(int)65280, blue_mask=(int)255, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]

## Details

### GstNuvDemux

    typedef struct _GstNuvDemux GstNuvDemux;

### struct GstOpencvTextOverlay

    struct GstOpencvTextOverlay {
      GstElement element;

      GstPad *sinkpad, *srcpad;

      IplImage *cvImage;
      CvMemStorage *cvStorage;
      CvFont font;

      gint xpos;
      gint ypos;
      gint thickness;
      gint colorR,colorG,colorB;
      gdouble height;
      gdouble width;
      gchar *textbuf;
    };

## Property Details

### The `"colorB"` property

      "colorB"                   gint                  : Read / Write

Sets the color -B.

Allowed values: [0,255]

Default value: 0

### The `"colorG"` property

      "colorG"                   gint                  : Read / Write

Sets the color -G.

Allowed values: [0,255]

Default value: 0

### The `"colorR"` property

      "colorR"                   gint                  : Read / Write

Sets the color -R.

Allowed values: [0,255]

Default value: 0

### The `"height"` property

      "height"                   gdouble               : Read / Write

Sets the height of fonts.

Allowed values: [1,5]

Default value: 1

### The `"text"` property

      "text"                     gchar*                : Read / Write

Text to be display.

Default value: ""

### The `"thickness"` property

      "thickness"                gint                  : Read / Write

Sets the Thickness of Font.

Allowed values: >= 0

Default value: 2

### The `"width"` property

      "width"                    gdouble               : Read / Write

Sets the width of fonts.

Allowed values: [1,5]

Default value: 1

### The `"xpos"` property

      "xpos"                     gint                  : Read / Write

Sets the Horizontal position.

Allowed values: >= 0

Default value: 50

### The `"ypos"` property

      "ypos"                     gint                  : Read / Write

Sets the Vertical position.

Allowed values: >= 0

Default value: 50