GStreamer - OpenCV Plugins Feature: C++ , High speed processing
OPENCV – Draw Text
sobel edge detection
We Need download : GStreamer - OpenCV Plugins
http://gstreamer.freedesktop.org/modules/gst-plugins-bad.html
examples :
static char text[20]; static CvFont font1; memset(text,0,sizeof(text)); cvInitFont(&font1, CV_FONT_HERSHEY_SIMPLEX, 2.2, 2.2, 0, 6, 8); static GstFlowReturn gst_cv_smooth_transform (GstOpencvBaseTransform * base, GstBuffer * buf, IplImage * img, GstBuffer * outbuf, IplImage * outimg) { GstCvSmooth *filter = GST_CV_SMOOTH (base); cvSmooth (img, outimg, filter->type, filter->param1, filter->param2, filter->param3, filter->param4); sprintf(text,"UDOO-OpenCV Test: %d",ivv); cvPutText(outimg, text, cvPoint(100, 100), &font1, CV_RGB(255,0,0)); return GST_FLOW_OK; }run_it.sh:
export PKG_CONFIG_PATH=/usr/lib/pkgconfig ./autogen.sh ./congigure sudo make clean make sudo make install sudo cp ./src/.libs/libgstopencv.so /usr/lib/gstreamer-0.10/libgstopencv.so sudo cp ./src/.libs/libgstopencv.la /usr/lib/gstreamer-0.10/libgstopencv.la gst-inspect-0.10 opencv gst-launch-0.10 mfw_v4lsrc ! 'video/x-raw-yuv,width=640,height=480,framerate=90/1' ! ffmpegcolorspace ! cvsmooth ! ffmpegcolorspace ! ximagesink
没有评论:
发表评论