eVision .NET API
Loading...
Searching...
No Matches
eVision.EOCR2CharacterDatabase Class Reference

Holds all information related to a character database. More...

Inheritance diagram for eVision.EOCR2CharacterDatabase:
Collaboration diagram for eVision.EOCR2CharacterDatabase:

Public Member Functions

 EOCR2CharacterDatabase ()
 Constructs an EOCR2CharacterDatabase context.
 EOCR2CharacterDatabase (eVision.EOCR2CharacterDatabase other)
 Constructs an EOCR2CharacterDatabase context.
void AddCharacter (eVision.EOCR2DatabaseCharacter character)
 Adds a single character to the database.
void AddCharacter (eVision.EOCR2Char character)
 Adds a single character to the database.
void AddCharacters (eVision.EOCR2DatabaseCharacter[] characters)
 Add characters to the database.
void AddCharacters (string path)
 Add characters to the database.
void AddCharacters (string path, eVision.EasyOCR2CharacterFilter filter)
 Add characters to the database.
void AddCharacters (eVision.EOCR2Word word)
 Add characters to the database.
void AddCharacters (eVision.EOCR2Line line)
 Add characters to the database.
void AddCharacters (eVision.EOCR2Text text)
 Add characters to the database.
void RemoveCharacter (int index)
 Removes a character from the database.
eVision.EOCR2DatabaseCharacter GetCharacter (int index)
 Returns a character from the database.
eVision.EOCR2CharacterCluster[] ClusterDatabase (int nClusters)
 Performs a clustering on the database.
void AddCluster (eVision.EOCR2CharacterCluster cluster)
 Adds the characters from an EOCR2CharacterCluster to the database.
void AddClusters (eVision.EOCR2CharacterCluster[] clusters)
 Adds the characters from a vector of EOCR2CharacterCluster objects to the database.
void ClearDatabase ()
 Clears the database.
void Load (string path)
 Load the character database from disk.
void Load (eVision.ESerializer serializer)
 Load the character database from disk.
void Save (string path)
 Saves the character database to disk.
void Save (eVision.ESerializer serializer)
 Saves the character database to disk.

Properties

eVision.EOCR2DatabaseCharacter[] Characters [get]
 Returns all character from the database.

Detailed Description

Holds all information related to a character database.

License(s): None

Constructor & Destructor Documentation

◆ EOCR2CharacterDatabase() [1/2]

eVision.EOCR2CharacterDatabase.EOCR2CharacterDatabase ( )

Constructs an EOCR2CharacterDatabase context.

◆ EOCR2CharacterDatabase() [2/2]

eVision.EOCR2CharacterDatabase.EOCR2CharacterDatabase ( eVision.EOCR2CharacterDatabase other)

Constructs an EOCR2CharacterDatabase context.

Parameters
otherEOCR2CharacterDatabase object to be copied.

Member Function Documentation

◆ AddCharacter() [1/2]

void eVision.EOCR2CharacterDatabase.AddCharacter ( eVision.EOCR2Char character)

Adds a single character to the database.

Parameters
characterThe EOCR2DatabaseCharacter or EOCR2Char to be added to the database.

◆ AddCharacter() [2/2]

void eVision.EOCR2CharacterDatabase.AddCharacter ( eVision.EOCR2DatabaseCharacter character)

Adds a single character to the database.

Parameters
characterThe EOCR2DatabaseCharacter or EOCR2Char to be added to the database.

◆ AddCharacters() [1/6]

void eVision.EOCR2CharacterDatabase.AddCharacters ( eVision.EOCR2DatabaseCharacter[] characters)

Add characters to the database.

Parameters
charactersA vector of EOCR2DatabaseCharacter objects to be added to this database.

◆ AddCharacters() [2/6]

void eVision.EOCR2CharacterDatabase.AddCharacters ( eVision.EOCR2Line line)

Add characters to the database.

Parameters
lineAn EOCR2Line object to be added to this database.

◆ AddCharacters() [3/6]

void eVision.EOCR2CharacterDatabase.AddCharacters ( eVision.EOCR2Text text)

Add characters to the database.

Parameters
textAn EOCR2Text object to be added to this database.

◆ AddCharacters() [4/6]

void eVision.EOCR2CharacterDatabase.AddCharacters ( eVision.EOCR2Word word)

Add characters to the database.

Parameters
wordAn EOCR2Word object to be added to this database.

◆ AddCharacters() [5/6]

void eVision.EOCR2CharacterDatabase.AddCharacters ( string path)

Add characters to the database.

Parameters
pathThe path on disk of the character database to be added to this database.

◆ AddCharacters() [6/6]

void eVision.EOCR2CharacterDatabase.AddCharacters ( string path,
eVision.EasyOCR2CharacterFilter filter )

Add characters to the database.

Parameters
pathThe path on disk of the character database to be added to this database.
filterAn EasyOCR2CharacterFilter that tells the method which subset of the character-set should be loaded.

◆ AddCluster()

void eVision.EOCR2CharacterDatabase.AddCluster ( eVision.EOCR2CharacterCluster cluster)

Adds the characters from an EOCR2CharacterCluster to the database.

Parameters
clusterThe EOCR2CharacterCluster to be added to the database.

The characters in the cluster should be checked and assigned their correct code before adding them to the database

◆ AddClusters()

void eVision.EOCR2CharacterDatabase.AddClusters ( eVision.EOCR2CharacterCluster[] clusters)

Adds the characters from a vector of EOCR2CharacterCluster objects to the database.

Parameters
clustersThe vector of EOCR2CharacterCluster objects to be added to the database.

The characters in the clusters should be checked and assigned their correct code before adding them to the database

◆ ClearDatabase()

void eVision.EOCR2CharacterDatabase.ClearDatabase ( )

Clears the database.

◆ ClusterDatabase()

eVision.EOCR2CharacterCluster[] eVision.EOCR2CharacterDatabase.ClusterDatabase ( int nClusters)

Performs a clustering on the database.

Parameters
nClustersThe amount of clusters to be generated.

◆ GetCharacter()

eVision.EOCR2DatabaseCharacter eVision.EOCR2CharacterDatabase.GetCharacter ( int index)

Returns a character from the database.

Parameters
indexThe index of the character to be returned.

◆ Load() [1/2]

void eVision.EOCR2CharacterDatabase.Load ( eVision.ESerializer serializer)

Load the character database from disk.

Parameters
serializerThe serializer.

◆ Load() [2/2]

void eVision.EOCR2CharacterDatabase.Load ( string path)

Load the character database from disk.

Parameters
pathThe path of the file.

◆ RemoveCharacter()

void eVision.EOCR2CharacterDatabase.RemoveCharacter ( int index)

Removes a character from the database.

Parameters
indexThe index of the character to be removed.

◆ Save() [1/2]

void eVision.EOCR2CharacterDatabase.Save ( eVision.ESerializer serializer)

Saves the character database to disk.

Parameters
serializerThe serializer.

◆ Save() [2/2]

void eVision.EOCR2CharacterDatabase.Save ( string path)

Saves the character database to disk.

Parameters
pathThe path of the file.

Property Documentation

◆ Characters

eVision.EOCR2DatabaseCharacter [] eVision.EOCR2CharacterDatabase.Characters
get

Returns all character from the database.