Comments: HTML5-based camera (HTML5 webcam) photo function. For more information, see
WebRTC may be the most popular HTML5 standard next year. Mozilla developed a set of APIs to help you control hardware, such as cameras, microphones, and acceleration tables. You can call the local hardware devices you need without relying on other plug-ins.
In this article, we will introduce Photobooth developed by Wolfram Hempel. js, using this class library can help you quickly call the camera function, you can easily add the camera function to the website. You can use this feature to quickly take photos of users. Is it very good?
Main features:
Contrast settings color settings brightness settings color settings photo buttons support the latest chrome, firefox, opera and other browsers support jQuery plug-ins and javascript code
After using Chrome to open the Online Demo, make sure that the browser is allowed to call your camera, as shown below:
Javascript code:
The Code is as follows:
$ ('# Webcam'). photobooth (). on ("image", function (event, dataUrl ){
$ ('. Nopic'). hide ();
$ ("# Pictures"). prepend (' ');
});
The above code passes the generated image data to the label id = picture. For more information, see related APIs.
Source code download
We hope you will like this Online demo and demo. If you have any questions, please leave us a message. Thank you!