Aspose.BarCode  for Python via .NET

Python Barcode library

Recognize or Generate 1D, 2D and Postal barcodes in any Python application.

  Download Free Trial
  
 

Aspose.BarCode for Python via NET is a set of barcode generation and reading APIs to be integrated in Python applications. Developers can easily add barcode generation and recognition functionality. Python barcode API creates barcode images within various formats such as PNG, JPG, GIF, BMP. Moreover, It supports multiple imaging features like manipulating borders, color, rotating images, customizing resolution, and a lot more.

Advanced Python via .NET Barcode API Features

Customize Barcode Parameters

Aspose.BarCode for Python via .NET provides rich functionality to create customized barcode images. It enables generating barcodes of any color or size depending on business needs. It is possible to customize the appearance of all barcode elements, including colors of bars, background, borders, and text captions, as well as their positioning. Barcode can be generated with or without displaying input text, upper and/or lower caption, paddings, and borders. Barcode size can be set automatically depeding on the X-dimension or manually. It can be defined in various units, such as millimeters, inches, points, or pixels. If required, image proportions and resolution can be adjusted. Text font can be customized as well.

QR Code Generation

API has the capability to generate 2D barcodes of the most popular types, such as Data Matrix, Aztec Code, PDF417, etc. These types allow encoding large or non-standard input values. Here is the code for QR code generation.

Code to be executed - Python


from aspose.barcode import generation

generator = generation.BarcodeGenerator(generation.EncodeTypes.QR, "")
generator.parameters.barcode.code_text_parameters.location = generation.CodeLocation.Below
generator.parameters.barcode.x_dimension.millimeters = 2
generator.save("example.png", generation.BarCodeImageFormat.PNG)

Generation result

Optimize Barcode Reading Speed or Quality

The barcode library provides a range of powerful features for optimizing barcode reading to meet the specific needs of your business. Developers can adjust the parameters of the recognition engine to enable fast barcode scanning or improve reading precision. Depending on the quality and parameters of the source barcode images, the library allows customizing the recognition process. It includes several preset configurations of such parameters, which can be used to quickly scan high-quality barcode images or facilitate decoding damaged or degraded barcodes. Additionally, there are special settings that can improve barcode reading for different types of distortions, such as Gaussian noise, white spots, and inverted colors. With the ability to fine-tune the recognition process, the API can be tailored to provide the most efficient barcode reading for a wide range of applications and scenarios.

Barcode Recognition Live Example

The barcode reader API provides a set of features for scanning, detecting, and reading 1D, 2D, and postal barcodes. With just a few lines of code, developers can easily integrate this functionality into their applications and use it to detect and decode a wide range of commonly used barcodes. The API is designed to be user-friendly and intuitive, making it easy for developers to quickly and easily add barcode scanning capabilities to their PHP applications.

Ready to recognize Recognizing Drop a file here or click to browse *

* By uploading your files or using the service you agree with our Terms of use and Privacy Policy.

Code to be executed - Python

    
from aspose.barcode import barcoderecognition

reader = barcoderecognition.BarCodeReader(<file name>, barcoderecognition.DecodeType.AllSupportedTypes)
recognized_results = reader.read_bar_codes()
for barcode in recognized_results:
    print(barcode.code_text)


Recognition result

Supported Symbologies

Aspose.BarCode for Python via NET supports a large number of linear, 2D and postal bar code symbologies for both encoding and decoding.

Supported linear types:

  • EAN-13
  • EAN-8
  • UPC-A
  • UPC-E
  • Interleaved 2-of-5
  • Standard 2-of-5
  • MSI
  • Code 11
  • Codabar
  • EAN-14
  • SSCC-18
  • ITF-14
  • Matrix 2-of-5
  • PZN
  • Code 128
  • Code 39 Extended
  • Code 93 Extended
  • Code 93 Standard
  • IATA 2-of-5
  • OPC
  • GS1 Code 128
  • ISBN
  • ISMN
  • ISSN
  • ITF-6
  • VIN
  • Pharmacode
  • GS1 Databar Family: Databar Omnidirectional, Databar Truncated, Databar Limited, Databar Expanded, Databar Stacked, Databar Expanded Stacked, Databar Stacked Omnidirectional
  • PatchCode
  • Supplement

2D types:

  • PDF417
  • Macro PDF417
  • Micro PDF417
  • Aztec Code
  • Data Matrix
  • Compact PDF417
  • QR Code
  • Micro QR Code
  • DotCode
  • MaxiCode
  • GS1 Data Matrix
  • Italian Post 25
  • Code16K

Postal types:

  • Postnet
  • Planet
  • Australia Post
  • USPS OneCode
  • Deutsche Post Identcode
  • Royal Mailmark
  • RM4SCC
  • Deutsche Post Leticode
  • SingaporePost
  • AustralianPost eParcel
  • SwissPost Parcel

What People Are Saying

Don't just take our word for it. See what users have to say about APIs.

 
 
View Case Studies
  

Support and Learning Resources