Would it be simple to create something like Photobooth?

geestring's icon

I was trying to make something like an osx photobooth where the background could be elimnated except for the people, but it's not working the way I planned. I'm using Processing, however it's really slow. Anyone have experience with that?

Anyways, would Max5 be a better solution? Any links to some tutorials?