Webcam Difference Keying

Some of my students are working on a project where they need a photo-booth-like keying application (take snapshot with somebody out of the picture, then step back in the picture and the background disappears). I’ve been experimenting with pixelbender the last week, and created some classes that do just that.

difference_keying

Check out the example, and play around with the parameters. Please note that it works best with a background without too much detail or similarities with the person in front. Also make sure there’s enough lighting.

You can download the source files and play around with them.

2 Responses to “Webcam Difference Keying”


  1. 1 Ronny

    Cool Wouter!

    I’ve been experimenting with keying using bitmapdata and difference layers. However I didn’t manager to figure out how to nicely apply that difference to the actual image as a mask!

    This might be interesting! Thanks for sharing :)

  2. 2 watch live tv online

    Very interesting information. This is first time i visit this blog. Hope this will be very helpful for the businessman to learn something. Thanks

Leave a Reply