Barcode Generation and Recognition for Python via .NET
- Generate and read 1D, 2D, and postal barcodes, including QR Code, Data Matrix, PDF417, and Code 128
- Python 3.6+. Runs on Windows, Linux, and macOS
- Export raster (PNG, JPEG, TIFF, BMP, GIF) and vector (SVG, EMF) barcodes
Create and scan QR code in seconds
More showcases ># Minimal generation — save a QR code as PNG
from aspose.barcode import generation
gen = generation.BarcodeGenerator(generation.EncodeTypes.QR, "Hello Python")
gen.parameters.barcode.x_dimension.millimeters = 2
gen.save("qr.png", generation.BarCodeImageFormat.PNG)
> pip install aspose-barcode-for-python-via-net
Reliable decoding on real-world images
Production inputs are rarely perfect. Use QualitySettings presets to trade speed for tolerance when barcodes are blurred, noisy, low-contrast, skewed, or partially damaged. The API supports 80+ barcode symbologies and works well for batch and service workflows.
Standards? Covered.
Aspose.BarCode for Python via .NET supports all major image formats, including vector formats like SVG and EMF, as well as PDF. Use our API to recognize files from scanners or cameras with ease. Here are all supported barcode symbologies, including 1D, 2D, postal, and composite types. Each one can be generated and recognized across all supported platforms.
Matrix / 2D Codes
- QR Code, MicroQR, rMQR
- Data Matrix, Industrial Data Matrix (DPM)
- Aztec
- Han Xin
- MaxiCode
- DotCode
Linear / 1D Codes
- UPCA, UPCE
- EAN13, EAN14, EAN8
- Code 128
- DataBar
- ITF
- Postal
Industry & Composite Codes
- GS1
- ECI
- Composite barcodes
- HIBC
- SwissQR
- Royal Mailmark
Platforms and setup
Install from PyPI with pip install aspose-barcode-for-python-via-net. Supports Python 3.6+ on Windows, Linux, and macOS. Read from files, streams, or bitmap objects, then save barcodes to common raster formats or SVG/EMF for print workflows.
Live Code Demo
Paste text → get a barcode. Drop a file → get decoded data. Both examples come with auto-generated sample code so you can copy straight into your project.
Documents, labels, and batch jobs
Typical use cases: add barcodes to images and PDFs, generate shipping and inventory labels, validate codes in scanned documents, and process folders in background workers.
Generation
- Control X-dimension, size, margins, rotation, captions, and fonts
- Export PNG, JPEG, TIFF, BMP, or GIF. Use SVG or EMF for print.
- Units: millimeters, inches, points, pixels
Recognition
- Read from file or stream; return type, text, region, and orientation
- Presets for speed versus quality. Options for noisy or low-contrast images
- Target specific symbologies to cut scan time
Supported families
- 2D: QR/Micro QR, Data Matrix, PDF417, Swiss QR
- Linear: EAN/UPC, Code 128 (GS1), ITF, Code 39/93
- Postal: RM4SCC, Postnet, Planet, Australia Post
Developer experience and licensing
Aspose.BarCode for Python via .NET Keep business logic in Python while the engine handles barcode work in headless services, background jobs, and CI. Use presets to tune speed versus accuracy, and apply a license for production.
Python-first
Keep business logic in Python. The engine handles the heavy work and runs in headless servers, containers, and CI.
Presets
Use QualitySettings presets such as high_performance, normal_quality, and high_quality, or tune options manually.
Evaluation
Start in evaluation mode. Apply a temporary license for testing, or a paid license for production use.