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

Holds a vector of eVision.EOCR2Line objects representing a text. More...

Public Member Functions

None __init__ (self)
 Constructs an eVision.EOCR2Text context.
None __init__ (self, eVision.EOCR2Text other)
 Constructs an eVision.EOCR2Text context.
None DrawSegmentation (self, eVision.EDrawAdapter|None drawAdapter, eVision.EasyOCR2DrawSegmentationStyle style, float zoomX, float zoomY, float panX, float panY, eVision.EFrame frame)
 Draws the blobs found by the segmentation algorithm.
None DrawSegmentation (self, eVision.EDrawAdapter|None drawAdapter, eVision.EasyOCR2DrawSegmentationStyle style, float zoomX, float zoomY, float panX, float panY)
 Draws the blobs found by the segmentation algorithm.
None DrawSegmentation (self, eVision.EDrawAdapter|None drawAdapter, eVision.EasyOCR2DrawSegmentationStyle style, float zoomX, float zoomY, float panX)
 Draws the blobs found by the segmentation algorithm.
None DrawSegmentation (self, eVision.EDrawAdapter|None drawAdapter, eVision.EasyOCR2DrawSegmentationStyle style, float zoomX, float zoomY)
 Draws the blobs found by the segmentation algorithm.
None DrawSegmentation (self, eVision.EDrawAdapter|None drawAdapter, eVision.EasyOCR2DrawSegmentationStyle style, float zoomX)
 Draws the blobs found by the segmentation algorithm.
None DrawSegmentation (self, eVision.EDrawAdapter|None drawAdapter, eVision.EasyOCR2DrawSegmentationStyle style)
 Draws the blobs found by the segmentation algorithm.
None DrawDetection (self, eVision.EDrawAdapter|None drawAdapter, eVision.EasyOCR2DrawDetectionStyle style, float zoomX, float zoomY, float panX, float panY, eVision.EFrame frame)
 Draws the bounding boxes found by the topology detection algorithm.
None DrawDetection (self, eVision.EDrawAdapter|None drawAdapter, eVision.EasyOCR2DrawDetectionStyle style, float zoomX, float zoomY, float panX, float panY)
 Draws the bounding boxes found by the topology detection algorithm.
None DrawDetection (self, eVision.EDrawAdapter|None drawAdapter, eVision.EasyOCR2DrawDetectionStyle style, float zoomX, float zoomY, float panX)
 Draws the bounding boxes found by the topology detection algorithm.
None DrawDetection (self, eVision.EDrawAdapter|None drawAdapter, eVision.EasyOCR2DrawDetectionStyle style, float zoomX, float zoomY)
 Draws the bounding boxes found by the topology detection algorithm.
None DrawDetection (self, eVision.EDrawAdapter|None drawAdapter, eVision.EasyOCR2DrawDetectionStyle style, float zoomX)
 Draws the bounding boxes found by the topology detection algorithm.
None DrawDetection (self, eVision.EDrawAdapter|None drawAdapter, eVision.EasyOCR2DrawDetectionStyle style)
 Draws the bounding boxes found by the topology detection algorithm.
None DrawRecognition (self, eVision.EDrawAdapter|None drawAdapter, eVision.EasyOCR2DrawRecognitionStyle style, int fontSize, float zoomX, float zoomY, float panX, float panY, eVision.EFrame frame)
 Draws the recognized text next to the character bounding box in the image.
None DrawRecognition (self, eVision.EDrawAdapter|None drawAdapter, eVision.EasyOCR2DrawRecognitionStyle style, int fontSize, float zoomX, float zoomY, float panX, float panY)
 Draws the recognized text next to the character bounding box in the image.
None DrawRecognition (self, eVision.EDrawAdapter|None drawAdapter, eVision.EasyOCR2DrawRecognitionStyle style, int fontSize, float zoomX, float zoomY, float panX)
 Draws the recognized text next to the character bounding box in the image.
None DrawRecognition (self, eVision.EDrawAdapter|None drawAdapter, eVision.EasyOCR2DrawRecognitionStyle style, int fontSize, float zoomX, float zoomY)
 Draws the recognized text next to the character bounding box in the image.
None DrawRecognition (self, eVision.EDrawAdapter|None drawAdapter, eVision.EasyOCR2DrawRecognitionStyle style, int fontSize, float zoomX)
 Draws the recognized text next to the character bounding box in the image.
None DrawRecognition (self, eVision.EDrawAdapter|None drawAdapter, eVision.EasyOCR2DrawRecognitionStyle style, int fontSize)
 Draws the recognized text next to the character bounding box in the image.
None DrawRecognition (self, eVision.EDrawAdapter|None drawAdapter, eVision.EasyOCR2DrawRecognitionStyle style)
 Draws the recognized text next to the character bounding box in the image.
bool HitTestChar (self, eVision.EOCR2Char character, int x, int y, float zoomX, float zoomY, float panX, float panY, eVision.EFrame frame)
 Tests the cursor position for the presence of a character.
bool HitTestChar (self, eVision.EOCR2Char character, int x, int y, float zoomX, float zoomY, float panX, float panY)
 Tests the cursor position for the presence of a character.
bool HitTestChar (self, eVision.EOCR2Char character, int x, int y, float zoomX, float zoomY, float panX)
 Tests the cursor position for the presence of a character.
bool HitTestChar (self, eVision.EOCR2Char character, int x, int y, float zoomX, float zoomY)
 Tests the cursor position for the presence of a character.
bool HitTestChar (self, eVision.EOCR2Char character, int x, int y, float zoomX)
 Tests the cursor position for the presence of a character.
bool HitTestChar (self, eVision.EOCR2Char character, int x, int y)
 Tests the cursor position for the presence of a character.
bool HitTestWord (self, eVision.EOCR2Word word, int x, int y, float zoomX, float zoomY, float panX, float panY, eVision.EFrame frame)
 Tests the cursor position for the presence of a word.
bool HitTestWord (self, eVision.EOCR2Word word, int x, int y, float zoomX, float zoomY, float panX, float panY)
 Tests the cursor position for the presence of a word.
bool HitTestWord (self, eVision.EOCR2Word word, int x, int y, float zoomX, float zoomY, float panX)
 Tests the cursor position for the presence of a word.
bool HitTestWord (self, eVision.EOCR2Word word, int x, int y, float zoomX, float zoomY)
 Tests the cursor position for the presence of a word.
bool HitTestWord (self, eVision.EOCR2Word word, int x, int y, float zoomX)
 Tests the cursor position for the presence of a word.
bool HitTestWord (self, eVision.EOCR2Word word, int x, int y)
 Tests the cursor position for the presence of a word.
bool HitTestLine (self, eVision.EOCR2Line line, int x, int y, float zoomX, float zoomY, float panX, float panY, eVision.EFrame frame)
 Tests the cursor position for the presence of a line.
bool HitTestLine (self, eVision.EOCR2Line line, int x, int y, float zoomX, float zoomY, float panX, float panY)
 Tests the cursor position for the presence of a line.
bool HitTestLine (self, eVision.EOCR2Line line, int x, int y, float zoomX, float zoomY, float panX)
 Tests the cursor position for the presence of a line.
bool HitTestLine (self, eVision.EOCR2Line line, int x, int y, float zoomX, float zoomY)
 Tests the cursor position for the presence of a line.
bool HitTestLine (self, eVision.EOCR2Line line, int x, int y, float zoomX)
 Tests the cursor position for the presence of a line.
bool HitTestLine (self, eVision.EOCR2Line line, int x, int y)
 Tests the cursor position for the presence of a line.
bool HitTestText (self, int x, int y, float zoomX, float zoomY, float panX, float panY, eVision.EFrame frame)
 Tests the cursor position for the presence of a text.
bool HitTestText (self, int x, int y, float zoomX, float zoomY, float panX, float panY)
 Tests the cursor position for the presence of a text.
bool HitTestText (self, int x, int y, float zoomX, float zoomY, float panX)
 Tests the cursor position for the presence of a text.
bool HitTestText (self, int x, int y, float zoomX, float zoomY)
 Tests the cursor position for the presence of a text.
bool HitTestText (self, int x, int y, float zoomX)
 Tests the cursor position for the presence of a text.
bool HitTestText (self, int x, int y)
 Tests the cursor position for the presence of a text.
eVision.EFrame ToFrame (self, bool useAngle, eVision.EFrameScaling frameScaling)
 Converts the shape to a frame.
eVision.EFrame ToFrame (self, bool useAngle, eVision.EFrameScaling frameScaling, eVision.EFrame frame)
 Converts the shape to a frame.
eVision.ERegion ToRegion (self)
 Creates an eVision.ERegion from the eVision.EOCR2Text.
str String (self)
 Gets the read string.
list[eVision._eVision.EOCR2Line] Lines (self)
 The vector of eVision.EOCR2Line objects representing the text.
 Lines (self, list[eVision._eVision.EOCR2Line] value)
 The vector of eVision.EOCR2Line objects representing the text.
int LineCount (self)
 Gets the number of lines.
eVision.ERectangle BoundingBox (self)
 The bounding box encapsulating all characters in the text.
str Text (self)
 The true value of all characters in the text.
 Text (self, str value)
 The true value of all characters in the text.

Detailed Description

Holds a vector of eVision.EOCR2Line objects representing a text.

Remarks:

License(s): None

Constructor & Destructor Documentation

◆ __init__() [1/2]

None eVision.EOCR2Text.__init__ ( self)

Constructs an eVision.EOCR2Text context.

Remarks:

Default and copy constructors.

◆ __init__() [2/2]

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

Constructs an eVision.EOCR2Text context.

Remarks:

Default and copy constructors.

Parameters
othereVision.EOCR2Text object to be copied.

Member Function Documentation

◆ BoundingBox()

eVision.ERectangle eVision.EOCR2Text.BoundingBox ( self)

The bounding box encapsulating all characters in the text.

◆ DrawDetection() [1/6]

None eVision.EOCR2Text.DrawDetection ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EasyOCR2DrawDetectionStyle style )

Draws the bounding boxes found by the topology detection algorithm.

Parameters
drawAdaptereVision.EDrawAdapter that will be used to draw.
styleThe style in which each detection box should be drawn.

◆ DrawDetection() [2/6]

None eVision.EOCR2Text.DrawDetection ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EasyOCR2DrawDetectionStyle style,
float zoomX )

Draws the bounding boxes found by the topology detection algorithm.

Parameters
drawAdaptereVision.EDrawAdapter that will be used to draw.
styleThe style in which each detection box should be drawn.
zoomXHorizontal zooming factor. By default, true scale is used.

◆ DrawDetection() [3/6]

None eVision.EOCR2Text.DrawDetection ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EasyOCR2DrawDetectionStyle style,
float zoomX,
float zoomY )

Draws the bounding boxes found by the topology detection algorithm.

Parameters
drawAdaptereVision.EDrawAdapter that will be used to draw.
styleThe style in which each detection box should be drawn.
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.

◆ DrawDetection() [4/6]

None eVision.EOCR2Text.DrawDetection ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EasyOCR2DrawDetectionStyle style,
float zoomX,
float zoomY,
float panX )

Draws the bounding boxes found by the topology detection algorithm.

Parameters
drawAdaptereVision.EDrawAdapter that will be used to draw.
styleThe style in which each detection box should be drawn.
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.

◆ DrawDetection() [5/6]

None eVision.EOCR2Text.DrawDetection ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EasyOCR2DrawDetectionStyle style,
float zoomX,
float zoomY,
float panX,
float panY )

Draws the bounding boxes found by the topology detection algorithm.

Parameters
drawAdaptereVision.EDrawAdapter that will be used to draw.
styleThe style in which each detection box should be drawn.
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.

◆ DrawDetection() [6/6]

None eVision.EOCR2Text.DrawDetection ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EasyOCR2DrawDetectionStyle style,
float zoomX,
float zoomY,
float panX,
float panY,
eVision.EFrame frame )

Draws the bounding boxes found by the topology detection algorithm.

Parameters
drawAdaptereVision.EDrawAdapter that will be used to draw.
styleThe style in which each detection box should be drawn.
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.
frameFrame used in the last read.

◆ DrawRecognition() [1/7]

None eVision.EOCR2Text.DrawRecognition ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EasyOCR2DrawRecognitionStyle style )

Draws the recognized text next to the character bounding box in the image.

Parameters
drawAdaptereVision.EDrawAdapter that will be used to draw.
styleThe style in which each recognition result should be drawn.

◆ DrawRecognition() [2/7]

None eVision.EOCR2Text.DrawRecognition ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EasyOCR2DrawRecognitionStyle style,
int fontSize )

Draws the recognized text next to the character bounding box in the image.

Parameters
drawAdaptereVision.EDrawAdapter that will be used to draw.
styleThe style in which each recognition result should be drawn.
fontSizeFont size used when drawing read strings. Default is 16.

◆ DrawRecognition() [3/7]

None eVision.EOCR2Text.DrawRecognition ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EasyOCR2DrawRecognitionStyle style,
int fontSize,
float zoomX )

Draws the recognized text next to the character bounding box in the image.

Parameters
drawAdaptereVision.EDrawAdapter that will be used to draw.
styleThe style in which each recognition result should be drawn.
fontSizeFont size used when drawing read strings. Default is 16.
zoomXHorizontal zooming factor. By default, true scale is used.

◆ DrawRecognition() [4/7]

None eVision.EOCR2Text.DrawRecognition ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EasyOCR2DrawRecognitionStyle style,
int fontSize,
float zoomX,
float zoomY )

Draws the recognized text next to the character bounding box in the image.

Parameters
drawAdaptereVision.EDrawAdapter that will be used to draw.
styleThe style in which each recognition result should be drawn.
fontSizeFont size used when drawing read strings. Default is 16.
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.

◆ DrawRecognition() [5/7]

None eVision.EOCR2Text.DrawRecognition ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EasyOCR2DrawRecognitionStyle style,
int fontSize,
float zoomX,
float zoomY,
float panX )

Draws the recognized text next to the character bounding box in the image.

Parameters
drawAdaptereVision.EDrawAdapter that will be used to draw.
styleThe style in which each recognition result should be drawn.
fontSizeFont size used when drawing read strings. Default is 16.
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.

◆ DrawRecognition() [6/7]

None eVision.EOCR2Text.DrawRecognition ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EasyOCR2DrawRecognitionStyle style,
int fontSize,
float zoomX,
float zoomY,
float panX,
float panY )

Draws the recognized text next to the character bounding box in the image.

Parameters
drawAdaptereVision.EDrawAdapter that will be used to draw.
styleThe style in which each recognition result should be drawn.
fontSizeFont size used when drawing read strings. Default is 16.
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.

◆ DrawRecognition() [7/7]

None eVision.EOCR2Text.DrawRecognition ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EasyOCR2DrawRecognitionStyle style,
int fontSize,
float zoomX,
float zoomY,
float panX,
float panY,
eVision.EFrame frame )

Draws the recognized text next to the character bounding box in the image.

Parameters
drawAdaptereVision.EDrawAdapter that will be used to draw.
styleThe style in which each recognition result should be drawn.
fontSizeFont size used when drawing read strings. Default is 16.
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.
frameFrame used in the last read.

◆ DrawSegmentation() [1/6]

None eVision.EOCR2Text.DrawSegmentation ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EasyOCR2DrawSegmentationStyle style )

Draws the blobs found by the segmentation algorithm.

Parameters
drawAdaptereVision.EDrawAdapter that will be used to draw.
styleThe style in which each blob should be drawn.

◆ DrawSegmentation() [2/6]

None eVision.EOCR2Text.DrawSegmentation ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EasyOCR2DrawSegmentationStyle style,
float zoomX )

Draws the blobs found by the segmentation algorithm.

Parameters
drawAdaptereVision.EDrawAdapter that will be used to draw.
styleThe style in which each blob should be drawn.
zoomXHorizontal zooming factor. By default, true scale is used.

◆ DrawSegmentation() [3/6]

None eVision.EOCR2Text.DrawSegmentation ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EasyOCR2DrawSegmentationStyle style,
float zoomX,
float zoomY )

Draws the blobs found by the segmentation algorithm.

Parameters
drawAdaptereVision.EDrawAdapter that will be used to draw.
styleThe style in which each blob should be drawn.
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.

◆ DrawSegmentation() [4/6]

None eVision.EOCR2Text.DrawSegmentation ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EasyOCR2DrawSegmentationStyle style,
float zoomX,
float zoomY,
float panX )

Draws the blobs found by the segmentation algorithm.

Parameters
drawAdaptereVision.EDrawAdapter that will be used to draw.
styleThe style in which each blob should be drawn.
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.

◆ DrawSegmentation() [5/6]

None eVision.EOCR2Text.DrawSegmentation ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EasyOCR2DrawSegmentationStyle style,
float zoomX,
float zoomY,
float panX,
float panY )

Draws the blobs found by the segmentation algorithm.

Parameters
drawAdaptereVision.EDrawAdapter that will be used to draw.
styleThe style in which each blob should be drawn.
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.

◆ DrawSegmentation() [6/6]

None eVision.EOCR2Text.DrawSegmentation ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EasyOCR2DrawSegmentationStyle style,
float zoomX,
float zoomY,
float panX,
float panY,
eVision.EFrame frame )

Draws the blobs found by the segmentation algorithm.

Parameters
drawAdaptereVision.EDrawAdapter that will be used to draw.
styleThe style in which each blob should be drawn.
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.
frameFrame used in the last read.

◆ HitTestChar() [1/6]

bool eVision.EOCR2Text.HitTestChar ( self,
eVision.EOCR2Char character,
int x,
int y )

Tests the cursor position for the presence of a character.

If one is present under the cursor, it returns true and fills the eVision.EOCR2Char object passed as parameter.

Parameters
characterReturns the character if one was detected under the cursor.
xHorizontal position of the cursor.
yVertical position of the cursor.

◆ HitTestChar() [2/6]

bool eVision.EOCR2Text.HitTestChar ( self,
eVision.EOCR2Char character,
int x,
int y,
float zoomX )

Tests the cursor position for the presence of a character.

If one is present under the cursor, it returns true and fills the eVision.EOCR2Char object passed as parameter.

Parameters
characterReturns the character if one was detected under the cursor.
xHorizontal position of the cursor.
yVertical position of the cursor.
zoomXHorizontal zooming factor. By default, true scale is used.

◆ HitTestChar() [3/6]

bool eVision.EOCR2Text.HitTestChar ( self,
eVision.EOCR2Char character,
int x,
int y,
float zoomX,
float zoomY )

Tests the cursor position for the presence of a character.

If one is present under the cursor, it returns true and fills the eVision.EOCR2Char object passed as parameter.

Parameters
characterReturns the character if one was detected under the cursor.
xHorizontal position of the cursor.
yVertical position of the cursor.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, to provide isotropic zooming.

◆ HitTestChar() [4/6]

bool eVision.EOCR2Text.HitTestChar ( self,
eVision.EOCR2Char character,
int x,
int y,
float zoomX,
float zoomY,
float panX )

Tests the cursor position for the presence of a character.

If one is present under the cursor, it returns true and fills the eVision.EOCR2Char object passed as parameter.

Parameters
characterReturns the character if one was detected under the cursor.
xHorizontal position of the cursor.
yVertical position of the cursor.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.

◆ HitTestChar() [5/6]

bool eVision.EOCR2Text.HitTestChar ( self,
eVision.EOCR2Char character,
int x,
int y,
float zoomX,
float zoomY,
float panX,
float panY )

Tests the cursor position for the presence of a character.

If one is present under the cursor, it returns true and fills the eVision.EOCR2Char object passed as parameter.

Parameters
characterReturns the character if one was detected under the cursor.
xHorizontal position of the cursor.
yVertical position of the cursor.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, 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.

◆ HitTestChar() [6/6]

bool eVision.EOCR2Text.HitTestChar ( self,
eVision.EOCR2Char character,
int x,
int y,
float zoomX,
float zoomY,
float panX,
float panY,
eVision.EFrame frame )

Tests the cursor position for the presence of a character.

If one is present under the cursor, it returns true and fills the eVision.EOCR2Char object passed as parameter.

Parameters
characterReturns the character if one was detected under the cursor.
xHorizontal position of the cursor.
yVertical position of the cursor.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, 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.
frameFrame used in the read of the specified character.

◆ HitTestLine() [1/6]

bool eVision.EOCR2Text.HitTestLine ( self,
eVision.EOCR2Line line,
int x,
int y )

Tests the cursor position for the presence of a line.

If one is present under the cursor, it returns true and fills the eVision.EOCR2Line object passed as parameter.

Parameters
lineObject to fill if a line was detected under the cursor.
xHorizontal position of the cursor.
yVertical position of the cursor.

◆ HitTestLine() [2/6]

bool eVision.EOCR2Text.HitTestLine ( self,
eVision.EOCR2Line line,
int x,
int y,
float zoomX )

Tests the cursor position for the presence of a line.

If one is present under the cursor, it returns true and fills the eVision.EOCR2Line object passed as parameter.

Parameters
lineObject to fill if a line was detected under the cursor.
xHorizontal position of the cursor.
yVertical position of the cursor.
zoomXHorizontal zooming factor. By default, true scale is used.

◆ HitTestLine() [3/6]

bool eVision.EOCR2Text.HitTestLine ( self,
eVision.EOCR2Line line,
int x,
int y,
float zoomX,
float zoomY )

Tests the cursor position for the presence of a line.

If one is present under the cursor, it returns true and fills the eVision.EOCR2Line object passed as parameter.

Parameters
lineObject to fill if a line was detected under the cursor.
xHorizontal position of the cursor.
yVertical position of the cursor.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, to provide isotropic zooming.

◆ HitTestLine() [4/6]

bool eVision.EOCR2Text.HitTestLine ( self,
eVision.EOCR2Line line,
int x,
int y,
float zoomX,
float zoomY,
float panX )

Tests the cursor position for the presence of a line.

If one is present under the cursor, it returns true and fills the eVision.EOCR2Line object passed as parameter.

Parameters
lineObject to fill if a line was detected under the cursor.
xHorizontal position of the cursor.
yVertical position of the cursor.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.

◆ HitTestLine() [5/6]

bool eVision.EOCR2Text.HitTestLine ( self,
eVision.EOCR2Line line,
int x,
int y,
float zoomX,
float zoomY,
float panX,
float panY )

Tests the cursor position for the presence of a line.

If one is present under the cursor, it returns true and fills the eVision.EOCR2Line object passed as parameter.

Parameters
lineObject to fill if a line was detected under the cursor.
xHorizontal position of the cursor.
yVertical position of the cursor.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, 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.

◆ HitTestLine() [6/6]

bool eVision.EOCR2Text.HitTestLine ( self,
eVision.EOCR2Line line,
int x,
int y,
float zoomX,
float zoomY,
float panX,
float panY,
eVision.EFrame frame )

Tests the cursor position for the presence of a line.

If one is present under the cursor, it returns true and fills the eVision.EOCR2Line object passed as parameter.

Parameters
lineObject to fill if a line was detected under the cursor.
xHorizontal position of the cursor.
yVertical position of the cursor.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, 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.
frameFrame used in the read of the specified line.

◆ HitTestText() [1/6]

bool eVision.EOCR2Text.HitTestText ( self,
int x,
int y )

Tests the cursor position for the presence of a text.

If one is present under the cursor, it returns true.

Parameters
xHorizontal position of the cursor.
yVertical position of the cursor.

◆ HitTestText() [2/6]

bool eVision.EOCR2Text.HitTestText ( self,
int x,
int y,
float zoomX )

Tests the cursor position for the presence of a text.

If one is present under the cursor, it returns true.

Parameters
xHorizontal position of the cursor.
yVertical position of the cursor.
zoomXHorizontal zooming factor. By default, true scale is used.

◆ HitTestText() [3/6]

bool eVision.EOCR2Text.HitTestText ( self,
int x,
int y,
float zoomX,
float zoomY )

Tests the cursor position for the presence of a text.

If one is present under the cursor, it returns true.

Parameters
xHorizontal position of the cursor.
yVertical position of the cursor.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, to provide isotropic zooming.

◆ HitTestText() [4/6]

bool eVision.EOCR2Text.HitTestText ( self,
int x,
int y,
float zoomX,
float zoomY,
float panX )

Tests the cursor position for the presence of a text.

If one is present under the cursor, it returns true.

Parameters
xHorizontal position of the cursor.
yVertical position of the cursor.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.

◆ HitTestText() [5/6]

bool eVision.EOCR2Text.HitTestText ( self,
int x,
int y,
float zoomX,
float zoomY,
float panX,
float panY )

Tests the cursor position for the presence of a text.

If one is present under the cursor, it returns true.

Parameters
xHorizontal position of the cursor.
yVertical position of the cursor.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, 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.

◆ HitTestText() [6/6]

bool eVision.EOCR2Text.HitTestText ( self,
int x,
int y,
float zoomX,
float zoomY,
float panX,
float panY,
eVision.EFrame frame )

Tests the cursor position for the presence of a text.

If one is present under the cursor, it returns true.

Parameters
xHorizontal position of the cursor.
yVertical position of the cursor.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, 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.
frameFrame used in the read of the specified text.

◆ HitTestWord() [1/6]

bool eVision.EOCR2Text.HitTestWord ( self,
eVision.EOCR2Word word,
int x,
int y )

Tests the cursor position for the presence of a word.

If one is present under the cursor, it returns true and fills the eVision.EOCR2Word object passed as parameter.

Parameters
wordObject to fill if a word was detected under the cursor.
xHorizontal position of the cursor.
yVertical position of the cursor.

◆ HitTestWord() [2/6]

bool eVision.EOCR2Text.HitTestWord ( self,
eVision.EOCR2Word word,
int x,
int y,
float zoomX )

Tests the cursor position for the presence of a word.

If one is present under the cursor, it returns true and fills the eVision.EOCR2Word object passed as parameter.

Parameters
wordObject to fill if a word was detected under the cursor.
xHorizontal position of the cursor.
yVertical position of the cursor.
zoomXHorizontal zooming factor. By default, true scale is used.

◆ HitTestWord() [3/6]

bool eVision.EOCR2Text.HitTestWord ( self,
eVision.EOCR2Word word,
int x,
int y,
float zoomX,
float zoomY )

Tests the cursor position for the presence of a word.

If one is present under the cursor, it returns true and fills the eVision.EOCR2Word object passed as parameter.

Parameters
wordObject to fill if a word was detected under the cursor.
xHorizontal position of the cursor.
yVertical position of the cursor.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, to provide isotropic zooming.

◆ HitTestWord() [4/6]

bool eVision.EOCR2Text.HitTestWord ( self,
eVision.EOCR2Word word,
int x,
int y,
float zoomX,
float zoomY,
float panX )

Tests the cursor position for the presence of a word.

If one is present under the cursor, it returns true and fills the eVision.EOCR2Word object passed as parameter.

Parameters
wordObject to fill if a word was detected under the cursor.
xHorizontal position of the cursor.
yVertical position of the cursor.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.

◆ HitTestWord() [5/6]

bool eVision.EOCR2Text.HitTestWord ( self,
eVision.EOCR2Word word,
int x,
int y,
float zoomX,
float zoomY,
float panX,
float panY )

Tests the cursor position for the presence of a word.

If one is present under the cursor, it returns true and fills the eVision.EOCR2Word object passed as parameter.

Parameters
wordObject to fill if a word was detected under the cursor.
xHorizontal position of the cursor.
yVertical position of the cursor.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, 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.

◆ HitTestWord() [6/6]

bool eVision.EOCR2Text.HitTestWord ( self,
eVision.EOCR2Word word,
int x,
int y,
float zoomX,
float zoomY,
float panX,
float panY,
eVision.EFrame frame )

Tests the cursor position for the presence of a word.

If one is present under the cursor, it returns true and fills the eVision.EOCR2Word object passed as parameter.

Parameters
wordObject to fill if a word was detected under the cursor.
xHorizontal position of the cursor.
yVertical position of the cursor.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, 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.
frameFrame used in the read of the specified word.

◆ LineCount()

int eVision.EOCR2Text.LineCount ( self)

Gets the number of lines.

◆ Lines() [1/2]

list[eVision._eVision.EOCR2Line] eVision.EOCR2Text.Lines ( self)

The vector of eVision.EOCR2Line objects representing the text.

◆ Lines() [2/2]

eVision.EOCR2Text.Lines ( self,
list[eVision._eVision.EOCR2Line] value )

The vector of eVision.EOCR2Line objects representing the text.

◆ String()

str eVision.EOCR2Text.String ( self)

Gets the read string.

◆ Text() [1/2]

str eVision.EOCR2Text.Text ( self)

The true value of all characters in the text.

Remarks:

Use a space (" ") to separate two words and a linebreak ("\n") to separate two lines.

◆ Text() [2/2]

eVision.EOCR2Text.Text ( self,
str value )

The true value of all characters in the text.

Remarks:

Use a space (" ") to separate two words and a linebreak ("\n") to separate two lines.

◆ ToFrame() [1/2]

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

Converts the shape to a frame.

Parameters
useAngleWhether to use the angle of the shape as the orientation of the frame
frameScalingHow to change the scaling of the frame.

◆ ToFrame() [2/2]

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

Converts the shape to a frame.

Parameters
useAngleWhether to use the angle of the shape as the orientation of the frame
frameScalingHow to change the scaling of the frame.
frameThe frame in which the text is defined

◆ ToRegion()

eVision.ERegion eVision.EOCR2Text.ToRegion ( self)

Creates an eVision.ERegion from the eVision.EOCR2Text.