This article is about how to use OpenCV and Dynamsoft Barcode Reader SDK to create a Python barcode reader on macOS.
DBR 5.x is a big leap comparing to version 4.x. A lot of code has been refactored and optimized. This tutorial aims to help developers get familiar with new APIs, and learn how to build a Python barcode application using Dynamsoft Barcode Reader SDK 5.0.
Previously, I wrote an article Raspberry Pi Barcode Scanner with Webcam and Python illustrating how to build a simple barcode scanner using Dynamsoft Barcode Reader SDK and OpenCV from scratch. The method decodeFile() was used for detecting barcodes from an image file. To use the API, you have to firstly write image buffer that obtained by OpenCV API to a file. Because the I/O operation takes too much time, this API is not suitable for real-time barcode detection from webcam video stream. Considering this scenario, I have added a new Python API decodeBuffer(). In this article, I will illustrate how to create and use the new API.
OpenCV officially provides both C++ and Python APIs for developers. Most of the time, developers just need to use one kind of programming languages to read, write and process images with hundreds of computer vision algorithms. However, if you want to use OpenCV Python APIs with an extended C/C++ library, it will be tricky to pass the data. In this article, I will share how to read camera stream with OpenCV-Python and detect barcode with Dynamsoft C/C++ Barcode SDK.
Previously, I shared an article describing how to create an online barcode reader using Node.js, which turned Raspberry Pi into a web server. Today, I want to do another experiment – building a Raspberry Pi barcode scanner with a USB webcam. For taking HD video and photo, you can choose Raspberry Pi camera module.
Probably you have read the article – Wrapping C/C++ Methods of Dynamsoft Barcode SDK for Python, which illustrates how to make Python extension on Windows. In this post, I’ll share how to make Python barcode extension on Ubuntu with Dynamsoft Barcode SDK for Linux.
Barcode is an efficient way to make information readable for machines. There are many scenarios of using Barcode reader software. For example, companies use Barcode encoding and decoding software to manage various documents that captured by office scanners. Airport security uses handheld scanners to check the boarding pass and record personal information to the database. Students use the built-in camera of the smartphone to check attendance via Barcode reader software. Since I have a Webcam connected to my desktop PC, I want to empower it to work as a Barcode reader. To implement the solution, I decide to choose OpenCV and Dynamsoft Barcode Reader SDK.
Links is one of the critical SEO factors for a Website. When creating or re-designing some pages, we cannot ignore Website audit especially in terms of finding and tracking broken links regularly. Although there are many online tools, it is still worth learning and implementing such a tool ourselves for fun. To simplify the programming complexity, I decided to use Python. With powerful Python libraries, it is fairly easy to crawl Web pages, parse HTML elements and check server response code.
Plenty of enterprises allocate static IPs and gateways to employees’ devices for better network management. For example, limiting the internet connection speed, monitoring intranet activities and so on. In my company, the network administrator sets up two gateways for accessing different broadband services. During my working time, I often need to switch the gateways to obtain better connection speed. Is there any good tool for dynamically changing gateways based on network speed? With the question, I spend some time googling relevant information and finally find out a solution in Python. Let’s take a glimpse of how to make it.
Many industries, which need to process amounts of paper per day, like healthcare, finance, education and so on, are getting started to adopt Barcode scanning as the solution for the electronic document management system. For example, when you have a health examination, you will pick a form with some Barcode stickers. Once your health report generated, it is easy to track and record all relevant information. We can implement Barcode detection either on the client side or on the server side. Many client-side applications, especially mobile apps, tend to integrate Barcode functionality for shopping, boarding, social networking, logistics and so on. In contrast, some enterprise solutions, such as ECM (enterprise content management) system, need to detect Barcode on the server side while collecting various e-documents. In this post, I will demonstrate how to quickly build a Django barcode scanning app to load and scan document images via a Web page and detect barcode information on the server-side.