my digital playground

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.

Aufgabe 4

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).

Bookmark, print, and share:
  • Print
  • PDF
  • Add to favorites
  • Digg
  • Facebook
  • del.icio.us
  • StumbleUpon
  • MySpace
  • Live
  • Google Bookmarks
:, , , ,

Comments are closed.

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Blogroll

A few highly recommended websites...

Archives

All entries, chronologically...