opencvtextoverlay

opencvtextoverlay — Write text on the top of video

Synopsis

                    GstNuvDemux;
                    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

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

Details

GstNuvDemux

typedef struct _GstNuvDemux GstNuvDemux;


GstOpencvTextOverlay

typedef struct {
  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;
} GstOpencvTextOverlay;

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