download and change the "useVideo" flag to "true" to try it on live video.
Source code
Built with Processing