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

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, format=(string)RGB, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]

name

src

direction

source

presence

always

details

video/x-raw, format=(string)RGB, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]

Details

GstNuvDemux

typedef struct {
  GstElement     parent;

  guint         mode;
  GstAdapter    *adapter; 
  guint64       video_offset;
  guint64       audio_offset;

  /* pads */
  GstPad        *sinkpad;
  GstPad        *src_video_pad;  
  GstPad        *src_audio_pad;
  gboolean      first_video;
  gboolean      first_audio;

  /* NUV decoding state */
  GstNuvDemuxState state;
  guint64        offset;

  /* Mpeg ExtraData */
  guint64       mpeg_data_size;
  GstBuffer     *mpeg_buffer;
  
  nuv_header *h;
  nuv_extended_header *eh;
  nuv_frame_header *fh;
} 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: "Opencv Text Overlay"


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