eVision Python API
Loading...
Searching...
No Matches
eVision.EasyDeepOCR.ETextLine Class Reference

Represents a text line detected by a eVision.EasyDeepOCR.ETextReader. More...

Public Member Functions

None __init__ (self)
 Constructs a eVision.EasyDeepOCR.ETextLine.
None __init__ (self, eVision.EasyDeepOCR.ETextLine other)
 Constructs a eVision.EasyDeepOCR.ETextLine.
None __init__ (self, eVision.ERectangle rectangle, str text)
 Constructs a eVision.EasyDeepOCR.ETextLine.
None Load (self, str path)
 Loads the eVision.EasyDeepOCR.ETextLine.
None Load (self, eVision.ESerializer|None serializer)
 Loads the eVision.EasyDeepOCR.ETextLine.
None Save (self, str path)
 Saves the eVision.EasyDeepOCR.ETextLine.
None Save (self, eVision.ESerializer|None serializer)
 Saves the eVision.EasyDeepOCR.ETextLine.
bool Match (self, eVision.EasyDeepOCR.ETextLine reference)
 Returns true if this eVision.EasyDeepOCR.ETextLine matches the reference eVision.EasyDeepOCR.ETextLine.
eVision.EBaseROI|None ExtractMiniature (self, eVision.EBaseROI roi)
 Extracts a miniature image delimited by this eVision.EasyDeepOCR.ETextLine.Rectangle from a source eVision.EBaseROI.
list[eVision._eVision.EasyDeepOCR.ETextLine] SplitInWords (self)
 Splits the eVision.EasyDeepOCR.ETextLine into multiple eVision.EasyDeepOCR.ETextLine, one for each word.
None Draw (self, eVision.EDrawAdapter|None graphicContext, float zoomX, float zoomY, float panX, float panY)
 Draws the text line box.
None Draw (self, eVision.EDrawAdapter|None graphicContext, float zoomX, float zoomY, float panX)
 Draws the text line box.
None Draw (self, eVision.EDrawAdapter|None graphicContext, float zoomX, float zoomY)
 Draws the text line box.
None Draw (self, eVision.EDrawAdapter|None graphicContext, float zoomX)
 Draws the text line box.
None Draw (self, eVision.EDrawAdapter|None graphicContext)
 Draws the text line box.
None Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters, float zoomX, float zoomY, float panX, float panY)
 Draws the text line box.
None Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters, float zoomX, float zoomY, float panX)
 Draws the text line box.
None Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters, float zoomX, float zoomY)
 Draws the text line box.
None Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters, float zoomX)
 Draws the text line box.
None Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters)
 Draws the text line box.
None Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY)
 Draws the text line box.
None Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EFrame frame, float zoomX, float zoomY, float panX)
 Draws the text line box.
None Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EFrame frame, float zoomX, float zoomY)
 Draws the text line box.
None Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EFrame frame, float zoomX)
 Draws the text line box.
None Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EFrame frame)
 Draws the text line box.
None Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EFrame frame, eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters, float zoomX, float zoomY, float panX, float panY)
 Draws the text line box.
None Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EFrame frame, eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters, float zoomX, float zoomY, float panX)
 Draws the text line box.
None Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EFrame frame, eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters, float zoomX, float zoomY)
 Draws the text line box.
None Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EFrame frame, eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters, float zoomX)
 Draws the text line box.
None Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EFrame frame, eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters)
 Draws the text line box.
str String (self)
 Text line string.
 String (self, str value)
 Text line string.
eVision.ERectangle Rectangle (self)
 Text line box.
 Rectangle (self, eVision.ERectangle value)
 Text line box.
bool IsRegex (self)
 States whether the eVision.EasyDeepOCR.ETextLine.String is a regular expression or not.
 IsRegex (self, bool value)
 States whether the eVision.EasyDeepOCR.ETextLine.String is a regular expression or not.
float Score (self)
 Returns the score of this text line.

Detailed Description

Represents a text line detected by a eVision.EasyDeepOCR.ETextReader.

Remarks:

License(s): EasyDeepOCR

Constructor & Destructor Documentation

◆ __init__() [1/3]

None eVision.EasyDeepOCR.ETextLine.__init__ ( self)

◆ __init__() [2/3]

None eVision.EasyDeepOCR.ETextLine.__init__ ( self,
eVision.EasyDeepOCR.ETextLine other )

Constructs a eVision.EasyDeepOCR.ETextLine.

Parameters
othereVision.EasyDeepOCR.ETextLine to be copied.

◆ __init__() [3/3]

None eVision.EasyDeepOCR.ETextLine.__init__ ( self,
eVision.ERectangle rectangle,
str text )

Constructs a eVision.EasyDeepOCR.ETextLine.

Parameters
rectangleText line box.
textText string.

Member Function Documentation

◆ Draw() [1/20]

None eVision.EasyDeepOCR.ETextLine.Draw ( self,
eVision.EDrawAdapter | None graphicContext )

Draws the text line box.

Parameters
graphicContextHandle to the device context of the destination window.

◆ Draw() [2/20]

None eVision.EasyDeepOCR.ETextLine.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters )

Draws the text line box.

Parameters
graphicContextHandle to the device context of the destination window.
drawingParametersClass specifying the drawing parameters.

◆ Draw() [3/20]

None eVision.EasyDeepOCR.ETextLine.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters,
float zoomX )

Draws the text line box.

Parameters
graphicContextHandle to the device context of the destination window.
drawingParametersClass specifying the drawing parameters.
zoomXMagnification factor for zooming in or out in the horizontal direction. By default, no zooming occurs.

◆ Draw() [4/20]

None eVision.EasyDeepOCR.ETextLine.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters,
float zoomX,
float zoomY )

Draws the text line box.

Parameters
graphicContextHandle to the device context of the destination window.
drawingParametersClass specifying the drawing parameters.
zoomXMagnification factor for zooming in or out in the horizontal direction. By default, no zooming occurs.
zoomYMagnification factor for zooming in or out in the vertical direction. By default, no zooming occurs.

◆ Draw() [5/20]

None eVision.EasyDeepOCR.ETextLine.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters,
float zoomX,
float zoomY,
float panX )

Draws the text line box.

Parameters
graphicContextHandle to the device context of the destination window.
drawingParametersClass specifying the drawing parameters.
zoomXMagnification factor for zooming in or out in the horizontal direction. By default, no zooming occurs.
zoomYMagnification factor for zooming in or out in the vertical direction. By default, no zooming occurs.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.

◆ Draw() [6/20]

None eVision.EasyDeepOCR.ETextLine.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters,
float zoomX,
float zoomY,
float panX,
float panY )

Draws the text line box.

Parameters
graphicContextHandle to the device context of the destination window.
drawingParametersClass specifying the drawing parameters.
zoomXMagnification factor for zooming in or out in the horizontal direction. By default, no zooming occurs.
zoomYMagnification factor for zooming in or out in the vertical direction. By default, no zooming occurs.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.

◆ Draw() [7/20]

None eVision.EasyDeepOCR.ETextLine.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.EFrame frame )

Draws the text line box.

Parameters
graphicContextHandle to the device context of the destination window.
frameFrame associated with the text.

◆ Draw() [8/20]

None eVision.EasyDeepOCR.ETextLine.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.EFrame frame,
eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters )

Draws the text line box.

Parameters
graphicContextHandle to the device context of the destination window.
frameFrame associated with the text.
drawingParametersClass specifying the drawing parameters.

◆ Draw() [9/20]

None eVision.EasyDeepOCR.ETextLine.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.EFrame frame,
eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters,
float zoomX )

Draws the text line box.

Parameters
graphicContextHandle to the device context of the destination window.
frameFrame associated with the text.
drawingParametersClass specifying the drawing parameters.
zoomXMagnification factor for zooming in or out in the horizontal direction. By default, no zooming occurs.

◆ Draw() [10/20]

None eVision.EasyDeepOCR.ETextLine.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.EFrame frame,
eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters,
float zoomX,
float zoomY )

Draws the text line box.

Parameters
graphicContextHandle to the device context of the destination window.
frameFrame associated with the text.
drawingParametersClass specifying the drawing parameters.
zoomXMagnification factor for zooming in or out in the horizontal direction. By default, no zooming occurs.
zoomYMagnification factor for zooming in or out in the vertical direction. By default, no zooming occurs.

◆ Draw() [11/20]

None eVision.EasyDeepOCR.ETextLine.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.EFrame frame,
eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters,
float zoomX,
float zoomY,
float panX )

Draws the text line box.

Parameters
graphicContextHandle to the device context of the destination window.
frameFrame associated with the text.
drawingParametersClass specifying the drawing parameters.
zoomXMagnification factor for zooming in or out in the horizontal direction. By default, no zooming occurs.
zoomYMagnification factor for zooming in or out in the vertical direction. By default, no zooming occurs.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.

◆ Draw() [12/20]

None eVision.EasyDeepOCR.ETextLine.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.EFrame frame,
eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters,
float zoomX,
float zoomY,
float panX,
float panY )

Draws the text line box.

Parameters
graphicContextHandle to the device context of the destination window.
frameFrame associated with the text.
drawingParametersClass specifying the drawing parameters.
zoomXMagnification factor for zooming in or out in the horizontal direction. By default, no zooming occurs.
zoomYMagnification factor for zooming in or out in the vertical direction. By default, no zooming occurs.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.

◆ Draw() [13/20]

None eVision.EasyDeepOCR.ETextLine.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.EFrame frame,
float zoomX )

Draws the text line box.

Parameters
graphicContextHandle to the device context of the destination window.
frameFrame associated with the text.
zoomXMagnification factor for zooming in or out in the horizontal direction. By default, no zooming occurs.

◆ Draw() [14/20]

None eVision.EasyDeepOCR.ETextLine.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.EFrame frame,
float zoomX,
float zoomY )

Draws the text line box.

Parameters
graphicContextHandle to the device context of the destination window.
frameFrame associated with the text.
zoomXMagnification factor for zooming in or out in the horizontal direction. By default, no zooming occurs.
zoomYMagnification factor for zooming in or out in the vertical direction. By default, no zooming occurs.

◆ Draw() [15/20]

None eVision.EasyDeepOCR.ETextLine.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.EFrame frame,
float zoomX,
float zoomY,
float panX )

Draws the text line box.

Parameters
graphicContextHandle to the device context of the destination window.
frameFrame associated with the text.
zoomXMagnification factor for zooming in or out in the horizontal direction. By default, no zooming occurs.
zoomYMagnification factor for zooming in or out in the vertical direction. By default, no zooming occurs.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.

◆ Draw() [16/20]

None eVision.EasyDeepOCR.ETextLine.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.EFrame frame,
float zoomX,
float zoomY,
float panX,
float panY )

Draws the text line box.

Parameters
graphicContextHandle to the device context of the destination window.
frameFrame associated with the text.
zoomXMagnification factor for zooming in or out in the horizontal direction. By default, no zooming occurs.
zoomYMagnification factor for zooming in or out in the vertical direction. By default, no zooming occurs.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.

◆ Draw() [17/20]

None eVision.EasyDeepOCR.ETextLine.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
float zoomX )

Draws the text line box.

Parameters
graphicContextHandle to the device context of the destination window.
zoomXMagnification factor for zooming in or out in the horizontal direction. By default, no zooming occurs.

◆ Draw() [18/20]

None eVision.EasyDeepOCR.ETextLine.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
float zoomX,
float zoomY )

Draws the text line box.

Parameters
graphicContextHandle to the device context of the destination window.
zoomXMagnification factor for zooming in or out in the horizontal direction. By default, no zooming occurs.
zoomYMagnification factor for zooming in or out in the vertical direction. By default, no zooming occurs.

◆ Draw() [19/20]

None eVision.EasyDeepOCR.ETextLine.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
float zoomX,
float zoomY,
float panX )

Draws the text line box.

Parameters
graphicContextHandle to the device context of the destination window.
zoomXMagnification factor for zooming in or out in the horizontal direction. By default, no zooming occurs.
zoomYMagnification factor for zooming in or out in the vertical direction. By default, no zooming occurs.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.

◆ Draw() [20/20]

None eVision.EasyDeepOCR.ETextLine.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
float zoomX,
float zoomY,
float panX,
float panY )

Draws the text line box.

Parameters
graphicContextHandle to the device context of the destination window.
zoomXMagnification factor for zooming in or out in the horizontal direction. By default, no zooming occurs.
zoomYMagnification factor for zooming in or out in the vertical direction. By default, no zooming occurs.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.

◆ ExtractMiniature()

eVision.EBaseROI | None eVision.EasyDeepOCR.ETextLine.ExtractMiniature ( self,
eVision.EBaseROI roi )

Extracts a miniature image delimited by this eVision.EasyDeepOCR.ETextLine.Rectangle from a source eVision.EBaseROI.

◆ IsRegex() [1/2]

bool eVision.EasyDeepOCR.ETextLine.IsRegex ( self)

States whether the eVision.EasyDeepOCR.ETextLine.String is a regular expression or not.

This flag is used only when converting this eVision.EasyDeepOCR.ETextLine to an EasyDeepOCR.ESampleTextLine. This property is a workaround to be able to create eVision.EasyDeepOCR.ESamples with regex from the public API, for testing purpuses.

◆ IsRegex() [2/2]

eVision.EasyDeepOCR.ETextLine.IsRegex ( self,
bool value )

States whether the eVision.EasyDeepOCR.ETextLine.String is a regular expression or not.

This flag is used only when converting this eVision.EasyDeepOCR.ETextLine to an EasyDeepOCR.ESampleTextLine. This property is a workaround to be able to create eVision.EasyDeepOCR.ESamples with regex from the public API, for testing purpuses.

◆ Load() [1/2]

None eVision.EasyDeepOCR.ETextLine.Load ( self,
eVision.ESerializer | None serializer )

Loads the eVision.EasyDeepOCR.ETextLine.

Parameters
serializer-

◆ Load() [2/2]

None eVision.EasyDeepOCR.ETextLine.Load ( self,
str path )

Loads the eVision.EasyDeepOCR.ETextLine.

Parameters
pathPath where to save the eVision.EasyDeepOCR.ETextLine.

◆ Match()

bool eVision.EasyDeepOCR.ETextLine.Match ( self,
eVision.EasyDeepOCR.ETextLine reference )

Returns true if this eVision.EasyDeepOCR.ETextLine matches the reference eVision.EasyDeepOCR.ETextLine.

A eVision.EasyDeepOCR.ETextLine matches a reference eVision.EasyDeepOCR.ETextLine when both eVision.EasyDeepOCR.ETextLine.String are equal and when this eVision.EasyDeepOCR.ETextLine.Rectangle is similar, or slightly wider, than the reference eVision.EasyDeepOCR.ETextLine.Rectangle.

◆ Rectangle() [1/2]

eVision.ERectangle eVision.EasyDeepOCR.ETextLine.Rectangle ( self)

Text line box.

◆ Rectangle() [2/2]

eVision.EasyDeepOCR.ETextLine.Rectangle ( self,
eVision.ERectangle value )

Text line box.

◆ Save() [1/2]

None eVision.EasyDeepOCR.ETextLine.Save ( self,
eVision.ESerializer | None serializer )

Saves the eVision.EasyDeepOCR.ETextLine.

Parameters
serializer-

◆ Save() [2/2]

None eVision.EasyDeepOCR.ETextLine.Save ( self,
str path )

Saves the eVision.EasyDeepOCR.ETextLine.

Parameters
pathPath where to save the eVision.EasyDeepOCR.ETextLine.

◆ Score()

float eVision.EasyDeepOCR.ETextLine.Score ( self)

Returns the score of this text line.

The score value resides in the interval [0.0; 1.0]. It can be used to get an approximation of the reading quality of the underlying text.

◆ SplitInWords()

list[eVision._eVision.EasyDeepOCR.ETextLine] eVision.EasyDeepOCR.ETextLine.SplitInWords ( self)

Splits the eVision.EasyDeepOCR.ETextLine into multiple eVision.EasyDeepOCR.ETextLine, one for each word.

Every returned eVision.EasyDeepOCR.ETextLine corresponds to a single word from the original eVision.EasyDeepOCR.ETextLine. The width of each eVision.EasyDeepOCR.ETextLine.Rectangle is based on the word's character count, assuming a fixed character width. This method is intended for testing purposes only.

◆ String() [1/2]

str eVision.EasyDeepOCR.ETextLine.String ( self)

Text line string.

◆ String() [2/2]

eVision.EasyDeepOCR.ETextLine.String ( self,
str value )

Text line string.