OpenCV + OpenGL + GLSL = fast real time video processing fun
I’ve been writing some image/video processing shaders this week, and have some nifty post-processing effects in place that take the input from a live webcam and dynamically process the video stream and overlay the effect in real time.
So far, I’ve implemented 28 different shader based filters ranging from black and white line drawing to hexagonal pixelation to toon shading. The reason for the post is that this project is my first real use of OpenCV and although I’m not really taking advantage of a lot of what it has to offer, I have been playing with some of the features, and it’s an impressive library. Computer Vision is just too much fun…
I’m calling this the wacky video booth application considering the range of filtering/processing effects included, and code is available on GitHub here.