Aspose.Barcode for Python via Java Generation and Recognition API docs
BarCodeRegionParameters Class Reference

Represents the recognized barcode's region and barcode angle. More...

Inherits _MwWrapper.

Public Member Functions

def __init__ (self, _java_class)
 
bool __eq__ (self, BarCodeRegionParameters other)
 Returns a value indicating whether this instance is equal to a specified BarCodeRegionParameters value. More...
 
int __hash__ (self)
 Returns the hash code for the current instance. More...
 
str __str__ (self)
 Returns a human-readable string representation of this BarCodeRegionParameters. More...
 
float angle (self)
 
Optional[List[PointLike]] points (self)
 
Optional[Quadranglequadrangle (self)
 
Optional[RectLike] rectangle (self)
 

Detailed Description

Represents the recognized barcode's region and barcode angle.

This sample shows how to get barcode Angle and bounding quadrangle values.

generator = BarcodeGenerator(EncodeTypes.CODE_128, "12345")
generator.save(image_path_to_save, BarCodeImageFormat.PNG)
reader = BarCodeReader(image_path_to_save, [DecodeType.CODE_39, DecodeType.CODE_128])
for result in reader.read_barcodes():
print("\nBarCode CodeText:", result.code_text)
print("BarCode Angle:", result.region.angle)
print("BarCode Quadrangle:", result.region.quadrangle)

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  _java_class 
)

Member Function Documentation

◆ __eq__()

bool __eq__ (   self,
BarCodeRegionParameters  other 
)

Returns a value indicating whether this instance is equal to a specified BarCodeRegionParameters value.

Parameters
obj An object value to compare to this instance.
Returns
: True if obj has the same value as this instance, otherwise False.

◆ __hash__()

int __hash__ (   self)

Returns the hash code for the current instance.

Returns
A hash code for the current object.

◆ __str__()

str __str__ (   self)

Returns a human-readable string representation of this BarCodeRegionParameters.

Returns
: A string that represents this BarCodeRegionParameters.

◆ angle()

float angle (   self)

◆ points()

Optional[List[PointLike]] points (   self)

◆ quadrangle()

Optional[Quadrangle] quadrangle (   self)

◆ rectangle()

Optional[RectLike] rectangle (   self)