简体   繁体   中英

How to save an image with Webcam.js?

I want to save an image that is recently captured using the WebCam. I'm using Webcam.js, it returns an image in a string format. I want to save this image inside the local directory.

        // Capure and save Image
        var data = Webcam.snap(function (data_uri) {
           console.log('Image Save',typeof data_uri)
        });

there is a nice (deprecated) wordpress plugin WP_Snapcam which is based on webcam.js, here the code for saving the photo on server in PHP/JS: hier

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM