Video processing
by Reto Vogel on Nov.14, 2009, under HSLU, Java, Multimediatechnik, Processing, Programming
This post is all about video. I created a small video recorder and a tiny app which tracks brightness and a specific color.
Video recorder
For this simple video recorder, I took the animation from a previous exercise (confetti) and added a record an replay function. The programm makes a mov-File of the animation. The record starts by pressing ‘R’ and stops after pressing ‘S’. After recording the file can be played/paused by pressing ‘P’.
Click here to watch a recorded sample file.
Since the execution doesn’t work within the browser you can download the source code (pde-file) here.
Brightness tracking
The program two functions. Either recognize the brightest point in the webcam image or following a indivual definable color. This can easily be done by clicking somewhere inside the image. Then every pixel gets compared with the choosen color. If there’s a similarity, the pixel is going to be considered as a part of the object.
By pressing UP or DOWN the tolerance value changes. Pressing the right mouse button resets the picked color and the brightest point is overlayed (yellow circle).
Try it out! You can view the source file to compile (unfortunately it does not work within the browser).
