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

eVision.ETopology aims to restrict the formats of the texts that will be returned by an eVision.EasyDeepOCR.ETextReader. More...

Public Member Functions

None __init__ (self)
 Creates a eVision.ETopology.
None __init__ (self, list[eVision._eVision.ETopologyLine] lines)
 Creates a eVision.ETopology.
None __init__ (self, eVision.ETopology other)
 Creates a eVision.ETopology.
bool IsEqual (self, eVision.ETopology other)
 Checks if this eVision.ETopology instance is strictly equal to another eVision.ETopology instance.
None Load (self, str path)
 Loads the eVision.ETopology.
None Load (self, eVision.ESerializer|None serializer)
 Loads the eVision.ETopology.
None Save (self, str path)
 Saves the eVision.ETopology.
None Save (self, eVision.ESerializer|None serializer)
 Saves the eVision.ETopology.
bool Match (self, str text)
 Returns true if the argument complies with the eVision.ETopology.
bool Match (self, eVision.EasyDeepOCR.EText text)
 Returns true if the argument complies with the eVision.ETopology.
bool Match (self, eVision.EasyDeepOCR.ESample sample)
 Returns true if the argument complies with the eVision.ETopology.
bool Match (self, eVision.EasyDeepOCR.ESampleList samples)
 Returns true if the argument complies with the eVision.ETopology.
list[eVision._eVision.ETopologyLine] TopologyLines (self)
 eVision.ETopology lines.
 TopologyLines (self, list[eVision._eVision.ETopologyLine] value)
 eVision.ETopology lines.

Detailed Description

eVision.ETopology aims to restrict the formats of the texts that will be returned by an eVision.EasyDeepOCR.ETextReader.

A eVision.ETopology is composed of a list of eVision.ETopologyLine. Each entry in the list refers to the corresponding line in a text. Texts with different number of lines will therefore never be matched by the same eVision.ETopology.

Remarks:

License(s): BasicTypes

Constructor & Destructor Documentation

◆ __init__() [1/3]

None eVision.ETopology.__init__ ( self)

Creates a eVision.ETopology.

◆ __init__() [2/3]

None eVision.ETopology.__init__ ( self,
list[eVision._eVision.ETopologyLine] lines )

Creates a eVision.ETopology.

Parameters
linesLines of the eVision.ETopology.

◆ __init__() [3/3]

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

Creates a eVision.ETopology.

Parameters
otherAnother eVision.ETopology to be copied in the new eVision.ETopology.

Member Function Documentation

◆ IsEqual()

bool eVision.ETopology.IsEqual ( self,
eVision.ETopology other )

Checks if this eVision.ETopology instance is strictly equal to another eVision.ETopology instance.

Parameters
otherReference to the eVision.ETopology instance to compare with

◆ Load() [1/2]

None eVision.ETopology.Load ( self,
eVision.ESerializer | None serializer )

Loads the eVision.ETopology.

Parameters
serializer-

◆ Load() [2/2]

None eVision.ETopology.Load ( self,
str path )

Loads the eVision.ETopology.

Parameters
pathPath where to save the eVision.ETopology.

◆ Match() [1/4]

bool eVision.ETopology.Match ( self,
eVision.EasyDeepOCR.ESample sample )

Returns true if the argument complies with the eVision.ETopology.

Parameters
sampleeVision.EasyDeepOCR.ESample to be checked.

◆ Match() [2/4]

bool eVision.ETopology.Match ( self,
eVision.EasyDeepOCR.ESampleList samples )

Returns true if the argument complies with the eVision.ETopology.

Parameters
sampleseVision.EasyDeepOCR.ESampleList to be checked.

◆ Match() [3/4]

bool eVision.ETopology.Match ( self,
eVision.EasyDeepOCR.EText text )

Returns true if the argument complies with the eVision.ETopology.

Parameters
texteVision.EasyDeepOCR.EText or text string to be checked.

◆ Match() [4/4]

bool eVision.ETopology.Match ( self,
str text )

Returns true if the argument complies with the eVision.ETopology.

Parameters
texteVision.EasyDeepOCR.EText or text string to be checked.

◆ Save() [1/2]

None eVision.ETopology.Save ( self,
eVision.ESerializer | None serializer )

Saves the eVision.ETopology.

Parameters
serializer-

◆ Save() [2/2]

None eVision.ETopology.Save ( self,
str path )

Saves the eVision.ETopology.

Parameters
pathPath where to save the eVision.ETopology.

◆ TopologyLines() [1/2]

list[eVision._eVision.ETopologyLine] eVision.ETopology.TopologyLines ( self)

◆ TopologyLines() [2/2]

eVision.ETopology.TopologyLines ( self,
list[eVision._eVision.ETopologyLine] value )