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

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

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

Public Member Functions

 ETextLine ()
 Constructs a ETextLine.
 ETextLine (eVision.EasyDeepOCR.ETextLine other)
 Constructs a ETextLine.
 ETextLine (eVision.ERectangle rectangle, string text)
 Constructs a ETextLine.
void Load (string path)
 Loads the ETextLine.
void Load (eVision.ESerializer serializer)
 Loads the ETextLine.
void Save (string path)
 Saves the ETextLine.
void Save (eVision.ESerializer serializer)
 Saves the ETextLine.
bool Match (eVision.EasyDeepOCR.ETextLine reference)
 Returns true if this ETextLine matches the reference ETextLine. A ETextLine matches a reference ETextLine when both ETextLine.String are equal and when this ETextLine.Rectangle is similar, or slightly wider, than the reference ETextLine.Rectangle.
eVision.EBaseROI ExtractMiniature (eVision.EBaseROI roi)
 Extracts a miniature image delimited by this ETextLine.Rectangle from a source EBaseROI.
eVision.EasyDeepOCR.ETextLine[] SplitInWords ()
 Splits the ETextLine into multiple ETextLine, one for each word. Every returned ETextLine corresponds to a single word from the original ETextLine. The width of each ETextLine.Rectangle is based on the word's character count, assuming a fixed character width. This method is intended for testing purposes only.
void Draw (eVision.EDrawAdapter graphicContext, float zoomX, float zoomY, float panX, float panY)
 Draws the text line box.
void Draw (eVision.EDrawAdapter graphicContext, float zoomX, float zoomY, float panX)
 Draws the text line box.
void Draw (eVision.EDrawAdapter graphicContext, float zoomX, float zoomY)
 Draws the text line box.
void Draw (eVision.EDrawAdapter graphicContext, float zoomX)
 Draws the text line box.
void Draw (eVision.EDrawAdapter graphicContext)
 Draws the text line box.
void Draw (eVision.EDrawAdapter graphicContext, eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters, float zoomX, float zoomY, float panX, float panY)
 Draws the text line box.
void Draw (eVision.EDrawAdapter graphicContext, eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters, float zoomX, float zoomY, float panX)
 Draws the text line box.
void Draw (eVision.EDrawAdapter graphicContext, eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters, float zoomX, float zoomY)
 Draws the text line box.
void Draw (eVision.EDrawAdapter graphicContext, eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters, float zoomX)
 Draws the text line box.
void Draw (eVision.EDrawAdapter graphicContext, eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters)
 Draws the text line box.
void Draw (eVision.EDrawAdapter graphicContext, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY)
 Draws the text line box.
void Draw (eVision.EDrawAdapter graphicContext, eVision.EFrame frame, float zoomX, float zoomY, float panX)
 Draws the text line box.
void Draw (eVision.EDrawAdapter graphicContext, eVision.EFrame frame, float zoomX, float zoomY)
 Draws the text line box.
void Draw (eVision.EDrawAdapter graphicContext, eVision.EFrame frame, float zoomX)
 Draws the text line box.
void Draw (eVision.EDrawAdapter graphicContext, eVision.EFrame frame)
 Draws the text line box.
void Draw (eVision.EDrawAdapter graphicContext, eVision.EFrame frame, eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters, float zoomX, float zoomY, float panX, float panY)
 Draws the text line box.
void Draw (eVision.EDrawAdapter graphicContext, eVision.EFrame frame, eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters, float zoomX, float zoomY, float panX)
 Draws the text line box.
void Draw (eVision.EDrawAdapter graphicContext, eVision.EFrame frame, eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters, float zoomX, float zoomY)
 Draws the text line box.
void Draw (eVision.EDrawAdapter graphicContext, eVision.EFrame frame, eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters, float zoomX)
 Draws the text line box.
void Draw (eVision.EDrawAdapter graphicContext, eVision.EFrame frame, eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters)
 Draws the text line box.

Properties

string String [get, set]
 Text line string.
eVision.ERectangle Rectangle [get, set]
 Text line box.
bool IsRegex [get, set]
 States whether the ETextLine.String is a regular expression or not. This flag is used only when converting this ETextLine to an EasyDeepOCR.ESampleTextLine. This property is a workaround to be able to create ESamples with regex from the public API, for testing purpuses.
float Score [get]
 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.

Detailed Description

Represents a text line detected by a ETextReader.

License(s): EasyDeepOCR

Constructor & Destructor Documentation

◆ ETextLine() [1/3]

eVision.EasyDeepOCR.ETextLine.ETextLine ( )

Constructs a ETextLine.

◆ ETextLine() [2/3]

eVision.EasyDeepOCR.ETextLine.ETextLine ( eVision.EasyDeepOCR.ETextLine other)

Constructs a ETextLine.

Parameters
otherETextLine to be copied.

◆ ETextLine() [3/3]

eVision.EasyDeepOCR.ETextLine.ETextLine ( eVision.ERectangle rectangle,
string text )

Constructs a ETextLine.

Parameters
rectangleText line box.
textText string.

Member Function Documentation

◆ Draw() [1/20]

void eVision.EasyDeepOCR.ETextLine.Draw ( eVision.EDrawAdapter graphicContext)

Draws the text line box.

Parameters
graphicContextHandle to the device context of the destination window.

◆ Draw() [2/20]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

void eVision.EasyDeepOCR.ETextLine.Draw ( eVision.EDrawAdapter 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 eVision.EasyDeepOCR.ETextLine.ExtractMiniature ( eVision.EBaseROI roi)

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

◆ Load() [1/2]

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

Loads the ETextLine.

Parameters
serializer

◆ Load() [2/2]

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

Loads the ETextLine.

Parameters
pathPath where to save the ETextLine.

◆ Match()

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

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

◆ Save() [1/2]

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

Saves the ETextLine.

Parameters
serializer

◆ Save() [2/2]

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

Saves the ETextLine.

Parameters
pathPath where to save the ETextLine.

◆ SplitInWords()

eVision.EasyDeepOCR.ETextLine[] eVision.EasyDeepOCR.ETextLine.SplitInWords ( )

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

Property Documentation

◆ IsRegex

bool eVision.EasyDeepOCR.ETextLine.IsRegex
getset

States whether the ETextLine.String is a regular expression or not. This flag is used only when converting this ETextLine to an EasyDeepOCR.ESampleTextLine. This property is a workaround to be able to create ESamples with regex from the public API, for testing purpuses.

◆ Rectangle

eVision.ERectangle eVision.EasyDeepOCR.ETextLine.Rectangle
getset

Text line box.

◆ Score

float eVision.EasyDeepOCR.ETextLine.Score
get

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.

◆ String

string eVision.EasyDeepOCR.ETextLine.String
getset

Text line string.