Holds all information related to a character database. More...
Public Member Functions | |
| None | __init__ (self) |
| Constructs an eVision.EOCR2CharacterDatabase context. | |
| None | __init__ (self, eVision.EOCR2CharacterDatabase other) |
| Constructs an eVision.EOCR2CharacterDatabase context. | |
| None | AddCharacter (self, eVision.EOCR2DatabaseCharacter character) |
| Adds a single character to the database. | |
| None | AddCharacter (self, eVision.EOCR2Char character) |
| Adds a single character to the database. | |
| None | AddCharacters (self, list[eVision._eVision.EOCR2DatabaseCharacter] characters) |
| Add characters to the database. | |
| None | AddCharacters (self, str path) |
| Add characters to the database. | |
| None | AddCharacters (self, str path, eVision.EasyOCR2CharacterFilter filter) |
| Add characters to the database. | |
| None | AddCharacters (self, eVision.EOCR2Word word) |
| Add characters to the database. | |
| None | AddCharacters (self, eVision.EOCR2Line line) |
| Add characters to the database. | |
| None | AddCharacters (self, eVision.EOCR2Text text) |
| Add characters to the database. | |
| None | RemoveCharacter (self, int index) |
| Removes a character from the database. | |
| eVision.EOCR2DatabaseCharacter | GetCharacter (self, int index) |
| Returns a character from the database. | |
| list[eVision._eVision.EOCR2CharacterCluster] | ClusterDatabase (self, int nClusters) |
| Performs a clustering on the database. | |
| None | AddCluster (self, eVision.EOCR2CharacterCluster cluster) |
| Adds the characters from an eVision.EOCR2CharacterCluster to the database. | |
| None | AddClusters (self, list[eVision._eVision.EOCR2CharacterCluster] clusters) |
| Adds the characters from a vector of eVision.EOCR2CharacterCluster objects to the database. | |
| None | ClearDatabase (self) |
| Clears the database. | |
| None | Load (self, str path) |
| Load the character database from disk. | |
| None | Load (self, eVision.ESerializer|None serializer) |
| Load the character database from disk. | |
| None | Save (self, str path) |
| Saves the character database to disk. | |
| None | Save (self, eVision.ESerializer|None serializer) |
| Saves the character database to disk. | |
| list[eVision._eVision.EOCR2DatabaseCharacter] | Characters (self) |
| Returns all character from the database. | |
Holds all information related to a character database.
Remarks:
License(s): None
| None eVision.EOCR2CharacterDatabase.__init__ | ( | self | ) |
Constructs an eVision.EOCR2CharacterDatabase context.
| None eVision.EOCR2CharacterDatabase.__init__ | ( | self, | |
| eVision.EOCR2CharacterDatabase | other ) |
Constructs an eVision.EOCR2CharacterDatabase context.
| other | eVision.EOCR2CharacterDatabase object to be copied. |
| None eVision.EOCR2CharacterDatabase.AddCharacter | ( | self, | |
| eVision.EOCR2Char | character ) |
Adds a single character to the database.
| character | The eVision.EOCR2DatabaseCharacter or eVision.EOCR2Char to be added to the database. |
| None eVision.EOCR2CharacterDatabase.AddCharacter | ( | self, | |
| eVision.EOCR2DatabaseCharacter | character ) |
Adds a single character to the database.
| character | The eVision.EOCR2DatabaseCharacter or eVision.EOCR2Char to be added to the database. |
| None eVision.EOCR2CharacterDatabase.AddCharacters | ( | self, | |
| eVision.EOCR2Line | line ) |
Add characters to the database.
| line | An eVision.EOCR2Line object to be added to this database. |
| None eVision.EOCR2CharacterDatabase.AddCharacters | ( | self, | |
| eVision.EOCR2Text | text ) |
Add characters to the database.
| text | An eVision.EOCR2Text object to be added to this database. |
| None eVision.EOCR2CharacterDatabase.AddCharacters | ( | self, | |
| eVision.EOCR2Word | word ) |
Add characters to the database.
| word | An eVision.EOCR2Word object to be added to this database. |
| None eVision.EOCR2CharacterDatabase.AddCharacters | ( | self, | |
| list[eVision._eVision.EOCR2DatabaseCharacter] | characters ) |
Add characters to the database.
| characters | A vector of eVision.EOCR2DatabaseCharacter objects to be added to this database. |
| None eVision.EOCR2CharacterDatabase.AddCharacters | ( | self, | |
| str | path ) |
Add characters to the database.
| path | The path on disk of the character database to be added to this database. |
| None eVision.EOCR2CharacterDatabase.AddCharacters | ( | self, | |
| str | path, | ||
| eVision.EasyOCR2CharacterFilter | filter ) |
Add characters to the database.
| path | The path on disk of the character database to be added to this database. |
| filter | An eVision.EasyOCR2CharacterFilter that tells the method which subset of the character-set should be loaded. |
| None eVision.EOCR2CharacterDatabase.AddCluster | ( | self, | |
| eVision.EOCR2CharacterCluster | cluster ) |
Adds the characters from an eVision.EOCR2CharacterCluster to the database.
Remarks:
The characters in the cluster should be checked and assigned their correct code before adding them to the database
| cluster | The eVision.EOCR2CharacterCluster to be added to the database. |
| None eVision.EOCR2CharacterDatabase.AddClusters | ( | self, | |
| list[eVision._eVision.EOCR2CharacterCluster] | clusters ) |
Adds the characters from a vector of eVision.EOCR2CharacterCluster objects to the database.
Remarks:
The characters in the clusters should be checked and assigned their correct code before adding them to the database
| clusters | The vector of eVision.EOCR2CharacterCluster objects to be added to the database. |
| list[eVision._eVision.EOCR2DatabaseCharacter] eVision.EOCR2CharacterDatabase.Characters | ( | self | ) |
Returns all character from the database.
| None eVision.EOCR2CharacterDatabase.ClearDatabase | ( | self | ) |
Clears the database.
| list[eVision._eVision.EOCR2CharacterCluster] eVision.EOCR2CharacterDatabase.ClusterDatabase | ( | self, | |
| int | nClusters ) |
Performs a clustering on the database.
| nClusters | The amount of clusters to be generated. |
| eVision.EOCR2DatabaseCharacter eVision.EOCR2CharacterDatabase.GetCharacter | ( | self, | |
| int | index ) |
Returns a character from the database.
| index | The index of the character to be returned. |
| None eVision.EOCR2CharacterDatabase.Load | ( | self, | |
| eVision.ESerializer | None | serializer ) |
Load the character database from disk.
| serializer | The serializer. |
| None eVision.EOCR2CharacterDatabase.Load | ( | self, | |
| str | path ) |
Load the character database from disk.
| path | The path of the file. |
| None eVision.EOCR2CharacterDatabase.RemoveCharacter | ( | self, | |
| int | index ) |
Removes a character from the database.
| index | The index of the character to be removed. |
| None eVision.EOCR2CharacterDatabase.Save | ( | self, | |
| eVision.ESerializer | None | serializer ) |
Saves the character database to disk.
| serializer | The serializer. |
| None eVision.EOCR2CharacterDatabase.Save | ( | self, | |
| str | path ) |
Saves the character database to disk.
| path | The path of the file. |