Metrics for EDeepOCRTool. More...
#include <eVision/EasyDeepLearning/EasyDeepOCR/EDeepOCRToolMetrics.h>
Public Member Functions | |
| EDeepOCRToolMetrics () | |
| Constructs a EDeepOCRToolMetrics. | |
| EDeepOCRToolMetrics (const eVision::EasyDeepLearning::EDeepOCRToolMetrics &other) | |
| Copy constructor of a EDeepOCRToolMetrics object. | |
| virtual | ~EDeepOCRToolMetrics () throw () |
| eVision::EasyDeepLearning::EDeepOCRToolMetrics & | operator= (const eVision::EasyDeepLearning::EDeepOCRToolMetrics &other) |
| Assignment operator. | |
| eVision::EasyDeepLearning::EDeepOCRModel | GetModel () const |
| The type of model for this result. | |
| void | AddResult (const eVision::EasyDeepLearning::EDeepOCRToolResult &result) |
| Add a result to the metrics. | |
| void | RemoveResult (const eVision::EasyDeepLearning::EDeepOCRToolResult &result) |
| Removes a result from the metrics. | |
| void | AddResult (float loss) |
| Adds a loss result to the metrics. | |
| void | RemoveResult (float loss) |
| Removes a loss result from the metrics. | |
| float | GetError () const |
| Error computed during training. | |
| bool | IsValid () const |
| Whether the metrics contains data or not. | |
| float | GetLocationFScore () const |
| F Score of the location (harmonic mean of the precision and recall). | |
| float | GetLocationRecall () const |
| Recall of the location (proportion of ground truth text that are correctly detected). | |
| float | GetLocationPrecision () const |
| Precision of the location (proportion of detected texts that are correctly detected). | |
| const eVision::EasyDeepLearning::EClassificationMetrics & | GetOrientationMetrics () const |
| Get the metrics for the orientation. | |
| float | GetRecognitionImageAccuracy () const |
| Get the image-wise accuracy (mean per-image accuracy). | |
| float | GetRecognitionWordAccuracy () const |
| Get the word-wise accuracy (share of words that were correctly read in all images). Biased towards images containing a large number of words. | |
| float | GetLocationThreshold () const |
| Location threshold for which to compute the metrics. | |
| void | SetLocationThreshold (float val) |
| Location threshold for which to compute the metrics. | |
| float | ComputeLocationThresholdMaximizingRecall () const |
| Computes the location threshold that will maximize the EDeepOCRToolMetrics::GetLocationRecall. | |
| float | ComputeLocationThresholdMaximizingFScore () const |
| Computes the location threshold that will maximize the EDeepOCRToolMetrics::GetLocationFScore. | |
| float | ComputeLocationThresholdMaximizingPrecision () const |
| Computes the location threshold that will maximize the EDeepOCRToolMetrics::GetLocationPrecision. | |
| void | Load (const std::string &path) |
| Loads the EDeepOCRToolMetrics. The given ESerializer must have been created for reading. | |
| void | Load (eVision::ESerializer *serializer) |
| Loads the EDeepOCRToolMetrics. The given ESerializer must have been created for reading. | |
| void | Save (const std::string &path) |
| Saves the EDeepOCRToolMetrics. The given ESerializer must have been created for writing. | |
| void | Save (eVision::ESerializer *serializer) |
| Saves the EDeepOCRToolMetrics. The given ESerializer must have been created for writing. | |
| EDeepOCRToolMetrics (CppWrapperInternal::InternalConstructor) | |
Public Attributes | |
| CppWrapperInternal::WrappedClass | wrappedClass_ |
Metrics for EDeepOCRTool.
License(s): EasyDeepOCR
| eVision::EasyDeepLearning::EDeepOCRToolMetrics::EDeepOCRToolMetrics | ( | ) |
Constructs a EDeepOCRToolMetrics.
| eVision::EasyDeepLearning::EDeepOCRToolMetrics::EDeepOCRToolMetrics | ( | const eVision::EasyDeepLearning::EDeepOCRToolMetrics & | other | ) |
Copy constructor of a EDeepOCRToolMetrics object.
| other | Reference to the EDeepOCRToolMetrics object that should be copied |
|
virtual | ||||||||||||
| eVision::EasyDeepLearning::EDeepOCRToolMetrics::EDeepOCRToolMetrics | ( | CppWrapperInternal::InternalConstructor | ) |
| void eVision::EasyDeepLearning::EDeepOCRToolMetrics::AddResult | ( | const eVision::EasyDeepLearning::EDeepOCRToolResult & | result | ) |
Add a result to the metrics.
| result | Result to add to the metrics. |
| void eVision::EasyDeepLearning::EDeepOCRToolMetrics::AddResult | ( | float | loss | ) |
Adds a loss result to the metrics.
| loss | Loss to add to the metrics. |
| float eVision::EasyDeepLearning::EDeepOCRToolMetrics::ComputeLocationThresholdMaximizingFScore | ( | ) | const |
Computes the location threshold that will maximize the EDeepOCRToolMetrics::GetLocationFScore.
| float eVision::EasyDeepLearning::EDeepOCRToolMetrics::ComputeLocationThresholdMaximizingPrecision | ( | ) | const |
Computes the location threshold that will maximize the EDeepOCRToolMetrics::GetLocationPrecision.
| float eVision::EasyDeepLearning::EDeepOCRToolMetrics::ComputeLocationThresholdMaximizingRecall | ( | ) | const |
Computes the location threshold that will maximize the EDeepOCRToolMetrics::GetLocationRecall.
| float eVision::EasyDeepLearning::EDeepOCRToolMetrics::GetError | ( | ) | const |
Error computed during training.
| float eVision::EasyDeepLearning::EDeepOCRToolMetrics::GetLocationFScore | ( | ) | const |
F Score of the location (harmonic mean of the precision and recall).
| float eVision::EasyDeepLearning::EDeepOCRToolMetrics::GetLocationPrecision | ( | ) | const |
Precision of the location (proportion of detected texts that are correctly detected).
| float eVision::EasyDeepLearning::EDeepOCRToolMetrics::GetLocationRecall | ( | ) | const |
Recall of the location (proportion of ground truth text that are correctly detected).
| float eVision::EasyDeepLearning::EDeepOCRToolMetrics::GetLocationThreshold | ( | ) | const |
Location threshold for which to compute the metrics.
| eVision::EasyDeepLearning::EDeepOCRModel eVision::EasyDeepLearning::EDeepOCRToolMetrics::GetModel | ( | ) | const |
The type of model for this result.
| const eVision::EasyDeepLearning::EClassificationMetrics & eVision::EasyDeepLearning::EDeepOCRToolMetrics::GetOrientationMetrics | ( | ) | const |
Get the metrics for the orientation.
| float eVision::EasyDeepLearning::EDeepOCRToolMetrics::GetRecognitionImageAccuracy | ( | ) | const |
Get the image-wise accuracy (mean per-image accuracy).
| float eVision::EasyDeepLearning::EDeepOCRToolMetrics::GetRecognitionWordAccuracy | ( | ) | const |
Get the word-wise accuracy (share of words that were correctly read in all images). Biased towards images containing a large number of words.
| bool eVision::EasyDeepLearning::EDeepOCRToolMetrics::IsValid | ( | ) | const |
Whether the metrics contains data or not.
| void eVision::EasyDeepLearning::EDeepOCRToolMetrics::Load | ( | const std::string & | path | ) |
Loads the EDeepOCRToolMetrics. The given ESerializer must have been created for reading.
| path | The file path. |
| void eVision::EasyDeepLearning::EDeepOCRToolMetrics::Load | ( | eVision::ESerializer * | serializer | ) |
Loads the EDeepOCRToolMetrics. The given ESerializer must have been created for reading.
| serializer | The serializer. |
| eVision::EasyDeepLearning::EDeepOCRToolMetrics & eVision::EasyDeepLearning::EDeepOCRToolMetrics::operator= | ( | const eVision::EasyDeepLearning::EDeepOCRToolMetrics & | other | ) |
Assignment operator.
| other | Reference to the EDeepOCRToolMetrics object that should be copied |
| void eVision::EasyDeepLearning::EDeepOCRToolMetrics::RemoveResult | ( | const eVision::EasyDeepLearning::EDeepOCRToolResult & | result | ) |
Removes a result from the metrics.
| result | Result to remove from the metrics. |
| void eVision::EasyDeepLearning::EDeepOCRToolMetrics::RemoveResult | ( | float | loss | ) |
Removes a loss result from the metrics.
| loss | Loss result to remove from the metrics. |
| void eVision::EasyDeepLearning::EDeepOCRToolMetrics::Save | ( | const std::string & | path | ) |
Saves the EDeepOCRToolMetrics. The given ESerializer must have been created for writing.
| path | The file path. |
| void eVision::EasyDeepLearning::EDeepOCRToolMetrics::Save | ( | eVision::ESerializer * | serializer | ) |
Saves the EDeepOCRToolMetrics. The given ESerializer must have been created for writing.
| serializer | The serializer. |
| void eVision::EasyDeepLearning::EDeepOCRToolMetrics::SetLocationThreshold | ( | float | val | ) |
Location threshold for which to compute the metrics.
| CppWrapperInternal::WrappedClass eVision::EasyDeepLearning::EDeepOCRToolMetrics::wrappedClass_ |