Quickly and easily integrate camera capture and video streaming in your Web application

Turn Webcam into a Document Scanner in Your Web Applications

Get 30-Day Free Trial
Turn Webcam into a Document Scanner in Your Web Applications

Browser-Based Webcam Library

Dynamsoft Camera SDK provides JavaScript APIs that enable you to easily capture images and documents from USB Video Class (UVC) compatible webcams within a browser. It supports document edge detection from a video stream and processing features including perspective correction, noise removal, contrast, brightness, and color filter (convert to a colored/grey document).

The webcam library works with all the mainstream browsers on Windows

Client Side

Browser: Internet Explorer 6 and above, Edge, Firefox, Chrome

Operating system: Windows

Language: JavaScript, VBScript, HTML

Server Side

No dependency on 3rd-party frameworks.

Web server: Nginx, IIS, Tomcat, Apache and more

Operating system: Linux, Windows, and more

Language: PHP, ASP.NET (C# / VB.NET), JSP, ASP, etc.

Feature Highlights

  • Developers can have complete control over a webcam, e.g., exposure, iris, auto focus, etc.
  • One Dynamsoft Camera SDK object can have one video viewer and multiple image viewers. Image viewers can be dynamically created and destroyed.
  • Supports embedding video stream in a browser.
  • Supports image editing.
  • Supports importing from DIB and exporting to base64 and DIB.
  • Uploads specified images to an HTTP server. Both sync and async modes are supported.
  • Scans barcodes from webcam by using with Dynamsoft Barcode Reader.
  • More features ›
Feature highlights

How it Works

How It Works
  • JavaScript Client
  • Windows Service
  • Cameras

As demonstrated in the above illustration, there are two core modules in Dynamsoft Camera SDK:

  • JavaScript Client: This is the Dynamsoft Camera SDK JavaScript library running within a browser. It communicates with the webcam Windows Service via HTTP. It accepts and sends users' operation requests to the webcam service, and processes results from the service.
  • Webcam Windows Service: This module is independent of the JavaScript Client. This Windows service listens on and handles the interface with cameras (via DirectShow) and passes the response to the JavaScript layer.
  • It is installed on an end user's PC. And users only need to install the service once.
<script type="text/javascript"
<script type="text/javascript"

<script type="text/javascript">
'DCSImageViewerContainer', onSuccess, onFailure);

Start Coding. Try for Free.

Download Free Trial Try Online Demo