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

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

Android Barcode Scanner with Dynamsoft Mobile Barcode SDK

Dynamsoft aims to make barcode SDK available for all mainstream platforms, including Windows, Linux, macOS, iOS, and Android. There are many developers devoted to developing mobile barcode scanner app for iOS and Android platforms. To expedite the developing work, some of them may rely on a powerful detection and recognition libraries, like Dynamsoft mobile barcode SDK. In this post, let’s take a glimpse of how to use barcode SDK for Android to build Android barcode scanner with a few lines of code.

Read more

Raspberry Pi Barcode Scanner with GPIO

Previously, I shared two articles demonstrating how to build a Raspberry Pi barcode scanner in C/C++ with Dynamsoft Barcode Reader SDK, and how to optimize the code with thread. The hardware I used only includes Raspberry Pi 2 and Webcam. Now it is time to have fun with GPIO (General-purpose input/output). Assume you want to get rid of the display screen for making a robot with power bank, wheel, and webcam. And you need to use some indicators to monitor the status of barcode recognition. How to make it with GPIO pins and other peripherals?

Read more

How to Dockerize PHP Barcode Reader on Ubuntu

When using PHP native extensions, you have to carefully match the right PHP version. Otherwise, it may cause a compatibility issue. In addition, the web server deployment of a PHP project with customized extensions is complicated as well. A proper solution for quickly experiencing a PHP project is to use Docker. In this article, I will demonstrate how to Dockerize the PHP barcode reader project built with Dynamsoft Barcode Reader SDK for Linux.

Read more