Holds all information related to a character database. More...
#include <eVision/EasyOcr/EasyOCR2/EOCR2CharacterDatabase.h>
Public Member Functions | |
| EOCR2CharacterDatabase () | |
| Constructs an EOCR2CharacterDatabase context. | |
| EOCR2CharacterDatabase (const eVision::EOCR2CharacterDatabase &other) | |
| Constructs an EOCR2CharacterDatabase context. | |
| virtual | ~EOCR2CharacterDatabase () throw () |
| eVision::EOCR2CharacterDatabase & | operator= (const eVision::EOCR2CharacterDatabase &other) |
| Copies all the data from another EOCR2CharacterDatabase object into the current EOCR2CharacterDatabase object. | |
| void | AddCharacter (const eVision::EOCR2DatabaseCharacter &character) |
| Adds a single character to the database. | |
| void | AddCharacter (const eVision::EOCR2Char &character) |
| Adds a single character to the database. | |
| void | AddCharacters (const std::vector< eVision::EOCR2DatabaseCharacter > &characters) |
| Add characters to the database. | |
| void | AddCharacters (const std::string &path) |
| Add characters to the database. | |
| void | AddCharacters (const std::string &path, eVision::EasyOCR2CharacterFilter filter) |
| Add characters to the database. | |
| void | AddCharacters (const eVision::EOCR2Word &word) |
| Add characters to the database. | |
| void | AddCharacters (const eVision::EOCR2Line &line) |
| Add characters to the database. | |
| void | AddCharacters (const eVision::EOCR2Text &text) |
| Add characters to the database. | |
| void | RemoveCharacter (int32_t index) |
| Removes a character from the database. | |
| eVision::EOCR2DatabaseCharacter | GetCharacter (int32_t index) |
| Returns a character from the database. | |
| std::vector< eVision::EOCR2DatabaseCharacter > | GetCharacters () |
| Returns all character from the database. | |
| std::vector< eVision::EOCR2CharacterCluster > | ClusterDatabase (int32_t nClusters) const |
| Performs a clustering on the database. | |
| void | AddCluster (const eVision::EOCR2CharacterCluster &cluster) |
| Adds the characters from an EOCR2CharacterCluster to the database. | |
| void | AddClusters (const std::vector< eVision::EOCR2CharacterCluster > &clusters) |
| Adds the characters from a vector of EOCR2CharacterCluster objects to the database. | |
| void | ClearDatabase () |
| Clears the database. | |
| void | Load (const std::string &path) |
| Load the character database from disk. | |
| void | Load (eVision::ESerializer *serializer) |
| Load the character database from disk. | |
| void | Save (const std::string &path) |
| Saves the character database to disk. | |
| void | Save (eVision::ESerializer *serializer) |
| Saves the character database to disk. | |
| EOCR2CharacterDatabase (CppWrapperInternal::InternalConstructor) | |
Public Attributes | |
| CppWrapperInternal::WrappedClass | wrappedClass_ |
Holds all information related to a character database.
License(s): None
| eVision::EOCR2CharacterDatabase::EOCR2CharacterDatabase | ( | ) |
Constructs an EOCR2CharacterDatabase context.
| eVision::EOCR2CharacterDatabase::EOCR2CharacterDatabase | ( | const eVision::EOCR2CharacterDatabase & | other | ) |
Constructs an EOCR2CharacterDatabase context.
| other | EOCR2CharacterDatabase object to be copied. |
|
virtual | ||||||||||||
| eVision::EOCR2CharacterDatabase::EOCR2CharacterDatabase | ( | CppWrapperInternal::InternalConstructor | ) |
| void eVision::EOCR2CharacterDatabase::AddCharacter | ( | const eVision::EOCR2Char & | character | ) |
Adds a single character to the database.
| character | The EOCR2DatabaseCharacter or EOCR2Char to be added to the database. |
| void eVision::EOCR2CharacterDatabase::AddCharacter | ( | const eVision::EOCR2DatabaseCharacter & | character | ) |
Adds a single character to the database.
| character | The EOCR2DatabaseCharacter or EOCR2Char to be added to the database. |
| void eVision::EOCR2CharacterDatabase::AddCharacters | ( | const eVision::EOCR2Line & | line | ) |
Add characters to the database.
| line | An EOCR2Line object to be added to this database. |
| void eVision::EOCR2CharacterDatabase::AddCharacters | ( | const eVision::EOCR2Text & | text | ) |
Add characters to the database.
| text | An EOCR2Text object to be added to this database. |
| void eVision::EOCR2CharacterDatabase::AddCharacters | ( | const eVision::EOCR2Word & | word | ) |
Add characters to the database.
| word | An EOCR2Word object to be added to this database. |
| void eVision::EOCR2CharacterDatabase::AddCharacters | ( | const std::string & | path | ) |
Add characters to the database.
| path | The path on disk of the character database to be added to this database. |
| void eVision::EOCR2CharacterDatabase::AddCharacters | ( | const std::string & | 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 EasyOCR2CharacterFilter that tells the method which subset of the character-set should be loaded. |
| void eVision::EOCR2CharacterDatabase::AddCharacters | ( | const std::vector< eVision::EOCR2DatabaseCharacter > & | characters | ) |
Add characters to the database.
| characters | A vector of EOCR2DatabaseCharacter objects to be added to this database. |
| void eVision::EOCR2CharacterDatabase::AddCluster | ( | const eVision::EOCR2CharacterCluster & | cluster | ) |
Adds the characters from an EOCR2CharacterCluster to the database.
| cluster | The 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
| void eVision::EOCR2CharacterDatabase::AddClusters | ( | const std::vector< eVision::EOCR2CharacterCluster > & | clusters | ) |
Adds the characters from a vector of EOCR2CharacterCluster objects to the database.
| clusters | The 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
| void eVision::EOCR2CharacterDatabase::ClearDatabase | ( | ) |
Clears the database.
| std::vector< eVision::EOCR2CharacterCluster > eVision::EOCR2CharacterDatabase::ClusterDatabase | ( | int32_t | nClusters | ) | const |
Performs a clustering on the database.
| nClusters | The amount of clusters to be generated. |
| eVision::EOCR2DatabaseCharacter eVision::EOCR2CharacterDatabase::GetCharacter | ( | int32_t | index | ) |
Returns a character from the database.
| index | The index of the character to be returned. |
| std::vector< eVision::EOCR2DatabaseCharacter > eVision::EOCR2CharacterDatabase::GetCharacters | ( | ) |
Returns all character from the database.
| void eVision::EOCR2CharacterDatabase::Load | ( | const std::string & | path | ) |
Load the character database from disk.
| path | The path of the file. |
| void eVision::EOCR2CharacterDatabase::Load | ( | eVision::ESerializer * | serializer | ) |
Load the character database from disk.
| serializer | The serializer. |
| eVision::EOCR2CharacterDatabase & eVision::EOCR2CharacterDatabase::operator= | ( | const eVision::EOCR2CharacterDatabase & | other | ) |
Copies all the data from another EOCR2CharacterDatabase object into the current EOCR2CharacterDatabase object.
| other | EOCR2CharacterDatabase object to be copied |
| void eVision::EOCR2CharacterDatabase::RemoveCharacter | ( | int32_t | index | ) |
Removes a character from the database.
| index | The index of the character to be removed. |
| void eVision::EOCR2CharacterDatabase::Save | ( | const std::string & | path | ) |
Saves the character database to disk.
| path | The path of the file. |
| void eVision::EOCR2CharacterDatabase::Save | ( | eVision::ESerializer * | serializer | ) |
Saves the character database to disk.
| serializer | The serializer. |
| CppWrapperInternal::WrappedClass eVision::EOCR2CharacterDatabase::wrappedClass_ |