Skip to main content

Dynamsoft Barcode Reader SDK is available for Windows, Linux(x64/ARM64), macOS, and Raspberry Pi OS, supporting linear barcode, QR Code, DataMatrix, MaxiCode, PDF417, etc.

Project description

version python pypi

What You Should Know About Dynamsoft Barcode Reader

trial

Dynamsoft Barcode Reader SDK enables you to efficiently embed barcode reading functionality in your web, desktop or mobile application using just a few lines of code. Saving you months of added development time and resources, our SDK can create high-speed and reliable barcode scanner software applications to meet your business needs.

About Python Barcode SDK

The Python Barcode SDK is a wrapper for Dynamsoft C++ Barcode SDK. It comes with all the general features of Dynamsoft Barcode Reader, bringing convenience for Python developers.

Version

  • 9.0

Supported Platforms

  • Windows x64
  • Linux(x64, ARM32, ARM64)
  • macOS(10.15+)

Supported Python Versions

  • Python3.6
  • Python3.7
  • Python3.8
  • Python3.9
  • Python3.10

Installation

pip install dbr

Supported Symbologies

  • Linear Barcodes (1D) :
    • Code 39 (including Code 39 Extended)
    • Code 93
    • Code 128
    • Codabar
    • Interleaved 2 of 5
    • EAN-8
    • EAN-13
    • UPC-A
    • UPC-E
    • Industrial 2 of 5
    • MSI Code
    • Code 11
  • 2D Barcodes :
    • QR Code (including Micro QR Code)
    • Data Matrix
    • PDF417 (including Micro PDF417)
    • Aztec Code
    • MaxiCode (mode 2-5)
    • DotCode
  • Patch Code
  • Pharmacode
  • GS1 Composite Code
  • GS1 DataBar :
    • Omnidirectional
    • Truncated
    • Stacked
    • Stacked Omnidirectional
    • Limited
    • Expanded
    • Expanded Stacked
  • Postal Codes :
    • USPS Intelligent Mail
    • Postnet
    • Planet
    • Australian Post
    • UK Royal Mail

Quick Start

from dbr import *

# Apply for a trial license: https://www.dynamsoft.com/customer/license/trialLicense?product=dbr&utm_source=github
license_key = "Input your own license"
image = r"Please input your own image path"

BarcodeReader.init_license(license_key)

reader = BarcodeReader()

try:
   text_results = reader.decode_file(image)

   if text_results != None:
      for text_result in text_results:
            print("Barcode Format : ")
            print(text_result.barcode_format_string)
            print("Barcode Text : ")
            print(text_result.barcode_text)
            print("Localization Points : ")
            print(text_result.localization_result.localization_points)
            print("Exception : ")
            print(text_result.exception)
            print("-------------")
except BarcodeReaderError as bre:
   print(bre)

Documentation

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Built Distributions

dbr-9.0-cp310-cp310-win_amd64.whl (9.6 MB view hashes)

Uploaded cp310

dbr-9.0-cp310-cp310-manylinux2014_aarch64.whl (11.0 MB view hashes)

Uploaded cp310

dbr-9.0-cp310-cp310-manylinux1_x86_64.whl (11.7 MB view hashes)

Uploaded cp310

dbr-9.0-cp310-cp310-macosx_10_13_x86_64.whl (5.5 MB view hashes)

Uploaded cp310

dbr-9.0-cp310-cp310-linux_armv7l.whl (10.2 MB view hashes)

Uploaded cp310

dbr-9.0-cp39-cp39-win_amd64.whl (9.6 MB view hashes)

Uploaded cp39

dbr-9.0-cp39-cp39-manylinux2014_aarch64.whl (11.0 MB view hashes)

Uploaded cp39

dbr-9.0-cp39-cp39-manylinux1_x86_64.whl (11.7 MB view hashes)

Uploaded cp39

dbr-9.0-cp39-cp39-macosx_10_13_x86_64.whl (5.5 MB view hashes)

Uploaded cp39

dbr-9.0-cp39-cp39-linux_armv7l.whl (10.2 MB view hashes)

Uploaded cp39

dbr-9.0-cp38-cp38-win_amd64.whl (9.6 MB view hashes)

Uploaded cp38

dbr-9.0-cp38-cp38-manylinux2014_aarch64.whl (11.0 MB view hashes)

Uploaded cp38

dbr-9.0-cp38-cp38-manylinux1_x86_64.whl (11.7 MB view hashes)

Uploaded cp38

dbr-9.0-cp38-cp38-macosx_10_13_x86_64.whl (5.5 MB view hashes)

Uploaded cp38

dbr-9.0-cp38-cp38-linux_armv7l.whl (10.2 MB view hashes)

Uploaded cp38

dbr-9.0-cp37-cp37m-win_amd64.whl (9.6 MB view hashes)

Uploaded cp37

dbr-9.0-cp37-cp37m-manylinux2014_aarch64.whl (11.0 MB view hashes)

Uploaded cp37

dbr-9.0-cp37-cp37m-manylinux1_x86_64.whl (11.7 MB view hashes)

Uploaded cp37

dbr-9.0-cp37-cp37m-macosx_10_13_x86_64.whl (5.5 MB view hashes)

Uploaded cp37

dbr-9.0-cp37-cp37m-linux_armv7l.whl (10.2 MB view hashes)

Uploaded cp37

dbr-9.0-cp36-cp36m-win_amd64.whl (9.6 MB view hashes)

Uploaded cp36

dbr-9.0-cp36-cp36m-manylinux2014_aarch64.whl (11.0 MB view hashes)

Uploaded cp36

dbr-9.0-cp36-cp36m-manylinux1_x86_64.whl (11.7 MB view hashes)

Uploaded cp36

dbr-9.0-cp36-cp36m-macosx_10_13_x86_64.whl (5.5 MB view hashes)

Uploaded cp36

dbr-9.0-cp36-cp36m-linux_armv7l.whl (10.2 MB view hashes)

Uploaded cp36

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page