Simple OpenCV video input/output sample

This short piece of code below captures a frame from a web cam and shows it in a window. Some simple transformations can be applied.

The code is simply compiled with:

gcc -Wall highgui_test.c -o highgui_test -lcv -I /usr/include/opencv/ -lhighgui


Leave a Reply

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.