How to Build .NET Webcam Barcode Scanner with DirectShow

In Dynamsoft Barcode Reader SDK, there is a fancy webcam barcode sample called BarcodeReaderDemo that supports reading barcodes from disk files, TWAIN-compatible hardware scanners, and USB webcams. However, one thing you have to know is the functionality of acquiring images from peripheral devices relies on Dynamic .NET TWAIN, which is also charged. Fortunately, the image viewer library and image codecs library are free to use. In this article, I will share how to remove the scanner module from the project and use DirectShow for webcam control.

Read more

Listing Multiple Cameras for OpenCV-Python on Windows

Using OpenCV APIs to capture video from a camera is convenient. However, OpenCV does not provide an API for listing all available devices. If you have multiple cameras connected to your PC, you have no idea how to choose the right one. To get device information on Windows, you need to invoke DirectShow APIs. In this post, I will share how to create a Python extension that lists camera devices for OpenCV-Python on Windows.

Read more