Java-grade barcode accuracy with a Python-friendly workflow

Get the full capability of the Aspose.BarCode for Java engine from Python. The Python-Java bridge keeps behavior consistent across platforms, so your decoding and rendering results stay predictable as you move from dev to production.

  • Install with pip, no native builds

    Get started with a single pip install. There are no platform-specific native extensions to compile, which keeps setup simple in CI and containers.

  • Runs anywhere you have Python and a JDK

    Use the same code on Windows, Linux, and macOS. The only requirements are Python 3.7+ and a JDK 8+ runtime.

  • Offline processing in your environment

    Generate and recognize barcodes locally. No external services, no data transfer, and no network dependency for day-to-day operation.

  • Predictable results from the Java engine

    You get the maturity and stability of the Java backend with a Pythonic API. This helps keep results consistent across teams, machines, and deployments.

Standards? Covered.

Aspose.BarCode for Python via Java 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

Cross-platform setup for Python

Run on Windows, Linux, or macOS with Python 3.7+ and a Java JDK 8+ (OpenJDK, Amazon Corretto, BellSoft Liberica, Oracle JDK). Install from PyPI with pip, keep processing fully offline, and reuse the same code in local development, CI, containers, and production.

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.


# Initialize BarcodeGenerator gen = BarcodeGenerator(EncodeTypes.QR, "1234567") # Set generation parameters gen.parameters.barcode.x_dimension.pixels = 7 color = ImageColor.getrgb("#000000") gen.parameters.border.color = color gen.parameters.border.width.Pixels = 7; # Generate and save Barcode image gen.save("image.png", BarCodeImageFormat.PNG)

# Initialize BarCodeReader reader = BarCodeReader("image.png", DecodeType.QR) # Set recognition quality reader.qualitySettings = QualitySettings.high_performance # Recognize barcodes and output results res = reader.read_barCodes() System.out.printf("Recognized %d barcode(s)%n", len(res)); for result in res: print("%s: %s" % (result.code_type_name, result.code_text))

Print-ready barcodes for labels, reports, and documents

Generate clean, scan-friendly barcodes with precise sizing for print and screen. Use raster output for web and PDFs, or vector formats when you need crisp results at any resolution.

  • Control X dimension, bar height, quiet zones, borders, fonts, and alignment
  • Use codetext helpers for GS1 and complex barcodes, including Swiss QR and HIBC payloads
  • ECI and Unicode-friendly encoding for international text
  • Export to PNG, JPEG, GIF, BMP, TIFF, SVG, EMF, PDF, or PIL.Image
  • Build batch label jobs and integrate barcode images into reports and templates

Built for services, pipelines, and batch processing

Scale from single requests to high-volume jobs. Read multiple barcodes per image, narrow decoding scope when you need speed, and tune recognition behavior with presets.

Feature icon

Generate 1D and 2D barcodes with fine-grained styling controls

Feature icon

Region-of-interest decoding to speed up large frames

Feature icon

Checksum and validation options to reduce false positives

Feature icon

Auto-rotation, skew handling, and multi-barcode detection

Feature icon

Complex payloads: GS1, HIBC, Swiss QR, and more

Feature icon

QualitySettings presets to balance speed and tolerance