Photobooth-js is a jQuery plugin plus an html5 widget that allows users to take their avatar pictures on your site.This jquery plugin is supported in all browsers that support navigator.getUserMedia.
Demo: http://wolframhempel.github.com/photobooth-js/
Download Links
https://github.com/WolframHempel/photobooth-js