简体   繁体   English

如何使用 Webcam.js 保存图像?

[英]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.我正在使用 Webcam.js,它以字符串格式返回图像。 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有一个不错的(已弃用)wordpress 插件 WP_Snapcam,它基于 webcam.js,这里是用 PHP/JS 将照片保存在服务器上的代码: hier

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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