Raspberry Pi Barcode Scanner in Python

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 good 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.

Read more

How to Convert OpenCV Image Data from Python to C

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.

Read more

Reading Barcode with Webcam in OpenCV and Python

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.

Read more

How to Check Broken Links with 404 Error in Python

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.

Read more

How to Change Windows Gateway by Broadband Speed in Python

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.

Read more

Django Barcode Scanning App

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.

Read more