Skip to content

jane-dynamsoft/DBRBundle

Repository files navigation

Dynamsoft Barcode Reader SDK for Python

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.

Notice: Package Renamed and Updated

dynamsoft-barcode-reader-bundle is the successor to the dbr package, starting from version 10. This new version introduces significant architectural improvements and a redesigned API to integrate with DynamsoftCaptureVision (DCV) architecture, which is newly established to aggregate the features of functional products powered by Dynamsoft.

Version

  • 11.4.1000

Supported Platforms

  • Windows x64
  • Linux(x64, ARM64)
  • macOS (12+)

Supported Python Versions

  • Python3.14
  • Python3.13
  • Python3.12
  • Python3.11
  • Python3.10

Installation

pip install dynamsoft-barcode-reader-bundle

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
    • Code32
    • Matrix 2 of 5
  • 2D Barcodes :
    • QR Code (including Micro QR Code)
    • Data Matrix
    • PDF417 (including Micro PDF417)
    • Aztec Code
    • MaxiCode (mode 2-5)
    • DotCode
  • Patch Code
  • Pharmacode
  • Telepen
  • 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
    • KIX

Quick Start

from dynamsoft_barcode_reader_bundle import *

# Apply for a trial license: https://www.dynamsoft.com/customer/license/trialLicense/?product=dbr&package=python&utm_source=pypi
license_key = "Input your own license"
image = r"Please input your own image path"
LicenseManager.init_license(license_key)
cvr = CaptureVisionRouter()

try:

  capturedResult = cvr.capture(image,EnumPresetTemplate.PT_READ_BARCODES.value)

  items = capturedResult.get_items()

  for i in range(len(items)):
     barcode = items[i]
     print("Barcode Format : ")
     print(barcode.get_format_string())
     print("Barcode Text : ")
     print(barcode.get_text())
     print("-------------")
except Exception as e:
  print(e)

Sample Code

https://github.com/Dynamsoft/barcode-reader-python-samples

Documentation

Contact Us

[email protected]

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published