Trains the EasyDeepOCR Deep Learning models. More...


Public Member Functions | |
| None | __init__ (self) |
| Constructs a eVision.EasyDeepLearning.EDeepOCRTool. | |
| None | __init__ (self, eVision.EasyDeepLearning.EDeepOCRModel model) |
| Constructs a eVision.EasyDeepLearning.EDeepOCRTool. | |
| None | __init__ (self, eVision.EasyDeepLearning.EDeepOCRTool other) |
| Copy constructor of a eVision.EasyDeepLearning.EDeepOCRTool object. | |
| None | SerializeSettings (self, eVision.ESerializer|None serializer) |
| Serializes the eVision.EasyDeepLearning.EDeepOCRTool settings. | |
| None | Train (self, eVision.EasyDeepLearning.EDataset dataset) |
| Trains the eVision.EasyDeepLearning.EDeepOCRTool with the given dataset for the specified number of iterations. | |
| None | Train (self, eVision.EasyDeepLearning.EDataset dataset, eVision.EasyDeepLearning.EDataAugmentation dataAugmentation) |
| Trains the eVision.EasyDeepLearning.EDeepOCRTool with the given dataset for the specified number of iterations. | |
| None | Train (self, eVision.EasyDeepLearning.EDataset trainingDataset, eVision.EasyDeepLearning.EDataset validationDataset) |
| Trains the eVision.EasyDeepLearning.EDeepOCRTool with the given dataset for the specified number of iterations. | |
| None | Train (self, eVision.EasyDeepLearning.EDataset trainingDataset, eVision.EasyDeepLearning.EDataset validationDataset, eVision.EasyDeepLearning.EDataAugmentation dataAugmentation) |
| Trains the eVision.EasyDeepLearning.EDeepOCRTool with the given dataset for the specified number of iterations. | |
| None | Train (self, eVision.EasyDeepLearning.EDataset dataset, int iterations) |
| Trains the eVision.EasyDeepLearning.EDeepOCRTool with the given dataset for the specified number of iterations. | |
| None | Train (self, eVision.EasyDeepLearning.EDataset dataset, eVision.EasyDeepLearning.EDataAugmentation dataAugmentation, int iterations) |
| Trains the eVision.EasyDeepLearning.EDeepOCRTool with the given dataset for the specified number of iterations. | |
| None | Train (self, eVision.EasyDeepLearning.EDataset trainingDataset, eVision.EasyDeepLearning.EDataset validationDataset, int iterations) |
| Trains the eVision.EasyDeepLearning.EDeepOCRTool with the given dataset for the specified number of iterations. | |
| None | Train (self, eVision.EasyDeepLearning.EDataset trainingDataset, eVision.EasyDeepLearning.EDataset validationDataset, eVision.EasyDeepLearning.EDataAugmentation dataAugmentation, int iterations) |
| Trains the eVision.EasyDeepLearning.EDeepOCRTool with the given dataset for the specified number of iterations. | |
| eVision.EasyDeepLearning.EDeepOCRToolMetrics | GetTrainingMetrics (self, int i) |
| Metrics on the training dataset at the specified iteration of the training. | |
| eVision.EasyDeepLearning.EDeepOCRToolMetrics | GetValidationMetrics (self, int i) |
| Metrics on the validation dataset at the specified iteration of the training. | |
| Public Member Functions inherited from eVision.EasyDeepLearning.EDeepLearningTool | |
| None | Load (self, str filePath) |
| Loads a deep learning tool. | |
| None | Load (self, eVision.ESerializer|None serializer) |
| Loads a deep learning tool. | |
| eVision.EasyDeepLearning.EDeepLearningTool|None | Clone (self) |
| Clones this tool. | |
| None | Save (self, str filePath, bool includeTrainingModel) |
| Saves the settings, inference and training model of the deep learning tool. | |
| None | Save (self, str filePath) |
| Saves the settings, inference and training model of the deep learning tool. | |
| None | Save (self, eVision.ESerializer|None serializer, bool includeTrainingModel) |
| Saves the settings, inference and training model of the deep learning tool. | |
| None | Save (self, eVision.ESerializer|None serializer) |
| Saves the settings, inference and training model of the deep learning tool. | |
| None | SerializeInferenceModel (self, eVision.ESerializer|None serializer) |
| Serializes the inference model of the tool. | |
| None | SerializeTrainingModel (self, eVision.ESerializer|None serializer) |
| Serializes the training model of the tool. | |
| None | SaveSettings (self, str filePath) |
| Saves the settings of the tool to a file. | |
| None | SaveInferenceModel (self, str filePath) |
| Saves the tool's inference model to a file. | |
| None | SaveTrainingModel (self, str filePath) |
| Saves the tool's training model to a file. | |
| None | LoadSettings (self, str filePath) |
| Loads the settings of a tool. | |
| None | LoadInferenceModel (self, str filePath) |
| Loads the tool's inference model. | |
| None | LoadTrainingModel (self, str filePath) |
| Loads the tool's training model. | |
| None | UnloadInferenceModel (self) |
| Unloads the inference model. | |
| None | UnloadTrainingModel (self) |
| Unloads the training model. | |
| None | UnloadModels (self) |
| Unloads the inference and training model. | |
| bool | HasInferenceModel (self) |
| Whether the inference model is loaded or created when the tool is not yet trained. | |
| bool | HasTrainingModel (self) |
| Whether the training model is loaded or created when the tool is not yet trained. | |
| bool | IsTrained (self) |
| Tells whether the deep learning tool has been trained. | |
| str | GetAvailableDeviceName (self, int i) |
| Name of the i-th device of the current engine. | |
| eVision.EasyDeepLearning.EDeepLearningDevice | GetAvailableDevice (self, int i) |
| i-th eVision.EasyDeepLearning.EDeepLearningDevice of the current engine. | |
| None | SetActiveDevice (self, eVision.EasyDeepLearning.EDeepLearningDevice device) |
| Sets the device with which to run or train the model. | |
| eVision.EasyDeepLearning.EDeepLearningDevice | GetActiveDevice (self, int i) |
| Gets the active device. | |
| eVision.EasyDeepLearning.EDeepLearningDevice | GetActiveDevice (self) |
| Gets the active device. | |
| bool | HasEngineSetupData (self) |
| Whether the inference model has engine setup data. | |
| None | ClearEngineSetupData (self) |
| Clears the engine data saved in the inference model. | |
| bool | IsTraining (self) |
| Indicates whether the object is currently training. | |
| int | WaitForTrainingCompletion (self, int timeout) |
| Waits until the training is complete or the timeout is expired. | |
| int | WaitForTrainingCompletion (self) |
| Waits until the training is complete or the timeout is expired. | |
| int | WaitForIterationCompletion (self) |
| Waits until an iteration is complete. | |
| int | StopTraining (self, bool wait) |
| Stops training and returns the last completed iteration. | |
| None | SetLearningRate (self, eVision.EasyDeepLearning.EDeepLearningLearningRateType type, list[float] parameters) |
| Specifies how the value of the learning rate and how it evolves during training. | |
| None | InitializeInference (self, int width, int height, eVision.EImageType imageType, int numImages) |
| Initializes the neural network for inference (i.e. | |
| None | InitializeInference (self, eVision.EBaseROI img) |
| Initializes the neural network for inference (i.e. | |
| None | InitializeInference (self, list[eVision._eVision.EBaseROI|None] imgList) |
| Initializes the neural network for inference (i.e. | |
| str | GetLabel (self, int index) |
| Gets the label from its index. | |
| None | SetLabel (self, int index, str label) |
| Changes a label predicted by the tool. | |
| None | SetLabelWeight (self, int index, float weight) |
| Sets the label weight. | |
| float | GetLabelWeight (self, int index) |
| Gets the label weight. | |
| None | SetLabelColor (self, int index, eVision.ERGBColor c) |
| Changes a label color. | |
| eVision.ERGBColor | GetLabelColor (self, int index) |
| Label color. | |
| None | SetLabelOpacity (self, int index, int opacity) |
| Changes a label opacity (between 0 for fully transparent and 255 for opaque color). | |
| int | GetLabelOpacity (self, int index) |
| Gets the label opacity (between 0 for fully transparent and 255 for opaque color). | |
| int | GetOptimalNumImagesForBatchSize (self, eVision.EBaseROI sampleImage) |
| Optimal number of images to process together for inference given the batch size and eVision.EasyDeepLearning.EDeepLearningTool.GetNumPatchesForImage. | |
| int | GetOptimalNumImagesForBatchSize (self, int imageWidth, int imageHeight) |
| Optimal number of images to process together for inference given the batch size and eVision.EasyDeepLearning.EDeepLearningTool.GetNumPatchesForImage. | |
| int | GetNumPatchesForImage (self, eVision.EBaseROI sampleImage) |
| Number of patches that will be extracted from an input image to perform inference. | |
| int | GetNumPatchesForImage (self, int imageWidth, int imageHeight) |
| Number of patches that will be extracted from an input image to perform inference. | |
| None | Clean (self) |
| Reset the engine and clean CPU and GPU memory allocated for running the model. | |
Additional Inherited Members | |
| Static Public Member Functions inherited from eVision.EasyDeepLearning.EDeepLearningTool | |
| eVision.EasyDeepLearning.EDeepLearningTool|None | Create (str path) |
| Factory method to open a deep learning tool. | |
| eVision.EasyDeepLearning.EDeepLearningTool|None | Create (eVision.ESerializer|None serializer) |
| Factory method to open a deep learning tool. | |
| eVision.EasyDeepLearning.EDeepLearningTool|None | Create (eVision.EasyDeepLearning.EDeepLearningToolType type) |
| Factory method to open a deep learning tool. | |
| int | GetNumAvailableEngines () |
| Number of available engines. | |
| str | GetAvailableEngineName (int id) |
| Gets the name of the engine given its id. | |
| list[str] | GetAvailableEngines () |
| Available engines. | |
| list[eVision._eVision.EasyDeepLearning.EDeepLearningDevice] | GetAvailableDevicesForEngine (str engine) |
| Available devices for the specified engine. | |
| None eVision.EasyDeepLearning.EDeepOCRTool.__init__ | ( | self | ) |
Constructs a eVision.EasyDeepLearning.EDeepOCRTool.
| None eVision.EasyDeepLearning.EDeepOCRTool.__init__ | ( | self, | |
| eVision.EasyDeepLearning.EDeepOCRModel | model ) |
Constructs a eVision.EasyDeepLearning.EDeepOCRTool.
| model | The type of model to train. |
| None eVision.EasyDeepLearning.EDeepOCRTool.__init__ | ( | self, | |
| eVision.EasyDeepLearning.EDeepOCRTool | other ) |
Copy constructor of a eVision.EasyDeepLearning.EDeepOCRTool object.
| other | Reference to the eVision.EasyDeepLearning.EDeepOCRTool object that should be copied. |
|
protected |
\cond
Type of Deep OCR model to train and evaluate.
Throws an exception if the tool is already trained.
|
protected |
Type of Deep OCR model to train and evaluate.
Throws an exception if the tool is already trained.
|
protected |
\cond
Parameters of the model.
|
protected |
Parameters of the model.
|
protected |
\cond
Type of the deep learning tool.
Reimplemented from eVision.EasyDeepLearning.EDeepLearningTool.
| eVision.EasyDeepLearning.EDeepOCRToolMetrics eVision.EasyDeepLearning.EDeepOCRTool.GetTrainingMetrics | ( | self, | |
| int | i ) |
Metrics on the training dataset at the specified iteration of the training.
| i | Iteration of the training |
| eVision.EasyDeepLearning.EDeepOCRToolMetrics eVision.EasyDeepLearning.EDeepOCRTool.GetValidationMetrics | ( | self, | |
| int | i ) |
Metrics on the validation dataset at the specified iteration of the training.
| i | Iteration of the training |
| None eVision.EasyDeepLearning.EDeepOCRTool.SerializeSettings | ( | self, | |
| eVision.ESerializer | None | serializer ) |
Serializes the eVision.EasyDeepLearning.EDeepOCRTool settings.
| serializer | Pointer to eVision.ESerializer. |
Reimplemented from eVision.EasyDeepLearning.EDeepLearningTool.
| None eVision.EasyDeepLearning.EDeepOCRTool.Train | ( | self, | |
| eVision.EasyDeepLearning.EDataset | dataset ) |
Trains the eVision.EasyDeepLearning.EDeepOCRTool with the given dataset for the specified number of iterations.
At the end of the training, the deep learning tool is in the state it was at the iteration that gave the minimum validation error. See eVision.EasyDeepLearning.EDeepLearningTool.BestIteration.
If no iterations is given, the training will stop automatically.
Remarks:
License(s): EasyDeepOCR
| dataset | eVision.EasyDeepLearning.EDataset with which to train and validate the deep learning tool |
| None eVision.EasyDeepLearning.EDeepOCRTool.Train | ( | self, | |
| eVision.EasyDeepLearning.EDataset | dataset, | ||
| eVision.EasyDeepLearning.EDataAugmentation | dataAugmentation ) |
Trains the eVision.EasyDeepLearning.EDeepOCRTool with the given dataset for the specified number of iterations.
At the end of the training, the deep learning tool is in the state it was at the iteration that gave the minimum validation error. See eVision.EasyDeepLearning.EDeepLearningTool.BestIteration.
If no iterations is given, the training will stop automatically.
Remarks:
License(s): EasyDeepOCR
| dataset | eVision.EasyDeepLearning.EDataset with which to train and validate the deep learning tool |
| dataAugmentation | Data augmentation to use during training |
| None eVision.EasyDeepLearning.EDeepOCRTool.Train | ( | self, | |
| eVision.EasyDeepLearning.EDataset | dataset, | ||
| eVision.EasyDeepLearning.EDataAugmentation | dataAugmentation, | ||
| int | iterations ) |
Trains the eVision.EasyDeepLearning.EDeepOCRTool with the given dataset for the specified number of iterations.
At the end of the training, the deep learning tool is in the state it was at the iteration that gave the minimum validation error. See eVision.EasyDeepLearning.EDeepLearningTool.BestIteration.
If no iterations is given, the training will stop automatically.
Remarks:
License(s): EasyDeepOCR
| dataset | eVision.EasyDeepLearning.EDataset with which to train and validate the deep learning tool |
| dataAugmentation | Data augmentation to use during training |
| iterations | Number of iterations for training. |
| None eVision.EasyDeepLearning.EDeepOCRTool.Train | ( | self, | |
| eVision.EasyDeepLearning.EDataset | dataset, | ||
| int | iterations ) |
Trains the eVision.EasyDeepLearning.EDeepOCRTool with the given dataset for the specified number of iterations.
At the end of the training, the deep learning tool is in the state it was at the iteration that gave the minimum validation error. See eVision.EasyDeepLearning.EDeepLearningTool.BestIteration.
If no iterations is given, the training will stop automatically.
Remarks:
License(s): EasyDeepOCR
| dataset | eVision.EasyDeepLearning.EDataset with which to train and validate the deep learning tool |
| iterations | Number of iterations for training. |
| None eVision.EasyDeepLearning.EDeepOCRTool.Train | ( | self, | |
| eVision.EasyDeepLearning.EDataset | trainingDataset, | ||
| eVision.EasyDeepLearning.EDataset | validationDataset ) |
Trains the eVision.EasyDeepLearning.EDeepOCRTool with the given dataset for the specified number of iterations.
At the end of the training, the deep learning tool is in the state it was at the iteration that gave the minimum validation error. See eVision.EasyDeepLearning.EDeepLearningTool.BestIteration.
If no iterations is given, the training will stop automatically.
Remarks:
License(s): EasyDeepOCR
| trainingDataset | eVision.EasyDeepLearning.EDataset with which to train the deep learning tool |
| validationDataset | eVision.EasyDeepLearning.EDataset with which to validate the deep learning tool |
| None eVision.EasyDeepLearning.EDeepOCRTool.Train | ( | self, | |
| eVision.EasyDeepLearning.EDataset | trainingDataset, | ||
| eVision.EasyDeepLearning.EDataset | validationDataset, | ||
| eVision.EasyDeepLearning.EDataAugmentation | dataAugmentation ) |
Trains the eVision.EasyDeepLearning.EDeepOCRTool with the given dataset for the specified number of iterations.
At the end of the training, the deep learning tool is in the state it was at the iteration that gave the minimum validation error. See eVision.EasyDeepLearning.EDeepLearningTool.BestIteration.
If no iterations is given, the training will stop automatically.
Remarks:
License(s): EasyDeepOCR
| trainingDataset | eVision.EasyDeepLearning.EDataset with which to train the deep learning tool |
| validationDataset | eVision.EasyDeepLearning.EDataset with which to validate the deep learning tool |
| dataAugmentation | Data augmentation to use during training |
| None eVision.EasyDeepLearning.EDeepOCRTool.Train | ( | self, | |
| eVision.EasyDeepLearning.EDataset | trainingDataset, | ||
| eVision.EasyDeepLearning.EDataset | validationDataset, | ||
| eVision.EasyDeepLearning.EDataAugmentation | dataAugmentation, | ||
| int | iterations ) |
Trains the eVision.EasyDeepLearning.EDeepOCRTool with the given dataset for the specified number of iterations.
At the end of the training, the deep learning tool is in the state it was at the iteration that gave the minimum validation error. See eVision.EasyDeepLearning.EDeepLearningTool.BestIteration.
If no iterations is given, the training will stop automatically.
Remarks:
License(s): EasyDeepOCR
| trainingDataset | eVision.EasyDeepLearning.EDataset with which to train the deep learning tool |
| validationDataset | eVision.EasyDeepLearning.EDataset with which to validate the deep learning tool |
| dataAugmentation | Data augmentation to use during training |
| iterations | Number of iterations for training. |
| None eVision.EasyDeepLearning.EDeepOCRTool.Train | ( | self, | |
| eVision.EasyDeepLearning.EDataset | trainingDataset, | ||
| eVision.EasyDeepLearning.EDataset | validationDataset, | ||
| int | iterations ) |
Trains the eVision.EasyDeepLearning.EDeepOCRTool with the given dataset for the specified number of iterations.
At the end of the training, the deep learning tool is in the state it was at the iteration that gave the minimum validation error. See eVision.EasyDeepLearning.EDeepLearningTool.BestIteration.
If no iterations is given, the training will stop automatically.
Remarks:
License(s): EasyDeepOCR
| trainingDataset | eVision.EasyDeepLearning.EDataset with which to train the deep learning tool |
| validationDataset | eVision.EasyDeepLearning.EDataset with which to validate the deep learning tool |
| iterations | Number of iterations for training. |
|
static |
\endcond
Type of Deep OCR model to train and evaluate.
Throws an exception if the tool is already trained.
|
static |
\endcond
Parameters of the model.
|
static |
\endcond
Type of the deep learning tool.