A Simple Web Canvas Region Selection Tool for Barcode Region Detection

The barcode localization algorithm is an essential step for barcode recognition within an image. However, for static images, the bigger size images have, the much more time the algorithm takes. Plus, the success rate of the algorithm may be interfered by the background color and the foreground color. It is tough to guarantee a 100% success rate for locating barcodes. If the auto-detection fails, a viable workaround is to switch to the manual mode, selecting the barcode regions by your eyes, in order to recognize the barcodes you want. In this article, I will demonstrate how to create a simple web canvas region selection tool to do barcode region detection using Dynamsoft JavaScript Barcode SDK.

Read more

How to Make Dynamic Web TWAIN Work with Polymer Shadow DOM

In the past, Dynamic Web TWAIN was tightly correlated with HTML elements. It only allowed developers to use HTML element ID to initialize the image container. In the meantime, shadow DOM elements were not supported, which failed Polymer projects. Starting from the latest version 16.1, the SDK has a lower coupling. Developers can use either HTML element ID or HTML element object to initialize a Dynamic Web TWAIN object. In this article, I will share how to integrate Dynamic Web TWAIN SDK to a Polymer project for scanning documents in web browsers.

Read more

How to Fully Control Webcam Stream Params in HTML Page

If you want to open webcam stream in a web browser, what technology will you choose? Probably many developers’ answer is HTML5. Yes, with the JavaScript API getUserMedia, it will be pretty easy to open webcam within web browsers. However, the API is not supported by some old web browsers like Internet Explorer 6, 7 and 8. Besides that, the HTML5 interface cannot fully configure camera parameters such as exposure, focus and etc. Therefore, if you want to build a professional camera solution for a web project, HTML5 is not the best choice. This is why Dynamsoft made the solution. Dynamsoft Camera SDK is a JavaScript webcam SDK for Windows with DirectShow under the hood. It allows developers to quickly build online webcam viewer with a few lines of HTML and JavaScript code and fully control and adjust camera settings within web browsers.
Read more