Quickly and easily enable image and video capture in your web application
Browser-Based Image and Video Capture SDK
Dynamsoft Webcam SDK provides JavaScript APIs that enable you to easily capture images and video streams from USB Video Class (UVC) compatible webcams from within a browser. With the browser-based webcam library, you can capture a live video stream into a container and grab an image with a couple lines of code in your web application.
System Requirements
Client Side
Browser: Internet Explorer 6 and above, Edge, Firefox, Chrome
Operating system: Windows
Server Side
No dependency on 3rd-party frameworks.
Web server: Nginx, IIS, Tomcat, Apache and more.
Operating system: Linux, Windows, and more
Feature Highlights
Developers can have complete control over a webcam, e.g., exposure, iris, auto focus, etc.
One Dynamsoft Webcam 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 synch and async modes are supported.
How it Works
JavaScript Client Windows Service Cameras
As demonstrated in the above illustration, there are two core modules in Dynamsoft Webcam SDK:
JavaScript Client: This is the Dynamsoft Webcam 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 127.0.0.1 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.
…
? src="DWSResources/dynamsoft.webcam.config.js">
? src="DWSResources/dynamsoft.webcam.initiate.js">
…
dynamsoft.dwsEnv.init('DWSVideoViewerContainer',
'DWSImageViewerContainer', onSuccess, onFailure);
Features
Dynamsoft Webcam SDK enables precise control over webcams
Device
Webcam Built-in camera
System Requirements
Client-side
? Browser: Internet Explorer 6 and above, Edge, Firefox, Chrome
? Operating system: Windows XP, Vista, 7/8/10, Windows Server 2003/2008/2012
No dependency on 3rd-party frameworks. So there is no limit at the server side.
? Web server: Nginx, IIS, Tomcat, Apache and more.
? Operating system: Linux, Windows, and more.
Device: UVC (USB video class) compatible webcams; built-in laptop cameras.
Programming Language
ASP.NET (C#/VB.NET), PHP, JSP, ASP, etc.
JavaScript, HTML
Camera Settings
Developers can have complete control over a camera, e.g., exposure, iris, auto focus, backlight compensation, brightness, saturation, sharpness, gamma, contrast, white balance temperature, gain
Video Viewer - Stream Capture
Supports embedding video stream in a browser
Grabs a snapshot to a specified image viewer
Sets and gets video quality, height, width, background color of a video viewer
Image Viewer - Snapshot Capture
One Dynamsoft Webcam SDK object can have multiple image viewers. Image viewers can be dynamically created and destroyed.
A variety of image view modes are available, e.g., m*n, horizontal, vertical, single image, etc.
Sets and gets border, height, width, and other properties of an image viewer.
Image Editing
Rotates, flips, mirrors, cuts, deletes or crops an image, etc.
Import and Export Images
Downloads images from a URL to an image viewer.
Loads a DIB image from the system clipboard into an image viewer.
Copies a specified area of an image from an image viewer to clipboard in DIB format.
Converts specified images to a base64 string.
Sets and gets author, compression type, title, subject, producer, creator and other properties of PDF files.
Sets the quality of JPEG files or JPEG-encoded PDF files.
Sets the compression type for TIFF files.
Upload Images
Uploads specified images to an HTTP server. Both synch and async modes are supported.
Sets text fields in the web form which will be sent to the server along with the images.
Security
Webcam access authorization – On a user's first visit, they will need to choose whether to allow a webpage to access their local cameras.
Images in the image and video viewers are set to no-cache during the browser transmission.
© Copyright 2000-2023 COGITO SOFTWARE CO.,LTD. All rights reserved