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

Represents a text detected by a ETextReader. A EText is composed of one or several ETextLine, that are returned by EText.Lines. More...

Inheritance diagram for eVision.EasyDeepOCR.EText:
Collaboration diagram for eVision.EasyDeepOCR.EText:

Public Member Functions

 EText ()
 Constructs a EText.
 EText (eVision.EasyDeepOCR.EText other)
 Constructs a EText.
 EText (eVision.EasyDeepOCR.ETextLine[] lines)
 Constructs a EText.
 EText (eVision.EasyDeepOCR.ETextLine line)
 Constructs a EText.
void Load (string path)
 Loads the EText.
void Load (eVision.ESerializer serializer)
 Loads the EText.
void Save (string path)
 Saves the EText.
void Save (eVision.ESerializer serializer)
 Saves the EText.
bool Match (eVision.EasyDeepOCR.EText reference)
 Returns true if this EText matches the reference EText. A EText matches a reference EText when all their ETextLine match each other (ETextLine.Match).
void Draw (eVision.EDrawAdapter 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.
void Draw (eVision.EDrawAdapter 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.
void Draw (eVision.EDrawAdapter 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.
void Draw (eVision.EDrawAdapter 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.
void Draw (eVision.EDrawAdapter graphicContext)
 Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings.
void Draw (eVision.EDrawAdapter 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.
void Draw (eVision.EDrawAdapter 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.
void Draw (eVision.EDrawAdapter 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.
void Draw (eVision.EDrawAdapter 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.
void Draw (eVision.EDrawAdapter 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.
void Draw (eVision.EDrawAdapter 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.
void Draw (eVision.EDrawAdapter 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.
void Draw (eVision.EDrawAdapter 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.
void Draw (eVision.EDrawAdapter 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.
void Draw (eVision.EDrawAdapter 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.
void Draw (eVision.EDrawAdapter 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.
void Draw (eVision.EDrawAdapter 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.
void Draw (eVision.EDrawAdapter 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.
void Draw (eVision.EDrawAdapter 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.
void Draw (eVision.EDrawAdapter 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.

Properties

eVision.EasyDeepOCR.ETextLine[] Lines [get, set]
 EText lines.
eVision.ERectangle Position [get]
 Returns a rectangle that contains all the lines.
string String [get]
 Returns the concatenation of the line strings, separated by the new line character "\n". The line return.
float Score [get]
 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.

Detailed Description

Represents a text detected by a ETextReader. A EText is composed of one or several ETextLine, that are returned by EText.Lines.

License(s): EasyDeepOCR

Constructor & Destructor Documentation

◆ EText() [1/4]

eVision.EasyDeepOCR.EText.EText ( )

Constructs a EText.

◆ EText() [2/4]

eVision.EasyDeepOCR.EText.EText ( eVision.EasyDeepOCR.EText other)

Constructs a EText.

Parameters
otherEText to be copied.

◆ EText() [3/4]

eVision.EasyDeepOCR.EText.EText ( eVision.EasyDeepOCR.ETextLine[] lines)

Constructs a EText.

Parameters
linesList of ETextLine of the EText.

◆ EText() [4/4]

eVision.EasyDeepOCR.EText.EText ( eVision.EasyDeepOCR.ETextLine line)

Constructs a EText.

Parameters
lineSingle line for the EText.

Member Function Documentation

◆ Draw() [1/20]

void eVision.EasyDeepOCR.EText.Draw ( eVision.EDrawAdapter 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]

void eVision.EasyDeepOCR.EText.Draw ( eVision.EDrawAdapter 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]

void eVision.EasyDeepOCR.EText.Draw ( eVision.EDrawAdapter 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]

void eVision.EasyDeepOCR.EText.Draw ( eVision.EDrawAdapter 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]

void eVision.EasyDeepOCR.EText.Draw ( eVision.EDrawAdapter 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]

void eVision.EasyDeepOCR.EText.Draw ( eVision.EDrawAdapter 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]

void eVision.EasyDeepOCR.EText.Draw ( eVision.EDrawAdapter 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]

void eVision.EasyDeepOCR.EText.Draw ( eVision.EDrawAdapter 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]

void eVision.EasyDeepOCR.EText.Draw ( eVision.EDrawAdapter 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]

void eVision.EasyDeepOCR.EText.Draw ( eVision.EDrawAdapter 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]

void eVision.EasyDeepOCR.EText.Draw ( eVision.EDrawAdapter 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]

void eVision.EasyDeepOCR.EText.Draw ( eVision.EDrawAdapter 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]

void eVision.EasyDeepOCR.EText.Draw ( eVision.EDrawAdapter 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]

void eVision.EasyDeepOCR.EText.Draw ( eVision.EDrawAdapter 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]

void eVision.EasyDeepOCR.EText.Draw ( eVision.EDrawAdapter 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]

void eVision.EasyDeepOCR.EText.Draw ( eVision.EDrawAdapter 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]

void eVision.EasyDeepOCR.EText.Draw ( eVision.EDrawAdapter 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]

void eVision.EasyDeepOCR.EText.Draw ( eVision.EDrawAdapter 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]

void eVision.EasyDeepOCR.EText.Draw ( eVision.EDrawAdapter 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]

void eVision.EasyDeepOCR.EText.Draw ( eVision.EDrawAdapter 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.

◆ Load() [1/2]

void eVision.EasyDeepOCR.EText.Load ( eVision.ESerializer serializer)

Loads the EText.

Parameters
serializer

◆ Load() [2/2]

void eVision.EasyDeepOCR.EText.Load ( string path)

Loads the EText.

Parameters
pathPath where to save the EText.

◆ Match()

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

Returns true if this EText matches the reference EText. A EText matches a reference EText when all their ETextLine match each other (ETextLine.Match).

◆ Save() [1/2]

void eVision.EasyDeepOCR.EText.Save ( eVision.ESerializer serializer)

Saves the EText.

Parameters
serializer

◆ Save() [2/2]

void eVision.EasyDeepOCR.EText.Save ( string path)

Saves the EText.

Parameters
pathPath where to save the EText.

Property Documentation

◆ Lines

eVision.EasyDeepOCR.ETextLine [] eVision.EasyDeepOCR.EText.Lines
getset

EText lines.

◆ Position

eVision.ERectangle eVision.EasyDeepOCR.EText.Position
get

Returns a rectangle that contains all the lines.

◆ Score

float eVision.EasyDeepOCR.EText.Score
get

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

string eVision.EasyDeepOCR.EText.String
get

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