Online Demo
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
Tone settings
Photo button
Supports the latest browsers such as chrome, firefox, and opera
Support for 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:
$ ('# 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.
We hope you will like this Online demo and demo. If you have any questions, please leave us a message. Thank you!
Source: HTML5-based camera (HTML5 webcam) photo function-photobooth. js