A HTML5 supported webcam-image uploading module with PHP and AJAX
This module uses navigator.getUserMedia API to fetch the webcam data and send it to server using AJAX. The user media is different for different browsers. Check out how it is used to capture the exact image data using JavaScript