Dynamsoft Barcode Reader Python project
Project description
Dynamsoft Barcode Reader
Dynamsoft Barcode Reader SDK enables you to efficiently embed barcode reading functionality in your web, desktop and mobile application using just a few lines of code. This can save you months of added development time and extra costs. With our SDK, you can create high-speed and reliable barcode scanner software to meet your business needs.
Environment
Python 2/3
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
-
2D Barcodes:
- QR Code (including Micro QR Code)
- Data Matrix
- PDF417 (including Micro PDF417)
- Aztec Code
- MaxiCode (mode 2-5)
-
Patch Code
-
GS1 DataBar (Omnidirectional, Truncated, Stacked, Stacked Omnidirectional, Limited, Expanded, Expanded Stacked)
-
GS1 Composite Code
How to Install and Use the SDK
Install Dynamsoft Barcode Reader:
pip install dbr
A simple Python barcode reader app:
from dbr import DynamsoftBarcodeReader
dbr = DynamsoftBarcodeReader()
dbr.initLicense('YOUR-LICENSE') # https://www.dynamsoft.com/CustomerPortal/Portal/Triallicense.aspx
results = dbr.decodeFile(fileName, dbr.BF_ONED | dbr.BF_PDF417 | dbr.BF_QR_CODE | dbr.BF_DATAMATRIX | dbr.BF_AZTEC)
for result in results:
print("barcode format: " + result[0])
print("barcode value: " + result[1])
Screenshot
Functions
-
initLicense(license-key)
-
decodeFile(filename, barcodeTypes)
barcodeTypes = dbr.BF_ONED | dbr.BF_PDF417 | dbr.BF_QR_CODE | dbr.BF_DATAMATRIX | dbr.BF_AZTEC
Barcode Format Values ALL dbr.BF_ALL 1D dbr.BF_ONED PDF417 dbr.BF_PDF417 QR Code dbr.BF_QR_CODE DataMatrix dbr.BF_DATAMATRIX Aztec Code dbr.BF_AZTEC -
decodeBuffer(frame-by-opencv-capture, barcodeTypes)
-
decodeFileStream(fileStream, fileSzie, barcodeTypes)
-
startVideoMode(max_buffer, max_results, video_width, video_height, image_format, barcodeTypes, callback)
-
stopVideoMode()
-
appendVideoFrame(frame-by-opencv-capture)
-
initLicenseFromLicenseContent(license-key, license-content)
-
outputLicenseToString()
-
initLicenseFromServer(license-key, license-server)
-
setFurtherModes(mode, [values])
-
setParameters(json-string)
Online Documentation
https://www.dynamsoft.com/Products/Barcode-Reader-Resources.aspx#documentation
Contact
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Hashes for dbr-7.2.1-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6d04e28ae05bd8f0d4f36314eb09e84cede353c435a8405661ede50c2781bc6 |
|
MD5 | a0828f907d3e8644c72b8a5c61e06556 |
|
BLAKE2b-256 | 48b941ec542bf71614455c530a08e6fe8c41279d3331b4a1df6fcb049bc54abf |
Hashes for dbr-7.2.1-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc4801412690332096e181c6d19a4f0d2539f83e5c799b2a8da2f0b4ec9c8952 |
|
MD5 | 0fcf441c8f45d497226341bc86a3e35c |
|
BLAKE2b-256 | 7296de6374ccb020d5d5baa5cb03a691a593d4ae311fb58a44d6d170a6b89e20 |
Hashes for dbr-7.2.1-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c86bfb3dff451cfe29a8339bff606a1d4fa65f3e5c50c6aa26a373e80d748964 |
|
MD5 | 3cfcbf863ff418e84afe84cbf64939f8 |
|
BLAKE2b-256 | 0df760102704fa1a14a98ca7bc3f53c2b071d94616ccb5e5d3b77768e9c213dd |
Hashes for dbr-7.2.1-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d0a20bd6f5625c50a81e30a45e922ede2aeb5ab8be3dea7dad4a22839558695 |
|
MD5 | a8cb75beba5a7632ab52407df963a215 |
|
BLAKE2b-256 | f8136ed7db489d73381d19bb727c98ffc20afcde54e8924f16dd77c0a51615a7 |
Hashes for dbr-7.2.1-cp27-cp27m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ffabab71fe3a6d42eb6b565e0ce963548756358468410440ee731605c3647ebb |
|
MD5 | 8410f95743c949dcef27ea5ee1d82d74 |
|
BLAKE2b-256 | aa7062504ec9bd7d50cd054ff6989ac0fc3e5673111a35374cfae70d19caf083 |