barcode-reader-python-samples
barcode-reader-python-samples copied to clipboard
Samples for Dynamsoft Barcode Reader SDK Python Edition
Dynamsoft Barcode Reader samples for Python edition
Overview
This repository contains multiple samples that demonstrate how to use the Dynamsoft Barcode Reader Python Edition.
Requirements
Supported Platforms
- Windows x64
- Linux (x64, ARM32, ARM64)
- macOS (10.15+)
Supported Python Versions
- Python 3.6
- Python 3.7
- Python 3.8
- Python 3.9
- Python 3.10
- Python 3.11
- Python 3.12
Installation
pip install dbr
or
pip3 install dbr
Samples
Sample Name | Description |
---|---|
hello-world |
Shows the simplest way to recognize barcodes from images in Python using Dynamsoft Barcode Reader SDK. |
general-settings |
Shows how to adjust general scan settings, e.g., barcode format, barcode count, scan region. |
image-decoding |
Shows how to decode images in various formats, e.g., file bytes, opencv image, raw image buffer. |
video-decoding |
Shows how to decode barcodes from a video from a file or camera. |
video-decoding-for-picamera |
Shows how to scan barcodes from videos from a Raspberry Pi camera (PiCamera). |
batch-decode |
Shows how to batch decode image files from a specified folder. |
speed-first-settings |
Shows how to configure the scan settings for best barcode reading speed. |
read-rate-first-settings |
Shows how to configure the scan settings to read as many barcodes as possible at one time. Recommended when decoding multiple barcodes from a single image. |
accuracy-first-settings |
Shows how to configure the scan settings for best barcode reading accuracy. |
read-dpm-barcode |
Shows how to read DPM (Direct Part Mark) barcodes. |
Documentation
https://www.dynamsoft.com/barcode-reader/docs/server/programming/python/?ver=latest&utm_source=samples
License
The barcode reader library requires a license to work. You can use the API init_license
to initialize the license key and activate the SDK.
These samples use a free public trial license which requires a network connection to function. You can request a 30-day free trial license key from Customer Portal which works offline.
Contact Us
https://www.dynamsoft.com/company/contact/