Add barcode generation and recognition to Python applications using a Python-friendly API backed by the proven Aspose.BarCode for Java engine. Get consistent results across environments and deploy without native builds.
Vendor
Aspose
Company Website
Aspose.BarCode for Python via Java enables barcode generation and recognition in Python applications using a Python‑friendly API backed by the proven Aspose.BarCode for Java engine. Developers gain access to a mature, stable, and cross‑platform barcode engine without compiling native extensions. The library works offline, delivers consistent results across operating systems, and supports all major 1D, 2D, postal, and composite barcode symbologies. Installation is simple via pip, with requirements limited to Python 3.7+ and JDK 8+. Designed for print‑ready rendering, document workflows, batch processing, and backend services, it provides predictable decoding and robust performance under real‑world imaging conditions.
Features
Barcode Generation
- Create 1D, 2D, and postal barcodes including QR Code, MicroQR, rMQR, Data Matrix, Industrial DPM, Aztec, MaxiCode, Han Xin, DotCode, Code 128, EAN/UPC, ITF, DataBar, and more.
- Output formats: PNG, JPEG, GIF, BMP, TIFF, SVG, EMF, PDF, PIL.Image.
- Configure X‑dimension, bar height, quiet zones, borders, fonts, alignment, and rotation.
- Use codetext helpers for GS1 and complex barcodes (Swiss QR, HIBC payloads).
- Export crisp vector images for print workflows and scalable rendering.
- Generate barcodes in 1–2 lines of Python thanks to the Python‑friendly API. Barcode Recognition
- Read barcodes from files, streams, PDFs, and bitmap objects.
- Detect small, rotated, skewed, or low‑contrast barcodes from mobile photos or scanner images.
- Decode multiple barcodes per image and across multi-page documents.
- Control recognition using QualitySettings presets: high_performance, normal_quality, high_quality.
- Use region‑of‑interest decoding to speed up recognition in large images.
- Return barcode text, symbology, orientation, and detection region. Supported Symbologies Matrix / 2D: QR, MicroQR, rMQR, Data Matrix, Industrial DPM, Aztec, Han Xin, MaxiCode, DotCode Linear / 1D: UPCA, UPCE, EAN13, EAN14, EAN8, Code 128, DataBar, ITF Postal & Composite: GS1, ECI, composite barcodes, HIBC, SwissQR, Royal Mailmark Platform & Setup
- Python 3.7+
- JDK 8+ (OpenJDK, Amazon Corretto, BellSoft Liberica, Oracle JDK)
- Works on Windows, Linux, macOS
- Install via PyPI: pip install aspose-barcode-for-python-via-java
- Offline processing—no network or external services required.
Benefits
- Predictable and consistent results: The mature Java backend ensures stable behavior across machines and environments.
- No native builds: Simple installation on CI, containers, and deployment servers without platform‑specific compilation.
- Robust decoding for real images: Handles blur, skew, noise, glare, compression artifacts, and low-contrast scans.
- Print-ready output: Vector formats ensure high fidelity for labels, packaging, and documents.
- Batch‑processing ready: Multi-barcode detection, region targeting, and adjustable quality presets optimize performance under load.
- Python-first workflow: Keep business logic in Python while leveraging industrial‑grade Java capabilities.