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

Represents a Code. More...

Public Member Functions

None __init__ (self)
 Creates an eVision.ECode object.
None __init__ (self, eVision.ECode other)
 Creates an eVision.ECode object.
eVision.ERegion ToRegion (self)
 Creates an eVision.ERegion from the eVision.ECode.
eVision.EFrame ToFrame (self, bool useAngle, eVision.EFrameScaling frameScaling)
 Creates an eVision.EFrame from the eVision.ECode.
eVision.EFrame ToFrame (self, bool useAngle, eVision.EFrameScaling frameScaling, eVision.EFrame frame)
 Creates an eVision.EFrame from the eVision.ECode.
None DrawPosition (self, eVision.EDrawAdapter|None graphicsContext, float zoomX, float zoomY, float panX, float panY)
 Draws the Position of the Code.
None DrawPosition (self, eVision.EDrawAdapter|None graphicsContext, float zoomX, float zoomY, float panX)
 Draws the Position of the Code.
None DrawPosition (self, eVision.EDrawAdapter|None graphicsContext, float zoomX, float zoomY)
 Draws the Position of the Code.
None DrawPosition (self, eVision.EDrawAdapter|None graphicsContext, float zoomX)
 Draws the Position of the Code.
None DrawPosition (self, eVision.EDrawAdapter|None graphicsContext)
 Draws the Position of the Code.
None DrawPosition (self, eVision.EDrawAdapter|None graphicsContext, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY)
 Draws the Position of the Code.
None DrawPosition (self, eVision.EDrawAdapter|None graphicsContext, eVision.EFrame frame, float zoomX, float zoomY, float panX)
 Draws the Position of the Code.
None DrawPosition (self, eVision.EDrawAdapter|None graphicsContext, eVision.EFrame frame, float zoomX, float zoomY)
 Draws the Position of the Code.
None DrawPosition (self, eVision.EDrawAdapter|None graphicsContext, eVision.EFrame frame, float zoomX)
 Draws the Position of the Code.
None DrawPosition (self, eVision.EDrawAdapter|None graphicsContext, eVision.EFrame frame)
 Draws the Position of the Code.
str DecodedString (self)
 Decoded code string.
bool IsGS1 (self)
 Returns whether the decoded string uses the GS1 standard.
eVision.EQuadrangle Position (self)
 Code position.
eVision.EPoint Center (self)
 Returns the center of the eVision.ECode.
float SizeX (self)
 Returns the size of the eVision.ECode on its X axis.
float SizeY (self)
 Returns the size of the eVision.ECode on its Y axis.
float Angle (self)
 Returns the angle of the eVision.ECode as if it was an eVision.ERectangle.
eVision.ECodeType CodeType (self)
 Code type.
eVision.EasyMatrixCode2.EMatrixCode MatrixCode (self)
 Returns the eVision.EasyMatrixCode2.EMatrixCode contained in the eVision.ECode.
eVision.EasyBarCode2.EBarCode BarCode (self)
 Returns the eVision.EasyBarCode2.EBarCode contained in the eVision.ECode.
eVision.EQRCode QRCode (self)
 Returns the eVision.EQRCode contained in the eVision.ECode.

Detailed Description

Represents a Code.

Remarks:

License(s): EasyMatrixCode and EasyBarCode and EasyQRCode

Constructor & Destructor Documentation

◆ __init__() [1/2]

None eVision.ECode.__init__ ( self)

Creates an eVision.ECode object.

◆ __init__() [2/2]

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

Creates an eVision.ECode object.

Parameters
otherAnother eVision.ECode object to be copied in the new eVision.ECode object.

Member Function Documentation

◆ Angle()

float eVision.ECode.Angle ( self)

Returns the angle of the eVision.ECode as if it was an eVision.ERectangle.

◆ BarCode()

eVision.EasyBarCode2.EBarCode eVision.ECode.BarCode ( self)

Returns the eVision.EasyBarCode2.EBarCode contained in the eVision.ECode.

Throws an exception if there is none.

◆ Center()

eVision.EPoint eVision.ECode.Center ( self)

Returns the center of the eVision.ECode.

◆ CodeType()

eVision.ECodeType eVision.ECode.CodeType ( self)

Code type.

◆ DecodedString()

str eVision.ECode.DecodedString ( self)

Decoded code string.

◆ DrawPosition() [1/10]

None eVision.ECode.DrawPosition ( self,
eVision.EDrawAdapter | None graphicsContext )

Draws the Position of the Code.

Parameters
graphicsContextHandle of the graphics context on which to draw.

◆ DrawPosition() [2/10]

None eVision.ECode.DrawPosition ( self,
eVision.EDrawAdapter | None graphicsContext,
eVision.EFrame frame )

Draws the Position of the Code.

Parameters
graphicsContextHandle of the graphics context on which to draw.
frameFrame associated with the bar code.

◆ DrawPosition() [3/10]

None eVision.ECode.DrawPosition ( self,
eVision.EDrawAdapter | None graphicsContext,
eVision.EFrame frame,
float zoomX )

Draws the Position of the Code.

Parameters
graphicsContextHandle of the graphics context on which to draw.
frameFrame associated with the bar code.
zoomXHorizontal zooming factor. By default, true scale is used.

◆ DrawPosition() [4/10]

None eVision.ECode.DrawPosition ( self,
eVision.EDrawAdapter | None graphicsContext,
eVision.EFrame frame,
float zoomX,
float zoomY )

Draws the Position of the Code.

Parameters
graphicsContextHandle of the graphics context on which to draw.
frameFrame associated with the bar code.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.

◆ DrawPosition() [5/10]

None eVision.ECode.DrawPosition ( self,
eVision.EDrawAdapter | None graphicsContext,
eVision.EFrame frame,
float zoomX,
float zoomY,
float panX )

Draws the Position of the Code.

Parameters
graphicsContextHandle of the graphics context on which to draw.
frameFrame associated with the bar code.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.

◆ DrawPosition() [6/10]

None eVision.ECode.DrawPosition ( self,
eVision.EDrawAdapter | None graphicsContext,
eVision.EFrame frame,
float zoomX,
float zoomY,
float panX,
float panY )

Draws the Position of the Code.

Parameters
graphicsContextHandle of the graphics context on which to draw.
frameFrame associated with the bar code.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.

◆ DrawPosition() [7/10]

None eVision.ECode.DrawPosition ( self,
eVision.EDrawAdapter | None graphicsContext,
float zoomX )

Draws the Position of the Code.

Parameters
graphicsContextHandle of the graphics context on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.

◆ DrawPosition() [8/10]

None eVision.ECode.DrawPosition ( self,
eVision.EDrawAdapter | None graphicsContext,
float zoomX,
float zoomY )

Draws the Position of the Code.

Parameters
graphicsContextHandle of the graphics context on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.

◆ DrawPosition() [9/10]

None eVision.ECode.DrawPosition ( self,
eVision.EDrawAdapter | None graphicsContext,
float zoomX,
float zoomY,
float panX )

Draws the Position of the Code.

Parameters
graphicsContextHandle of the graphics context on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.

◆ DrawPosition() [10/10]

None eVision.ECode.DrawPosition ( self,
eVision.EDrawAdapter | None graphicsContext,
float zoomX,
float zoomY,
float panX,
float panY )

Draws the Position of the Code.

Parameters
graphicsContextHandle of the graphics context on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.

◆ IsGS1()

bool eVision.ECode.IsGS1 ( self)

Returns whether the decoded string uses the GS1 standard.

◆ MatrixCode()

eVision.EasyMatrixCode2.EMatrixCode eVision.ECode.MatrixCode ( self)

Returns the eVision.EasyMatrixCode2.EMatrixCode contained in the eVision.ECode.

Throws an exception if there is none.

◆ Position()

eVision.EQuadrangle eVision.ECode.Position ( self)

Code position.

If the eVision.ECode represents an eVision.EQRCode object, the eVision.EQuadrangle's corners are in the following order: top right, top left, bottom left, bottom right. If the eVision.ECode represents an eVision.EasyBarCode2.EBarCode or eVision.EasyMatrixCode2.EMatrixCode object, the eVision.EQuadrangle's corners are in the following order: top left, top right, bottom right, bottom left.

◆ QRCode()

eVision.EQRCode eVision.ECode.QRCode ( self)

Returns the eVision.EQRCode contained in the eVision.ECode.

Throws an exception if there is none.

◆ SizeX()

float eVision.ECode.SizeX ( self)

Returns the size of the eVision.ECode on its X axis.

This corresponds to the mean between the sizes of the top and bottom sides of the eVision.ECode.

◆ SizeY()

float eVision.ECode.SizeY ( self)

Returns the size of the eVision.ECode on its Y axis.

This corresponds to the mean between the sizes of the left and right sides of the eVision.ECode.

◆ ToFrame() [1/2]

eVision.EFrame eVision.ECode.ToFrame ( self,
bool useAngle,
eVision.EFrameScaling frameScaling )

Creates an eVision.EFrame from the eVision.ECode.

Parameters
useAngleWhether to use the angle of the eVision.ECode in the frame.
frameScalingHow to handle the scale of the frame. eVision.EFrameScaling.UseScaling is not supported.

◆ ToFrame() [2/2]

eVision.EFrame eVision.ECode.ToFrame ( self,
bool useAngle,
eVision.EFrameScaling frameScaling,
eVision.EFrame frame )

Creates an eVision.EFrame from the eVision.ECode.

Parameters
useAngleWhether to use the angle of the eVision.ECode in the frame.
frameScalingHow to handle the scale of the frame. eVision.EFrameScaling.UseScaling is not supported.
frameParent frame. Used when the eVision.ECode was read using a frame.

◆ ToRegion()

eVision.ERegion eVision.ECode.ToRegion ( self)

Creates an eVision.ERegion from the eVision.ECode.