A great article in The Linux Journal discusses the creation of an OpenGL-based Image Processing system that can analyze video captured from an attached camera in real-time.

This article discusses using OpenGL shaders to perform image processing. The images are obtained from a device using the Video4Linux 2 (V4L2) interface. Using horsepower from the graphics card to do some of the image processing reduces the load on the CPU and may result in better throughput. The article describes the Glutcam program, which I developed, and the pieces behind it.

In the end, he has it running a single edge-detection kernel, but it could easily be modified to do much much more.

via Image Processing with OpenGL and Shaders | Linux Journal.