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.
At a Glance
An overview of the barcode recognition & generation capabilities of API.
- Linear, 2D & Postal
- Detect from Stream or Image
- Get Orientation of Barcode
- Decode Non-English Characters
- Directly Print Barcode
- Linear, 2D & Postal
- Save to Stream or Image
- Customize Appearance: Size, Color, Angle
- Encode Non-English Characters
Aspose.Barcode for Python via NET is available for Python 3.6 and higher.
Supported File Formats
Aspose.BarCode for Python via .NET works with most commonly used image file formats.
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)
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 *
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)
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:
- Interleaved 2-of-5
- Standard 2-of-5
- Code 11
- Matrix 2-of-5
- Code 128
- Code 39 Extended
- Code 93 Extended
- Code 93 Standard
- IATA 2-of-5
- GS1 Code 128
- GS1 Databar Family: Databar Omnidirectional, Databar Truncated, Databar Limited, Databar Expanded, Databar Stacked, Databar Expanded Stacked, Databar Stacked Omnidirectional
- Macro PDF417
- Micro PDF417
- Aztec Code
- Data Matrix
- Compact PDF417
- QR Code
- Micro QR Code
- GS1 Data Matrix
- Italian Post 25
- Australia Post
- USPS OneCode
- Deutsche Post Identcode
- Royal Mailmark
- Deutsche Post Leticode
- AustralianPost eParcel
- SwissPost Parcel
What People Are Saying
Don't just take our word for it. See what users have to say about APIs.
I have spent many years developing and enhancing my product and Aspose has allowed me to make my product much more friendly and useful, and therefore more marketable. Kiel Diller | KD Solutions, Poland
Aspose.BarCode is truly written in managed code and gives us a variety of barcode types to handle all kinds of document recognition and further processing. Dennis Alexander Petrasc | Keil IT, Germany
Aspose.BarCode offers individual Barcode generation and recognition APIs for other popular development environments as listed below: