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

Represents the recognized barcode's region and barcode angle This sample shows how to get barcode Angle and bounding quadrangle values. More...

Inherits asposebarcode.Assist.BaseJavaClass.

Public Member Functions

def __init__ (self, javaClass)
 
def init (self)
 
def convertJavaPoints (javaPoints)
 
def getQuadrangle (self)
 Gets Quadrangle bounding barcode region Value: Returns Quadrangle bounding barcode region. More...
 
def getAngle (self)
 Gets the angle of the barcode (0-360). More...
 
def getPoints (self)
 Gets Points array bounding barcode region Value: Returns Points array bounding barcode region. More...
 
def getRectangle (self)
 Gets Rectangle bounding barcode region Value: Returns Rectangle bounding barcode region. More...
 
def equals (self, obj)
 Returns a value indicating whether this instance is equal to a specified BarCodeRegionParameters value. More...
 
def hashCode (self)
 Returns the hash code for this instance. More...
 
def toString (self)
 Returns a human-readable string representation of this BarCodeRegionParameters. More...
 
- Public Member Functions inherited from asposebarcode.Assist.BaseJavaClass
def getJavaClass (self)
 
def setJavaClass (self, javaClass)
 
def getJavaClassName (self)
 
def isNull (self)
 
def printJavaClassName (self)
 

Public Attributes

 quad
 
 rect
 
 points
 
- Public Attributes inherited from asposebarcode.Assist.BaseJavaClass
 javaClass
 
 javaClassName
 

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.Code128, "12345")
generator.save("test.png")
reader = BarCodeReader("test.png", None, [ DecodeType.CODE_39_STANDARD, DecodeType.CODE_128 ])
for result in reader.readBarCodes():
print("BarCode CodeText: " + result.getCodeText())
print("BarCode Angle: " + result.getRegion().getAngle())
print("BarCode Quadrangle: " + result.getRegion().getQuadrangle())

Constructor & Destructor Documentation

◆ __init__()

def asposebarcode.Recognition.BarCodeRegionParameters.__init__ (   self,
  javaClass 
)

Member Function Documentation

◆ convertJavaPoints()

def asposebarcode.Recognition.BarCodeRegionParameters.convertJavaPoints (   javaPoints)

◆ equals()

def asposebarcode.Recognition.BarCodeRegionParameters.equals (   self,
  obj 
)

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

:param: obj An System.Object value to compare to this instance. :return: true if obj has the same value as this instance otherwise, false.

◆ getAngle()

def asposebarcode.Recognition.BarCodeRegionParameters.getAngle (   self)

Gets the angle of the barcode (0-360).

Value: The angle for barcode (0-360).

◆ getPoints()

def asposebarcode.Recognition.BarCodeRegionParameters.getPoints (   self)

Gets Points array bounding barcode region Value: Returns Points array bounding barcode region.

◆ getQuadrangle()

def asposebarcode.Recognition.BarCodeRegionParameters.getQuadrangle (   self)

Gets Quadrangle bounding barcode region Value: Returns Quadrangle bounding barcode region.

◆ getRectangle()

def asposebarcode.Recognition.BarCodeRegionParameters.getRectangle (   self)

Gets Rectangle bounding barcode region Value: Returns Rectangle bounding barcode region.

◆ hashCode()

def asposebarcode.Recognition.BarCodeRegionParameters.hashCode (   self)

Returns the hash code for this instance.

:return: A 32-bit signed integer hash code.

◆ init()

def asposebarcode.Recognition.BarCodeRegionParameters.init (   self)

◆ toString()

def asposebarcode.Recognition.BarCodeRegionParameters.toString (   self)

Returns a human-readable string representation of this BarCodeRegionParameters.

:return: A string that represents this BarCodeRegionParameters.

Member Data Documentation

◆ points

asposebarcode.Recognition.BarCodeRegionParameters.points

◆ quad

asposebarcode.Recognition.BarCodeRegionParameters.quad

◆ rect

asposebarcode.Recognition.BarCodeRegionParameters.rect