HTML5 based on the implementation of the Super Cool camera (HTML5 webcam) Photo function-Photoboo

Source: Internet
Author: User
Keywords Camera HTML5.

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

Online Demo

WEBRTC may be the most watched HTML5 standard of the next year, and Mozilla has developed a set of APIs to help you control your hardware, such as a camera, a microphone, or an accelerator table. You can not rely on other plug-ins to invoke the native 11585.html "> Hardware device you need."

In today's article, we'll introduce the photobooth.js from Wolfram Hempel, which can help you quickly call the camera feature, and you can easily add camera features to the site. and quick to help you take pictures, you can use this feature to achieve the user's head shots, is not very good?

Main Features:

Contrast settings

Color settings

Brightness settings

Tonal settings

Photo button

Support the latest Chrome, Firefox, Opera and other browsers

Support for jquery plug-in mode and JavaScript code

  

After using Chrome to open an online demo, make sure to allow your browser to call your webcam as follows:

  

JavaScript code:

$ (' #webcam '). Photobooth (). On ("Image", function (event, Dataurl) {$ ('. Nopic '). Hide (); $ ("#pictures"). Prepend (' < IMG src= "' + Dataurl + '" > ");

The above code passes the generated picture data to the Id=picture label. Please refer to the relevant API for specific instructions.

Hope you like us to provide this online demo and demo, if you have any questions, please give us a message, thank you!

Source: Super Cool camera based on HTML5 (HTML5 webcam) Photo function-Photobooth.js

Date: 2012-12-10 Source: gbin1.com

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.