eVision Python API
Loading...
Searching...
No Matches
eVision.EQRCodeGeometry Class Reference

Represents the geometry of a QR code. More...

Public Member Functions

None __init__ (self)
 Constructs an eVision.EQRCodeGeometry.__init__ object.
None __init__ (self, eVision.EQRCodeGeometry other)
 Constructs an eVision.EQRCodeGeometry.__init__ object.
None __init__ (self, eVision.EQuadrangle position, list[eVision._eVision.EPoint] finderPatternCenters)
 Constructs an eVision.EQRCodeGeometry.__init__ object.
eVision.ERegion ToRegion (self)
 Creates an eVision.ERegion from the eVision.EQRCodeGeometry.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, float zoomX, float zoomY, float panX, float panY)
 Draws the QR code geometry.
eVision.EQuadrangle Position (self)
 Position of the QR code returned as an eVision.EQuadrangle object.
list[eVision._eVision.EPoint] FinderPatternCenters (self)
 Finder patterns centers.

Detailed Description

Represents the geometry of a QR code.

This geometry is composed of the position of the QR code and the finder pattern centers.

Remarks:

License(s): EasyQRCode

Constructor & Destructor Documentation

◆ __init__() [1/3]

None eVision.EQRCodeGeometry.__init__ ( self)

Constructs an eVision.EQRCodeGeometry.__init__ object.

Remarks:

In case of a Micro QR code (not yet supported), there must be only one finder pattern center. In case of another QR code, there must be three finder pattern centers, entered in the following order: top right, top left, bottom left.

The corners of the eVision.EQuadrangle must be entered in the following order : top right, top left, bottom left, bottom right.

◆ __init__() [2/3]

None eVision.EQRCodeGeometry.__init__ ( self,
eVision.EQRCodeGeometry other )

Constructs an eVision.EQRCodeGeometry.__init__ object.

Remarks:

In case of a Micro QR code (not yet supported), there must be only one finder pattern center. In case of another QR code, there must be three finder pattern centers, entered in the following order: top right, top left, bottom left.

The corners of the eVision.EQuadrangle must be entered in the following order : top right, top left, bottom left, bottom right.

Parameters
otherAnother eVision.EQRCodeGeometry.__init__.

◆ __init__() [3/3]

None eVision.EQRCodeGeometry.__init__ ( self,
eVision.EQuadrangle position,
list[eVision._eVision.EPoint] finderPatternCenters )

Constructs an eVision.EQRCodeGeometry.__init__ object.

Remarks:

In case of a Micro QR code (not yet supported), there must be only one finder pattern center. In case of another QR code, there must be three finder pattern centers, entered in the following order: top right, top left, bottom left.

The corners of the eVision.EQuadrangle must be entered in the following order : top right, top left, bottom left, bottom right.

Parameters
positionThe position of the QR code represented as an eVision.EQuadrangle object.
finderPatternCentersThe vector of Finder Pattern centers.

Member Function Documentation

◆ Draw()

None eVision.EQRCodeGeometry.Draw ( self,
eVision.EDrawAdapter | None drawAdapter,
float zoomX,
float zoomY,
float panX,
float panY )

Draws the QR code geometry.

Remarks:

The zoomX, zoomY, panX and panY parameters can be used to scale and/or translate the drawing operations.

Parameters
drawAdapterDraw adapter.
zoomXHorizontal zooming factor.
zoomYVertical zooming factor.
panXHorizontal panning value expressed in pixels.
panYVertical panning value expressed in pixels.

◆ FinderPatternCenters()

list[eVision._eVision.EPoint] eVision.EQRCodeGeometry.FinderPatternCenters ( self)

Finder patterns centers.

Remarks:

In case of a Micro QR code, there is only one finder pattern center. In case of another QR code, there are three finder pattern centers, returned in the following order: top right, top left, bottom left.

◆ Position()

eVision.EQuadrangle eVision.EQRCodeGeometry.Position ( self)

Position of the QR code returned as an eVision.EQuadrangle object.

The eVision.EQuadrangle's corners are in the following order: top right, top left, bottom left, bottom right.

◆ ToRegion()

eVision.ERegion eVision.EQRCodeGeometry.ToRegion ( self)