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

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

Public Member Functions

None __init__ (self)
 Constructs a eVision.EasyDeepOCR.EText.
None __init__ (self, eVision.EasyDeepOCR.EText other)
 Constructs a eVision.EasyDeepOCR.EText.
None __init__ (self, list[eVision._eVision.EasyDeepOCR.ETextLine] lines)
 Constructs a eVision.EasyDeepOCR.EText.
None __init__ (self, eVision.EasyDeepOCR.ETextLine line)
 Constructs a eVision.EasyDeepOCR.EText.
None Load (self, str path)
 Loads the eVision.EasyDeepOCR.EText.
None Load (self, eVision.ESerializer|None serializer)
 Loads the eVision.EasyDeepOCR.EText.
None Save (self, str path)
 Saves the eVision.EasyDeepOCR.EText.
None Save (self, eVision.ESerializer|None serializer)
 Saves the eVision.EasyDeepOCR.EText.
bool Match (self, eVision.EasyDeepOCR.EText reference)
 Returns true if this eVision.EasyDeepOCR.EText matches the reference eVision.EasyDeepOCR.EText.
None Draw (self, eVision.EDrawAdapter|None graphicContext, float zoomX, float zoomY, float panX, float panY)
 Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings.
None Draw (self, eVision.EDrawAdapter|None graphicContext, float zoomX, float zoomY, float panX)
 Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings.
None Draw (self, eVision.EDrawAdapter|None graphicContext, float zoomX, float zoomY)
 Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings.
None Draw (self, eVision.EDrawAdapter|None graphicContext, float zoomX)
 Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings.
None Draw (self, eVision.EDrawAdapter|None graphicContext)
 Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings.
None Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters, float zoomX, float zoomY, float panX, float panY)
 Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings.
None Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters, float zoomX, float zoomY, float panX)
 Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings.
None Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters, float zoomX, float zoomY)
 Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings.
None Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters, float zoomX)
 Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings.
None Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters)
 Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings.
None Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY)
 Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings.
None Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EFrame frame, float zoomX, float zoomY, float panX)
 Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings.
None Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EFrame frame, float zoomX, float zoomY)
 Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings.
None Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EFrame frame, float zoomX)
 Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings.
None Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EFrame frame)
 Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings.
None Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EFrame frame, eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters, float zoomX, float zoomY, float panX, float panY)
 Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings.
None Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EFrame frame, eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters, float zoomX, float zoomY, float panX)
 Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings.
None Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EFrame frame, eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters, float zoomX, float zoomY)
 Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings.
None Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EFrame frame, eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters, float zoomX)
 Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings.
None Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EFrame frame, eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters)
 Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings.
list[eVision._eVision.EasyDeepOCR.ETextLine] Lines (self)
 eVision.EasyDeepOCR.EText lines.
 Lines (self, list[eVision._eVision.EasyDeepOCR.ETextLine] value)
 eVision.EasyDeepOCR.EText lines.
eVision.ERectangle Position (self)
 Returns a rectangle that contains all the lines.
str String (self)
 Returns the concatenation of the line strings, separated by the new line character "\n".
float Score (self)
 Returns the score of this text.

Detailed Description

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

A eVision.EasyDeepOCR.EText is composed of one or several eVision.EasyDeepOCR.ETextLine, that are returned by eVision.EasyDeepOCR.EText.Lines.

Remarks:

License(s): EasyDeepOCR

Constructor & Destructor Documentation

◆ __init__() [1/4]

None eVision.EasyDeepOCR.EText.__init__ ( self)

◆ __init__() [2/4]

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

Constructs a eVision.EasyDeepOCR.EText.

Parameters
othereVision.EasyDeepOCR.EText to be copied.

◆ __init__() [3/4]

None eVision.EasyDeepOCR.EText.__init__ ( self,
list[eVision._eVision.EasyDeepOCR.ETextLine] lines )

◆ __init__() [4/4]

None eVision.EasyDeepOCR.EText.__init__ ( self,
eVision.EasyDeepOCR.ETextLine line )

Constructs a eVision.EasyDeepOCR.EText.

Parameters
lineSingle line for the eVision.EasyDeepOCR.EText.

Member Function Documentation

◆ Draw() [1/20]

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

Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings.

Parameters
graphicContextHandle to the device context of the destination window.

◆ Draw() [2/20]

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

Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings.

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

◆ Draw() [3/20]

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

Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings.

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.EText.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters,
float zoomX,
float zoomY )

Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings.

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.EText.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters,
float zoomX,
float zoomY,
float panX )

Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings.

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.EText.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters,
float zoomX,
float zoomY,
float panX,
float panY )

Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings.

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.EText.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.EFrame frame )

Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings.

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

◆ Draw() [8/20]

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

Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings.

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.EText.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.EFrame frame,
eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters,
float zoomX )

Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings.

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.EText.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.EFrame frame,
eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters,
float zoomX,
float zoomY )

Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings.

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.EText.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.EFrame frame,
eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters,
float zoomX,
float zoomY,
float panX )

Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings.

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.EText.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.EFrame frame,
eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters,
float zoomX,
float zoomY,
float panX,
float panY )

Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings.

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.EText.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.EFrame frame,
float zoomX )

Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings.

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.EText.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.EFrame frame,
float zoomX,
float zoomY )

Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings.

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.EText.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.EFrame frame,
float zoomX,
float zoomY,
float panX )

Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings.

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.EText.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.EFrame frame,
float zoomX,
float zoomY,
float panX,
float panY )

Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings.

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.EText.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
float zoomX )

Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings.

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.EText.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
float zoomX,
float zoomY )

Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings.

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.EText.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
float zoomX,
float zoomY,
float panX )

Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings.

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.EText.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
float zoomX,
float zoomY,
float panX,
float panY )

Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings.

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.

◆ Lines() [1/2]

list[eVision._eVision.EasyDeepOCR.ETextLine] eVision.EasyDeepOCR.EText.Lines ( self)

◆ Lines() [2/2]

eVision.EasyDeepOCR.EText.Lines ( self,
list[eVision._eVision.EasyDeepOCR.ETextLine] value )

◆ Load() [1/2]

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

Loads the eVision.EasyDeepOCR.EText.

Parameters
serializer-

◆ Load() [2/2]

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

Loads the eVision.EasyDeepOCR.EText.

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

◆ Match()

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

◆ Position()

eVision.ERectangle eVision.EasyDeepOCR.EText.Position ( self)

Returns a rectangle that contains all the lines.

◆ Save() [1/2]

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

Saves the eVision.EasyDeepOCR.EText.

Parameters
serializer-

◆ Save() [2/2]

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

Saves the eVision.EasyDeepOCR.EText.

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

◆ Score()

float eVision.EasyDeepOCR.EText.Score ( self)

Returns the score of this text.

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. When the text has multiple lines, the returned score is the mean of all line scores.

◆ String()

str eVision.EasyDeepOCR.EText.String ( self)

Returns the concatenation of the line strings, separated by the new line character "\n".

The line return