Thursday, March 24, 2016

Using Gstreamer and OpenCV

After the installations i just typed the following command in the terminal which gives the live stream on the monitor using Gstreamer:

raspivid -n -w 960 -h 540 -b 4500000 -fps 8 -vf -hf -t 0 -o - | gst-launch-1.0 -v fdsrc ! h264parse ! omxh264dec ! videoconvert ! ximagesink

I wrote a python program using the OpenCV which detects the face and takes a picture of it. I included the above command in the python file to give the live stream and use it for facial detection.

No comments:

Post a Comment