cam_overlay is a simple program that reads a webcam and displays it on the screen along with an overlay image.
It's primary purpose is to offload as much of the image processing/decoding to the Raspberry Pi's GPU as possible and disply a reverse camera overlay.
cd /opt/vc/src/hello_pi/libs/ilclient
make
TODO: Instructions to install dependencies
Simply run make
from the command line in the cam_overlay directory
Run make DISPLAY=x11
from the command line
From the command line, simply run with the appropriate parameters
./cam_overlay.bin
If running from the command line, Ctrl+C will stop.
If stopping from another console, using killall cam_overlay.bin
will stop.
If running from another application, sending a KILLTERM signal will stop.
Command line parameters allow you to tweak the behavior.
Command | Long Command | Details |
---|---|---|
-d | --device | v4l2 device name. Default: /dev/video0 |
-m | --mmap | Use memory mapped buffers [default] |
-r | --read | Use read() calls |
-u | --userp | Use application allocated buffers |
-s | --stretch | Stretch image to screen |
-R | --rotate | Rotate image 180 degrees |
-h | --fliph | Flip image horizontally |
-v | --flipv | Flip image vertically |