I am trying to save the image captured from webcam into my system folder. How do i save the "picture from cam" into a jpg file
snapshot.js
Webcam.attach( '#camContainer' );
function take_snapshot() {
Webcam.snap( function(img_data_url) {
document.getElementById('picture_from_cam').innerHTML = '<img src="'+img_data_url+'"/>';
var images= document.getElementById('picture_from_cam');
console.log(images);
var imageDataURL = picture_from_cam.toDataURL('image/png');
image.setAttribute('src', imageDataURL);
} );
}
'''