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.

Microsoft Windows
Linux
macOS
Intellij Idea
PyCharm
VS Code
Docker
GitHub

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.


from aspose.barcode import generation from aspose.pydrawing import Color # Initialize BarcodeGenerator generator = generation.BarcodeGenerator(generation.EncodeTypes.QR, "1234567") # Set generation parameters generator.parameters.barcode.x_dimension.pixels = 7 generator.parameters.border.color = Color.from_argb(0xff000000) generator.parameters.border.width.pixels = 7 # Generate and save Barcode image generator.save("image.png", generation.BarCodeImageFormat.PNG)

from aspose.barcode import barcoderecognition as br # Initialize BarCodeReader reader = br.BarCodeReader("image.png", br.DecodeType.QR) # Set recognition quality reader.quality_settings = br.QualitySettings.high_performance # Recognize barcodes and output results results = reader.read_bar_codes() print(f"Recognized {len(results)} barcodes") for barcode in results: print(f"{barcode.code_type_name}: {barcode.code_text}")

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.

Feature icon

Python-first

Keep business logic in Python. The engine handles the heavy work and runs in headless servers, containers, and CI.

Feature icon

Presets

Use QualitySettings presets such as high_performance, normal_quality, and high_quality, or tune options manually.

Feature icon

Evaluation

Start in evaluation mode. Apply a temporary license for testing, or a paid license for production use.