View Single Post
Banned | Posts: 358 | Thanked: 160 times | Joined on Dec 2010
#6
Originally Posted by nicolai View Post
install gst-opencv
download a profile file, for example
from http://code.google.com/p/jviolajones...ce_default.xml
execute gst-launch with the facedetect module:
gst-launch-0.10 v4l2camsrc device=/dev/video1 ! video/x-raw-yuv,width=320,height=240 ! ffmpegcolorspace ! videobalance brightness=0.3 contrast=2.0 ! gamma gamma=1.5 ! ffmpegcolorspace ! facedetect profile="/home/user/haarcascade_frontalface_default.xml" ! ffmpegcolorspace ! ximagesink
i did. but all i get is black screen with grey rectangle in the middle.
The program itself prints

Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
ERROR: from element /GstPipelineipeline0/GstXImageSink:ximagesink0: Output window was closed
Additional debug info:
ximagesink.c(1112): gst_ximagesink_handle_xevents (): /GstPipelineipeline0/GstXImageSink:ximagesink0
Execution ended after 21885589603 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

Also the led in the front turns red. Can u help please!