A eVision.EasyDeepOCR.ETextReader aims to find and read texts inside a given ROI, through eVision.EasyDeepOCR.ETextReader.Read. More...
Public Member Functions | |
| None | __init__ (self) |
| Creates a eVision.EasyDeepOCR.ETextReader. | |
| None | __init__ (self, eVision.EasyDeepOCR.ETextReader other) |
| Creates a eVision.EasyDeepOCR.ETextReader. | |
| bool | IsEqual (self, eVision.EasyDeepOCR.ETextReader other) |
| Checks if this eVision.EasyDeepOCR.ETextReader instance is strictly equal to another eVision.EasyDeepOCR.ETextReader instance. | |
| None | Load (self, str path) |
| Loads the eVision.EasyDeepOCR.ETextReader. | |
| None | Load (self, eVision.ESerializer|None serializer) |
| Loads the eVision.EasyDeepOCR.ETextReader. | |
| None | Save (self, str path) |
| Saves the eVision.EasyDeepOCR.ETextReader. | |
| None | Save (self, eVision.ESerializer|None serializer) |
| Saves the eVision.EasyDeepOCR.ETextReader. | |
| None | Initialize (self) |
| Initializes the eVision.EasyDeepOCR.ETextReader. | |
| bool | IsInitialized (self) |
| Returns true if the eVision.EasyDeepOCR.ETextReader is initialized. | |
| None | ResetTopology (self) |
| Forgets the eVision.ETopology previously set. | |
| None | SetTextLineHeight (self, int minHeight, int maxHeight) |
| Sets the range for the text line height. | |
| None | UnsetTextAngle (self) |
| Unsets the text angle hint. | |
| eVision.EasyDeepOCR.EOptimizationReport | Optimize (self, eVision.EasyDeepOCR.ESampleList samples) |
| Sets the optimal internal parameters by finding the text in the corresponding input image, for each eVision.EasyDeepOCR.ESample. | |
| eVision.EasyDeepOCR.EOptimizationReport | Optimize (self, eVision.EasyDeepOCR.ESampleList samples, eVision.EImageType imageType) |
| Sets the optimal internal parameters by finding the text in the corresponding input image, for each eVision.EasyDeepOCR.ESample. | |
| eVision.EasyDeepOCR.EOptimizationReport | Optimize (self, eVision.EasyDeepOCR.EOptimizationReport optimizationReport) |
| Sets the optimal internal parameters by finding the text in the corresponding input image, for each eVision.EasyDeepOCR.ESample. | |
| bool | IsOptimized (self) |
| Returns true if the eVision.EasyDeepOCR.ETextReader has been optimized with a call to eVision.EasyDeepOCR.ETextReader.Optimize, and false otherwise. | |
| None | ResetOptimization (self) |
| Forgets the optimal parameters previously set by eVision.EasyDeepOCR.ETextReader.Optimize. | |
| None | ResetLocationCustomModel (self) |
| Removes any location custom model that was previously set and use the default location model. | |
| None | ResetRecognitionCustomModel (self) |
| Removes any recognition custom model that was previously set and use the default recognition model. | |
| None | ResetOrientationCustomModel (self) |
| Removes any orientation custom model that was previously set and use the default orientation model. | |
| list[eVision._eVision.EasyDeepOCR.EText] | Read (self, eVision.EBaseROI roi) |
| Reads texts inside an eVision.EBaseROI. | |
| list[eVision._eVision.EasyDeepOCR.EText] | Read (self, eVision.EBaseROI roi, eVision.ERegion region) |
| Reads texts inside an eVision.EBaseROI. | |
| list[eVision._eVision.EasyDeepOCR.EText] | Read (self, eVision.EBaseROI roi, eVision.ERegion region, eVision.EFrame frame) |
| Reads texts inside an eVision.EBaseROI. | |
| list[eVision._eVision.EasyDeepOCR.EText] | Read (self, eVision.EBaseROI roi, eVision.EFrame frame) |
| Reads texts inside an eVision.EBaseROI. | |
| list[eVision._eVision.ERectangle] | Localize (self, eVision.EBaseROI roi) |
| Localizes the texts within a specified region of interest (ROI). | |
| list[eVision._eVision.ERectangle] | Localize (self, eVision.EBaseROI roi, eVision.ERegion region) |
| Localizes the texts within a specified region of interest (ROI). | |
| list[eVision._eVision.ERectangle] | Localize (self, eVision.EBaseROI roi, eVision.ERegion region, eVision.EFrame frame) |
| Localizes the texts within a specified region of interest (ROI). | |
| list[eVision._eVision.ERectangle] | Localize (self, eVision.EBaseROI roi, eVision.EFrame frame) |
| Localizes the texts within a specified region of interest (ROI). | |
| list[eVision._eVision.ERectangle] | Locate (self, eVision.EBaseROI roi) |
| Locates the texts within a specified region of interest (ROI). | |
| list[eVision._eVision.ERectangle] | Locate (self, eVision.EBaseROI roi, eVision.ERegion region) |
| Locates the texts within a specified region of interest (ROI). | |
| list[eVision._eVision.ERectangle] | Locate (self, eVision.EBaseROI roi, eVision.ERegion region, eVision.EFrame frame) |
| Locates the texts within a specified region of interest (ROI). | |
| list[eVision._eVision.ERectangle] | Locate (self, eVision.EBaseROI roi, eVision.EFrame frame) |
| Locates the texts within a specified region of interest (ROI). | |
| eVision.EasyDeepOCR.ETextLine | Recognize (self, eVision.EBaseROI miniature, bool automaticReadingDirection) |
| Recognizes a text within a miniature image and returns it as an eVision.EasyDeepOCR.ETextLine. | |
| eVision.EasyDeepOCR.ETextLine | Recognize (self, eVision.EBaseROI miniature) |
| Recognizes a text within a miniature image and returns it as an eVision.EasyDeepOCR.ETextLine. | |
| eVision.EasyDeepOCR.ETextLine | Recognize (self, eVision.EBaseROI miniature, int topologyLineIndex, bool automaticReadingDirection) |
| Recognizes a text within a miniature image and returns it as an eVision.EasyDeepOCR.ETextLine. | |
| eVision.EasyDeepOCR.ETextLine | Recognize (self, eVision.EBaseROI miniature, int topologyLineIndex) |
| Recognizes a text within a miniature image and returns it as an eVision.EasyDeepOCR.ETextLine. | |
| eVision.EasyDeepOCR.ETextLine | Recognize (self, eVision.EBaseROI roi, eVision.ERectangle rectangle, bool automaticReadingDirection) |
| Recognizes a text within a miniature image and returns it as an eVision.EasyDeepOCR.ETextLine. | |
| eVision.EasyDeepOCR.ETextLine | Recognize (self, eVision.EBaseROI roi, eVision.ERectangle rectangle) |
| Recognizes a text within a miniature image and returns it as an eVision.EasyDeepOCR.ETextLine. | |
| eVision.EasyDeepOCR.ETextLine | Recognize (self, eVision.EBaseROI roi, eVision.ERectangle rectangle, int topologyLineIndex, bool automaticReadingDirection) |
| Recognizes a text within a miniature image and returns it as an eVision.EasyDeepOCR.ETextLine. | |
| eVision.EasyDeepOCR.ETextLine | Recognize (self, eVision.EBaseROI roi, eVision.ERectangle rectangle, int topologyLineIndex) |
| Recognizes a text within a miniature image and returns it as an eVision.EasyDeepOCR.ETextLine. | |
| eVision.EasyDeepOCR.ETextLine | Recognize (self, eVision.EBaseROI roi, eVision.ERectangle rectangle, eVision.EFrame frame, bool automaticReadingDirection) |
| Recognizes a text within a miniature image and returns it as an eVision.EasyDeepOCR.ETextLine. | |
| eVision.EasyDeepOCR.ETextLine | Recognize (self, eVision.EBaseROI roi, eVision.ERectangle rectangle, eVision.EFrame frame) |
| Recognizes a text within a miniature image and returns it as an eVision.EasyDeepOCR.ETextLine. | |
| eVision.EasyDeepOCR.ETextLine | Recognize (self, eVision.EBaseROI roi, eVision.ERectangle rectangle, eVision.EFrame frame, int topologyLineIndex, bool automaticReadingDirection) |
| Recognizes a text within a miniature image and returns it as an eVision.EasyDeepOCR.ETextLine. | |
| eVision.EasyDeepOCR.ETextLine | Recognize (self, eVision.EBaseROI roi, eVision.ERectangle rectangle, eVision.EFrame frame, int topologyLineIndex) |
| Recognizes a text within a miniature image and returns it as an eVision.EasyDeepOCR.ETextLine. | |
| eVision.EasyDeepOCR.ETextLine | Recognize (self, eVision.EBaseROI roi, eVision.ERegion region, bool automaticReadingDirection) |
| Recognizes a text within a miniature image and returns it as an eVision.EasyDeepOCR.ETextLine. | |
| eVision.EasyDeepOCR.ETextLine | Recognize (self, eVision.EBaseROI roi, eVision.ERegion region) |
| Recognizes a text within a miniature image and returns it as an eVision.EasyDeepOCR.ETextLine. | |
| eVision.EasyDeepOCR.ETextLine | Recognize (self, eVision.EBaseROI roi, eVision.ERegion region, int topologyLineIndex, bool automaticReadingDirection) |
| Recognizes a text within a miniature image and returns it as an eVision.EasyDeepOCR.ETextLine. | |
| eVision.EasyDeepOCR.ETextLine | Recognize (self, eVision.EBaseROI roi, eVision.ERegion region, int topologyLineIndex) |
| Recognizes a text within a miniature image and returns it as an eVision.EasyDeepOCR.ETextLine. | |
| eVision.EasyDeepOCR.ETextLine | Recognize (self, eVision.EBaseROI roi, eVision.ERegion region, eVision.EFrame frame, bool automaticReadingDirection) |
| Recognizes a text within a miniature image and returns it as an eVision.EasyDeepOCR.ETextLine. | |
| eVision.EasyDeepOCR.ETextLine | Recognize (self, eVision.EBaseROI roi, eVision.ERegion region, eVision.EFrame frame) |
| Recognizes a text within a miniature image and returns it as an eVision.EasyDeepOCR.ETextLine. | |
| eVision.EasyDeepOCR.ETextLine | Recognize (self, eVision.EBaseROI roi, eVision.ERegion region, eVision.EFrame frame, int topologyLineIndex, bool automaticReadingDirection) |
| Recognizes a text within a miniature image and returns it as an eVision.EasyDeepOCR.ETextLine. | |
| eVision.EasyDeepOCR.ETextLine | Recognize (self, eVision.EBaseROI roi, eVision.ERegion region, eVision.EFrame frame, int topologyLineIndex) |
| Recognizes a text within a miniature image and returns it as an eVision.EasyDeepOCR.ETextLine. | |
| list[eVision._eVision.EasyDeepOCR.EText] | Merge (self, list[eVision._eVision.EasyDeepOCR.ETextLine] textlines) |
| Merges geometrically consistent eVision.EasyDeepOCR.ETextLines into structured eVision.EasyDeepOCR.ETexts satisfying the specified eVision.EasyDeepOCR.ETextReader.Topology. | |
| eVision.ETopology | Topology (self) |
| eVision.ETopology of the eVision.EasyDeepOCR.ETextReader. | |
| Topology (self, eVision.ETopology value) | |
| eVision.ETopology of the eVision.EasyDeepOCR.ETextReader. | |
| bool | HasTopology (self) |
| Returns true if the eVision.ETopology is set. | |
| eVision.EasyDeepLearning.EDeepLearningExecutionSettings | ExecutionSettings (self) |
| eVision.EasyDeepLearning.EDeepLearningExecutionSettings used by the eVision.EasyDeepOCR.ETextReader. | |
| ExecutionSettings (self, eVision.EasyDeepLearning.EDeepLearningExecutionSettings value) | |
| eVision.EasyDeepLearning.EDeepLearningExecutionSettings used by the eVision.EasyDeepOCR.ETextReader. | |
| eVision.EFloatRange | TextLineHeight (self) |
| Gets the range for the text line height. | |
| float | TextAngle (self) |
| Angle hint for the text to be found. | |
| TextAngle (self, float value) | |
| Angle hint for the text to be found. | |
| bool | HasTextAngle (self) |
| Returns true if the text angle hint is defined. | |
| bool | HasLocationCustomModel (self) |
| Whether the reader has a location custom model. | |
| bool | HasRecognitionCustomModel (self) |
| Whether the reader has a recognition custom model. | |
| bool | HasOrientationCustomModel (self) |
| Whether the reader has a orientation custom model. | |
Protected Member Functions | |
| _LocationCustomModelPath__setter (self, str value) | |
| Sets a location custom model using the path to a saved eVision.EasyDeepLearning.EDeepOCRTool (user trained model). | |
| _LocationCustomModel__setter (self, eVision.EasyDeepLearning.EDeepOCRTool value) | |
| Sets a location custom model from a eVision.EasyDeepLearning.EDeepOCRTool object (user trained model). | |
| _RecognitionCustomModelPath__setter (self, str value) | |
| Sets a recognition custom model using the path to a saved eVision.EasyDeepLearning.EDeepOCRTool (user trained model). | |
| _RecognitionCustomModel__setter (self, eVision.EasyDeepLearning.EDeepOCRTool value) | |
| Sets a recognition custom model from a eVision.EasyDeepLearning.EDeepOCRTool object (user trained model). | |
| _OrientationCustomModelPath__setter (self, str value) | |
| Sets an orientation custom model using the path to a saved eVision.EasyDeepLearning.EDeepOCRTool (user trained model). | |
| _OrientationCustomModel__setter (self, eVision.EasyDeepLearning.EDeepOCRTool value) | |
| Sets an orientation custom model from a eVision.EasyDeepLearning.EDeepOCRTool object (user trained model). | |
Properties | |
| LocationCustomModelPath | |
| LocationCustomModel | |
| RecognitionCustomModelPath | |
| RecognitionCustomModel | |
| OrientationCustomModelPath | |
| OrientationCustomModel | |
A eVision.EasyDeepOCR.ETextReader aims to find and read texts inside a given ROI, through eVision.EasyDeepOCR.ETextReader.Read.
The returned texts can be filtered by providing a eVision.ETopology. An optimization phase can be performed before starting to read, to increase the processing speed of eVision.EasyDeepOCR.ETextReader. This optimization phase can be launched with eVision.EasyDeepOCR.ETextReader.Optimize.
Remarks:
License(s): EasyDeepOCR
| None eVision.EasyDeepOCR.ETextReader.__init__ | ( | self | ) |
Creates a eVision.EasyDeepOCR.ETextReader.
| None eVision.EasyDeepOCR.ETextReader.__init__ | ( | self, | |
| eVision.EasyDeepOCR.ETextReader | other ) |
Creates a eVision.EasyDeepOCR.ETextReader.
| other | Another eVision.EasyDeepOCR.ETextReader to be copied in the new eVision.EasyDeepOCR.ETextReader. |
|
protected |
Sets a location custom model from a eVision.EasyDeepLearning.EDeepOCRTool object (user trained model).
Remarks:
Note that the location custom model will be serialized as part of the text reader.
|
protected |
Sets a location custom model using the path to a saved eVision.EasyDeepLearning.EDeepOCRTool (user trained model).
Remarks:
Note that the location custom model will be serialized as part of the text reader.
|
protected |
Sets an orientation custom model from a eVision.EasyDeepLearning.EDeepOCRTool object (user trained model).
Remarks:
Note that the orientation custom model will be serialized as part of the text reader.
|
protected |
Sets an orientation custom model using the path to a saved eVision.EasyDeepLearning.EDeepOCRTool (user trained model).
Remarks:
Note that the orientation custom model will be serialized as part of the text reader.
|
protected |
Sets a recognition custom model from a eVision.EasyDeepLearning.EDeepOCRTool object (user trained model).
Remarks:
Note that the recognition custom model will be serialized as part of the text reader.
|
protected |
Sets a recognition custom model using the path to a saved eVision.EasyDeepLearning.EDeepOCRTool (user trained model).
Remarks:
Note that the recognition custom model will be serialized as part of the text reader.
| eVision.EasyDeepLearning.EDeepLearningExecutionSettings eVision.EasyDeepOCR.ETextReader.ExecutionSettings | ( | self | ) |
| eVision.EasyDeepOCR.ETextReader.ExecutionSettings | ( | self, | |
| eVision.EasyDeepLearning.EDeepLearningExecutionSettings | value ) |
| bool eVision.EasyDeepOCR.ETextReader.HasLocationCustomModel | ( | self | ) |
Whether the reader has a location custom model.
| bool eVision.EasyDeepOCR.ETextReader.HasOrientationCustomModel | ( | self | ) |
Whether the reader has a orientation custom model.
| bool eVision.EasyDeepOCR.ETextReader.HasRecognitionCustomModel | ( | self | ) |
Whether the reader has a recognition custom model.
| bool eVision.EasyDeepOCR.ETextReader.HasTextAngle | ( | self | ) |
Returns true if the text angle hint is defined.
| bool eVision.EasyDeepOCR.ETextReader.HasTopology | ( | self | ) |
Returns true if the eVision.ETopology is set.
| None eVision.EasyDeepOCR.ETextReader.Initialize | ( | self | ) |
Initializes the eVision.EasyDeepOCR.ETextReader.
eVision.EasyDeepOCR.ETextReader must be initialized before using eVision.EasyDeepOCR.ETextReader.Read.
| bool eVision.EasyDeepOCR.ETextReader.IsEqual | ( | self, | |
| eVision.EasyDeepOCR.ETextReader | other ) |
Checks if this eVision.EasyDeepOCR.ETextReader instance is strictly equal to another eVision.EasyDeepOCR.ETextReader instance.
| other | Reference to the eVision.EasyDeepOCR.ETextReader instance to compare with |
| bool eVision.EasyDeepOCR.ETextReader.IsInitialized | ( | self | ) |
Returns true if the eVision.EasyDeepOCR.ETextReader is initialized.
| bool eVision.EasyDeepOCR.ETextReader.IsOptimized | ( | self | ) |
Returns true if the eVision.EasyDeepOCR.ETextReader has been optimized with a call to eVision.EasyDeepOCR.ETextReader.Optimize, and false otherwise.
| None eVision.EasyDeepOCR.ETextReader.Load | ( | self, | |
| eVision.ESerializer | None | serializer ) |
Loads the eVision.EasyDeepOCR.ETextReader.
| serializer | - |
| None eVision.EasyDeepOCR.ETextReader.Load | ( | self, | |
| str | path ) |
Loads the eVision.EasyDeepOCR.ETextReader.
| path | Path where to save the eVision.EasyDeepOCR.ETextReader. |
| list[eVision._eVision.ERectangle] eVision.EasyDeepOCR.ETextReader.Localize | ( | self, | |
| eVision.EBaseROI | roi ) |
Localizes the texts within a specified region of interest (ROI).
Returns the detected text areas as eVision.ERectangles.
Use eVision.EasyDeepOCR.ETextReader.Locate instead.
Deprecated in version 26.6. Scheduled to be removed in version 27.6.
| roi | The region of interest (ROI) in which to search for text. Only eVision.EROIBW8 and eVision.EROIC24 are supported. |
| list[eVision._eVision.ERectangle] eVision.EasyDeepOCR.ETextReader.Localize | ( | self, | |
| eVision.EBaseROI | roi, | ||
| eVision.EFrame | frame ) |
Localizes the texts within a specified region of interest (ROI).
Returns the detected text areas as eVision.ERectangles.
Use eVision.EasyDeepOCR.ETextReader.Locate instead.
Deprecated in version 26.6. Scheduled to be removed in version 27.6.
| roi | The region of interest (ROI) in which to search for text. Only eVision.EROIBW8 and eVision.EROIC24 are supported. |
| frame | Reference frame of the input region. |
| list[eVision._eVision.ERectangle] eVision.EasyDeepOCR.ETextReader.Localize | ( | self, | |
| eVision.EBaseROI | roi, | ||
| eVision.ERegion | region ) |
Localizes the texts within a specified region of interest (ROI).
Returns the detected text areas as eVision.ERectangles.
Use eVision.EasyDeepOCR.ETextReader.Locate instead.
Deprecated in version 26.6. Scheduled to be removed in version 27.6.
| roi | The region of interest (ROI) in which to search for text. Only eVision.EROIBW8 and eVision.EROIC24 are supported. |
| region | Optional parameter that specifies a sub-region within the ROI to limit the text search area. |
| list[eVision._eVision.ERectangle] eVision.EasyDeepOCR.ETextReader.Localize | ( | self, | |
| eVision.EBaseROI | roi, | ||
| eVision.ERegion | region, | ||
| eVision.EFrame | frame ) |
Localizes the texts within a specified region of interest (ROI).
Returns the detected text areas as eVision.ERectangles.
Use eVision.EasyDeepOCR.ETextReader.Locate instead.
Deprecated in version 26.6. Scheduled to be removed in version 27.6.
| roi | The region of interest (ROI) in which to search for text. Only eVision.EROIBW8 and eVision.EROIC24 are supported. |
| region | Optional parameter that specifies a sub-region within the ROI to limit the text search area. |
| frame | Reference frame of the input region. |
| list[eVision._eVision.ERectangle] eVision.EasyDeepOCR.ETextReader.Locate | ( | self, | |
| eVision.EBaseROI | roi ) |
Locates the texts within a specified region of interest (ROI).
Returns the detected text areas as eVision.ERectangles.
| roi | The region of interest (ROI) in which to search for text. Only eVision.EROIBW8 and eVision.EROIC24 are supported. |
| list[eVision._eVision.ERectangle] eVision.EasyDeepOCR.ETextReader.Locate | ( | self, | |
| eVision.EBaseROI | roi, | ||
| eVision.EFrame | frame ) |
Locates the texts within a specified region of interest (ROI).
Returns the detected text areas as eVision.ERectangles.
| roi | The region of interest (ROI) in which to search for text. Only eVision.EROIBW8 and eVision.EROIC24 are supported. |
| frame | Reference frame of the input region. |
| list[eVision._eVision.ERectangle] eVision.EasyDeepOCR.ETextReader.Locate | ( | self, | |
| eVision.EBaseROI | roi, | ||
| eVision.ERegion | region ) |
Locates the texts within a specified region of interest (ROI).
Returns the detected text areas as eVision.ERectangles.
| roi | The region of interest (ROI) in which to search for text. Only eVision.EROIBW8 and eVision.EROIC24 are supported. |
| region | Optional parameter that specifies a sub-region within the ROI to limit the text search area. |
| list[eVision._eVision.ERectangle] eVision.EasyDeepOCR.ETextReader.Locate | ( | self, | |
| eVision.EBaseROI | roi, | ||
| eVision.ERegion | region, | ||
| eVision.EFrame | frame ) |
Locates the texts within a specified region of interest (ROI).
Returns the detected text areas as eVision.ERectangles.
| roi | The region of interest (ROI) in which to search for text. Only eVision.EROIBW8 and eVision.EROIC24 are supported. |
| region | Optional parameter that specifies a sub-region within the ROI to limit the text search area. |
| frame | Reference frame of the input region. |
| list[eVision._eVision.EasyDeepOCR.EText] eVision.EasyDeepOCR.ETextReader.Merge | ( | self, | |
| list[eVision._eVision.EasyDeepOCR.ETextLine] | textlines ) |
Merges geometrically consistent eVision.EasyDeepOCR.ETextLines into structured eVision.EasyDeepOCR.ETexts satisfying the specified eVision.EasyDeepOCR.ETextReader.Topology.
Throws if no eVision.EasyDeepOCR.ETextReader.Topology has been specified.
| textlines | A collection of eVision.EasyDeepOCR.ETextLine candidates to be merged. |
| eVision.EasyDeepOCR.EOptimizationReport eVision.EasyDeepOCR.ETextReader.Optimize | ( | self, | |
| eVision.EasyDeepOCR.EOptimizationReport | optimizationReport ) |
Sets the optimal internal parameters by finding the text in the corresponding input image, for each eVision.EasyDeepOCR.ESample.
Remarks:
Once an optimization is performed, the eVision.EasyDeepOCR.ETextReader is specialized and only returns texts sharing geometrical properties with the ones it has learned from.
| optimizationReport | Optimization report to be restored. |
| eVision.EasyDeepOCR.EOptimizationReport eVision.EasyDeepOCR.ETextReader.Optimize | ( | self, | |
| eVision.EasyDeepOCR.ESampleList | samples ) |
Sets the optimal internal parameters by finding the text in the corresponding input image, for each eVision.EasyDeepOCR.ESample.
Remarks:
Once an optimization is performed, the eVision.EasyDeepOCR.ETextReader is specialized and only returns texts sharing geometrical properties with the ones it has learned from.
| samples | Samples to be optimized from. |
| eVision.EasyDeepOCR.EOptimizationReport eVision.EasyDeepOCR.ETextReader.Optimize | ( | self, | |
| eVision.EasyDeepOCR.ESampleList | samples, | ||
| eVision.EImageType | imageType ) |
Sets the optimal internal parameters by finding the text in the corresponding input image, for each eVision.EasyDeepOCR.ESample.
Remarks:
Once an optimization is performed, the eVision.EasyDeepOCR.ETextReader is specialized and only returns texts sharing geometrical properties with the ones it has learned from.
| samples | Samples to be optimized from. |
| imageType | Specifies the image type for loading the sample images. If not provided, the image type will be automatically determined based on the sample image files. |
| list[eVision._eVision.EasyDeepOCR.EText] eVision.EasyDeepOCR.ETextReader.Read | ( | self, | |
| eVision.EBaseROI | roi ) |
Reads texts inside an eVision.EBaseROI.
Texts are returned as eVision.EasyDeepOCR.EText. Texts comply with the eVision.ETopology previously specified with eVision.EasyDeepOCR.ETextReader.Topology, if any. The processing speed can be increased with eVision.EasyDeepOCR.ETextReader.Optimize.
| roi | ROI in which the texts have to be found. Only eVision.EROIBW8 and eVision.EROIC24 are supported. |
| list[eVision._eVision.EasyDeepOCR.EText] eVision.EasyDeepOCR.ETextReader.Read | ( | self, | |
| eVision.EBaseROI | roi, | ||
| eVision.EFrame | frame ) |
Reads texts inside an eVision.EBaseROI.
Texts are returned as eVision.EasyDeepOCR.EText. Texts comply with the eVision.ETopology previously specified with eVision.EasyDeepOCR.ETextReader.Topology, if any. The processing speed can be increased with eVision.EasyDeepOCR.ETextReader.Optimize.
| roi | ROI in which the texts have to be found. Only eVision.EROIBW8 and eVision.EROIC24 are supported. |
| frame | Reference frame of the input region. |
| list[eVision._eVision.EasyDeepOCR.EText] eVision.EasyDeepOCR.ETextReader.Read | ( | self, | |
| eVision.EBaseROI | roi, | ||
| eVision.ERegion | region ) |
Reads texts inside an eVision.EBaseROI.
Texts are returned as eVision.EasyDeepOCR.EText. Texts comply with the eVision.ETopology previously specified with eVision.EasyDeepOCR.ETextReader.Topology, if any. The processing speed can be increased with eVision.EasyDeepOCR.ETextReader.Optimize.
| roi | ROI in which the texts have to be found. Only eVision.EROIBW8 and eVision.EROIC24 are supported. |
| region | Region in which the texts have to be found. |
| list[eVision._eVision.EasyDeepOCR.EText] eVision.EasyDeepOCR.ETextReader.Read | ( | self, | |
| eVision.EBaseROI | roi, | ||
| eVision.ERegion | region, | ||
| eVision.EFrame | frame ) |
Reads texts inside an eVision.EBaseROI.
Texts are returned as eVision.EasyDeepOCR.EText. Texts comply with the eVision.ETopology previously specified with eVision.EasyDeepOCR.ETextReader.Topology, if any. The processing speed can be increased with eVision.EasyDeepOCR.ETextReader.Optimize.
| roi | ROI in which the texts have to be found. Only eVision.EROIBW8 and eVision.EROIC24 are supported. |
| region | Region in which the texts have to be found. |
| frame | Reference frame of the input region. |
| eVision.EasyDeepOCR.ETextLine eVision.EasyDeepOCR.ETextReader.Recognize | ( | self, | |
| eVision.EBaseROI | miniature ) |
Recognizes a text within a miniature image and returns it as an eVision.EasyDeepOCR.ETextLine.
The returned text will conform to the eVision.ETopologyLine if one is provided via the topologyLineIndex parameter. The miniature image can be provided directly or extracted from a larger ROI using an eVision.ERectangle or an eVision.ERegion. If the text in the miniature image is not oriented along the standard reading direction, setting automaticReadingDirection to true will attempt to detect and adjust for the correct reading orientation. When eVision.EasyDeepOCR.ETextReader.HasTextAngle is true, automaticReadingDirection is ignored and the reading orientation is chosen as the closest to eVision.EasyDeepOCR.ETextReader.TextAngle. Otherewise, To ensure the oriented rectangle obtained from the region is deterministic, the reader will always snap the orientation to the horizontal axis (changing the width and height accordingly).
| miniature | The ROI containing the miniature image with text to recognize. |
| eVision.EasyDeepOCR.ETextLine eVision.EasyDeepOCR.ETextReader.Recognize | ( | self, | |
| eVision.EBaseROI | miniature, | ||
| bool | automaticReadingDirection ) |
Recognizes a text within a miniature image and returns it as an eVision.EasyDeepOCR.ETextLine.
The returned text will conform to the eVision.ETopologyLine if one is provided via the topologyLineIndex parameter. The miniature image can be provided directly or extracted from a larger ROI using an eVision.ERectangle or an eVision.ERegion. If the text in the miniature image is not oriented along the standard reading direction, setting automaticReadingDirection to true will attempt to detect and adjust for the correct reading orientation. When eVision.EasyDeepOCR.ETextReader.HasTextAngle is true, automaticReadingDirection is ignored and the reading orientation is chosen as the closest to eVision.EasyDeepOCR.ETextReader.TextAngle. Otherewise, To ensure the oriented rectangle obtained from the region is deterministic, the reader will always snap the orientation to the horizontal axis (changing the width and height accordingly).
| miniature | The ROI containing the miniature image with text to recognize. |
| automaticReadingDirection | When true, automatically detects the reading direction of the text. Default is false. |
| eVision.EasyDeepOCR.ETextLine eVision.EasyDeepOCR.ETextReader.Recognize | ( | self, | |
| eVision.EBaseROI | miniature, | ||
| int | topologyLineIndex ) |
Recognizes a text within a miniature image and returns it as an eVision.EasyDeepOCR.ETextLine.
The returned text will conform to the eVision.ETopologyLine if one is provided via the topologyLineIndex parameter. The miniature image can be provided directly or extracted from a larger ROI using an eVision.ERectangle or an eVision.ERegion. If the text in the miniature image is not oriented along the standard reading direction, setting automaticReadingDirection to true will attempt to detect and adjust for the correct reading orientation. When eVision.EasyDeepOCR.ETextReader.HasTextAngle is true, automaticReadingDirection is ignored and the reading orientation is chosen as the closest to eVision.EasyDeepOCR.ETextReader.TextAngle. Otherewise, To ensure the oriented rectangle obtained from the region is deterministic, the reader will always snap the orientation to the horizontal axis (changing the width and height accordingly).
| miniature | The ROI containing the miniature image with text to recognize. |
| topologyLineIndex | The index of the eVision.ETopologyLine to use for text recognition constraints. |
| eVision.EasyDeepOCR.ETextLine eVision.EasyDeepOCR.ETextReader.Recognize | ( | self, | |
| eVision.EBaseROI | miniature, | ||
| int | topologyLineIndex, | ||
| bool | automaticReadingDirection ) |
Recognizes a text within a miniature image and returns it as an eVision.EasyDeepOCR.ETextLine.
The returned text will conform to the eVision.ETopologyLine if one is provided via the topologyLineIndex parameter. The miniature image can be provided directly or extracted from a larger ROI using an eVision.ERectangle or an eVision.ERegion. If the text in the miniature image is not oriented along the standard reading direction, setting automaticReadingDirection to true will attempt to detect and adjust for the correct reading orientation. When eVision.EasyDeepOCR.ETextReader.HasTextAngle is true, automaticReadingDirection is ignored and the reading orientation is chosen as the closest to eVision.EasyDeepOCR.ETextReader.TextAngle. Otherewise, To ensure the oriented rectangle obtained from the region is deterministic, the reader will always snap the orientation to the horizontal axis (changing the width and height accordingly).
| miniature | The ROI containing the miniature image with text to recognize. |
| topologyLineIndex | The index of the eVision.ETopologyLine to use for text recognition constraints. |
| automaticReadingDirection | When true, automatically detects the reading direction of the text. Default is false. |
| eVision.EasyDeepOCR.ETextLine eVision.EasyDeepOCR.ETextReader.Recognize | ( | self, | |
| eVision.EBaseROI | roi, | ||
| eVision.ERectangle | rectangle ) |
Recognizes a text within a miniature image and returns it as an eVision.EasyDeepOCR.ETextLine.
The returned text will conform to the eVision.ETopologyLine if one is provided via the topologyLineIndex parameter. The miniature image can be provided directly or extracted from a larger ROI using an eVision.ERectangle or an eVision.ERegion. If the text in the miniature image is not oriented along the standard reading direction, setting automaticReadingDirection to true will attempt to detect and adjust for the correct reading orientation. When eVision.EasyDeepOCR.ETextReader.HasTextAngle is true, automaticReadingDirection is ignored and the reading orientation is chosen as the closest to eVision.EasyDeepOCR.ETextReader.TextAngle. Otherewise, To ensure the oriented rectangle obtained from the region is deterministic, the reader will always snap the orientation to the horizontal axis (changing the width and height accordingly).
| roi | The source ROI from which to extract the miniature image. |
| rectangle | Defines the area within the source ROI to extract as the miniature image. |
| eVision.EasyDeepOCR.ETextLine eVision.EasyDeepOCR.ETextReader.Recognize | ( | self, | |
| eVision.EBaseROI | roi, | ||
| eVision.ERectangle | rectangle, | ||
| bool | automaticReadingDirection ) |
Recognizes a text within a miniature image and returns it as an eVision.EasyDeepOCR.ETextLine.
The returned text will conform to the eVision.ETopologyLine if one is provided via the topologyLineIndex parameter. The miniature image can be provided directly or extracted from a larger ROI using an eVision.ERectangle or an eVision.ERegion. If the text in the miniature image is not oriented along the standard reading direction, setting automaticReadingDirection to true will attempt to detect and adjust for the correct reading orientation. When eVision.EasyDeepOCR.ETextReader.HasTextAngle is true, automaticReadingDirection is ignored and the reading orientation is chosen as the closest to eVision.EasyDeepOCR.ETextReader.TextAngle. Otherewise, To ensure the oriented rectangle obtained from the region is deterministic, the reader will always snap the orientation to the horizontal axis (changing the width and height accordingly).
| roi | The source ROI from which to extract the miniature image. |
| rectangle | Defines the area within the source ROI to extract as the miniature image. |
| automaticReadingDirection | When true, automatically detects the reading direction of the text. Default is false. |
| eVision.EasyDeepOCR.ETextLine eVision.EasyDeepOCR.ETextReader.Recognize | ( | self, | |
| eVision.EBaseROI | roi, | ||
| eVision.ERectangle | rectangle, | ||
| eVision.EFrame | frame ) |
Recognizes a text within a miniature image and returns it as an eVision.EasyDeepOCR.ETextLine.
The returned text will conform to the eVision.ETopologyLine if one is provided via the topologyLineIndex parameter. The miniature image can be provided directly or extracted from a larger ROI using an eVision.ERectangle or an eVision.ERegion. If the text in the miniature image is not oriented along the standard reading direction, setting automaticReadingDirection to true will attempt to detect and adjust for the correct reading orientation. When eVision.EasyDeepOCR.ETextReader.HasTextAngle is true, automaticReadingDirection is ignored and the reading orientation is chosen as the closest to eVision.EasyDeepOCR.ETextReader.TextAngle. Otherewise, To ensure the oriented rectangle obtained from the region is deterministic, the reader will always snap the orientation to the horizontal axis (changing the width and height accordingly).
| roi | The source ROI from which to extract the miniature image. |
| rectangle | Defines the area within the source ROI to extract as the miniature image. |
| frame | Reference frame of the input region. |
| eVision.EasyDeepOCR.ETextLine eVision.EasyDeepOCR.ETextReader.Recognize | ( | self, | |
| eVision.EBaseROI | roi, | ||
| eVision.ERectangle | rectangle, | ||
| eVision.EFrame | frame, | ||
| bool | automaticReadingDirection ) |
Recognizes a text within a miniature image and returns it as an eVision.EasyDeepOCR.ETextLine.
The returned text will conform to the eVision.ETopologyLine if one is provided via the topologyLineIndex parameter. The miniature image can be provided directly or extracted from a larger ROI using an eVision.ERectangle or an eVision.ERegion. If the text in the miniature image is not oriented along the standard reading direction, setting automaticReadingDirection to true will attempt to detect and adjust for the correct reading orientation. When eVision.EasyDeepOCR.ETextReader.HasTextAngle is true, automaticReadingDirection is ignored and the reading orientation is chosen as the closest to eVision.EasyDeepOCR.ETextReader.TextAngle. Otherewise, To ensure the oriented rectangle obtained from the region is deterministic, the reader will always snap the orientation to the horizontal axis (changing the width and height accordingly).
| roi | The source ROI from which to extract the miniature image. |
| rectangle | Defines the area within the source ROI to extract as the miniature image. |
| frame | Reference frame of the input region. |
| automaticReadingDirection | When true, automatically detects the reading direction of the text. Default is false. |
| eVision.EasyDeepOCR.ETextLine eVision.EasyDeepOCR.ETextReader.Recognize | ( | self, | |
| eVision.EBaseROI | roi, | ||
| eVision.ERectangle | rectangle, | ||
| eVision.EFrame | frame, | ||
| int | topologyLineIndex ) |
Recognizes a text within a miniature image and returns it as an eVision.EasyDeepOCR.ETextLine.
The returned text will conform to the eVision.ETopologyLine if one is provided via the topologyLineIndex parameter. The miniature image can be provided directly or extracted from a larger ROI using an eVision.ERectangle or an eVision.ERegion. If the text in the miniature image is not oriented along the standard reading direction, setting automaticReadingDirection to true will attempt to detect and adjust for the correct reading orientation. When eVision.EasyDeepOCR.ETextReader.HasTextAngle is true, automaticReadingDirection is ignored and the reading orientation is chosen as the closest to eVision.EasyDeepOCR.ETextReader.TextAngle. Otherewise, To ensure the oriented rectangle obtained from the region is deterministic, the reader will always snap the orientation to the horizontal axis (changing the width and height accordingly).
| roi | The source ROI from which to extract the miniature image. |
| rectangle | Defines the area within the source ROI to extract as the miniature image. |
| frame | Reference frame of the input region. |
| topologyLineIndex | The index of the eVision.ETopologyLine to use for text recognition constraints. |
| eVision.EasyDeepOCR.ETextLine eVision.EasyDeepOCR.ETextReader.Recognize | ( | self, | |
| eVision.EBaseROI | roi, | ||
| eVision.ERectangle | rectangle, | ||
| eVision.EFrame | frame, | ||
| int | topologyLineIndex, | ||
| bool | automaticReadingDirection ) |
Recognizes a text within a miniature image and returns it as an eVision.EasyDeepOCR.ETextLine.
The returned text will conform to the eVision.ETopologyLine if one is provided via the topologyLineIndex parameter. The miniature image can be provided directly or extracted from a larger ROI using an eVision.ERectangle or an eVision.ERegion. If the text in the miniature image is not oriented along the standard reading direction, setting automaticReadingDirection to true will attempt to detect and adjust for the correct reading orientation. When eVision.EasyDeepOCR.ETextReader.HasTextAngle is true, automaticReadingDirection is ignored and the reading orientation is chosen as the closest to eVision.EasyDeepOCR.ETextReader.TextAngle. Otherewise, To ensure the oriented rectangle obtained from the region is deterministic, the reader will always snap the orientation to the horizontal axis (changing the width and height accordingly).
| roi | The source ROI from which to extract the miniature image. |
| rectangle | Defines the area within the source ROI to extract as the miniature image. |
| frame | Reference frame of the input region. |
| topologyLineIndex | The index of the eVision.ETopologyLine to use for text recognition constraints. |
| automaticReadingDirection | When true, automatically detects the reading direction of the text. Default is false. |
| eVision.EasyDeepOCR.ETextLine eVision.EasyDeepOCR.ETextReader.Recognize | ( | self, | |
| eVision.EBaseROI | roi, | ||
| eVision.ERectangle | rectangle, | ||
| int | topologyLineIndex ) |
Recognizes a text within a miniature image and returns it as an eVision.EasyDeepOCR.ETextLine.
The returned text will conform to the eVision.ETopologyLine if one is provided via the topologyLineIndex parameter. The miniature image can be provided directly or extracted from a larger ROI using an eVision.ERectangle or an eVision.ERegion. If the text in the miniature image is not oriented along the standard reading direction, setting automaticReadingDirection to true will attempt to detect and adjust for the correct reading orientation. When eVision.EasyDeepOCR.ETextReader.HasTextAngle is true, automaticReadingDirection is ignored and the reading orientation is chosen as the closest to eVision.EasyDeepOCR.ETextReader.TextAngle. Otherewise, To ensure the oriented rectangle obtained from the region is deterministic, the reader will always snap the orientation to the horizontal axis (changing the width and height accordingly).
| roi | The source ROI from which to extract the miniature image. |
| rectangle | Defines the area within the source ROI to extract as the miniature image. |
| topologyLineIndex | The index of the eVision.ETopologyLine to use for text recognition constraints. |
| eVision.EasyDeepOCR.ETextLine eVision.EasyDeepOCR.ETextReader.Recognize | ( | self, | |
| eVision.EBaseROI | roi, | ||
| eVision.ERectangle | rectangle, | ||
| int | topologyLineIndex, | ||
| bool | automaticReadingDirection ) |
Recognizes a text within a miniature image and returns it as an eVision.EasyDeepOCR.ETextLine.
The returned text will conform to the eVision.ETopologyLine if one is provided via the topologyLineIndex parameter. The miniature image can be provided directly or extracted from a larger ROI using an eVision.ERectangle or an eVision.ERegion. If the text in the miniature image is not oriented along the standard reading direction, setting automaticReadingDirection to true will attempt to detect and adjust for the correct reading orientation. When eVision.EasyDeepOCR.ETextReader.HasTextAngle is true, automaticReadingDirection is ignored and the reading orientation is chosen as the closest to eVision.EasyDeepOCR.ETextReader.TextAngle. Otherewise, To ensure the oriented rectangle obtained from the region is deterministic, the reader will always snap the orientation to the horizontal axis (changing the width and height accordingly).
| roi | The source ROI from which to extract the miniature image. |
| rectangle | Defines the area within the source ROI to extract as the miniature image. |
| topologyLineIndex | The index of the eVision.ETopologyLine to use for text recognition constraints. |
| automaticReadingDirection | When true, automatically detects the reading direction of the text. Default is false. |
| eVision.EasyDeepOCR.ETextLine eVision.EasyDeepOCR.ETextReader.Recognize | ( | self, | |
| eVision.EBaseROI | roi, | ||
| eVision.ERegion | region ) |
Recognizes a text within a miniature image and returns it as an eVision.EasyDeepOCR.ETextLine.
The returned text will conform to the eVision.ETopologyLine if one is provided via the topologyLineIndex parameter. The miniature image can be provided directly or extracted from a larger ROI using an eVision.ERectangle or an eVision.ERegion. If the text in the miniature image is not oriented along the standard reading direction, setting automaticReadingDirection to true will attempt to detect and adjust for the correct reading orientation. When eVision.EasyDeepOCR.ETextReader.HasTextAngle is true, automaticReadingDirection is ignored and the reading orientation is chosen as the closest to eVision.EasyDeepOCR.ETextReader.TextAngle. Otherewise, To ensure the oriented rectangle obtained from the region is deterministic, the reader will always snap the orientation to the horizontal axis (changing the width and height accordingly).
| roi | The source ROI from which to extract the miniature image. |
| region | Defines the area within the source ROI to extract as the miniature image. |
| eVision.EasyDeepOCR.ETextLine eVision.EasyDeepOCR.ETextReader.Recognize | ( | self, | |
| eVision.EBaseROI | roi, | ||
| eVision.ERegion | region, | ||
| bool | automaticReadingDirection ) |
Recognizes a text within a miniature image and returns it as an eVision.EasyDeepOCR.ETextLine.
The returned text will conform to the eVision.ETopologyLine if one is provided via the topologyLineIndex parameter. The miniature image can be provided directly or extracted from a larger ROI using an eVision.ERectangle or an eVision.ERegion. If the text in the miniature image is not oriented along the standard reading direction, setting automaticReadingDirection to true will attempt to detect and adjust for the correct reading orientation. When eVision.EasyDeepOCR.ETextReader.HasTextAngle is true, automaticReadingDirection is ignored and the reading orientation is chosen as the closest to eVision.EasyDeepOCR.ETextReader.TextAngle. Otherewise, To ensure the oriented rectangle obtained from the region is deterministic, the reader will always snap the orientation to the horizontal axis (changing the width and height accordingly).
| roi | The source ROI from which to extract the miniature image. |
| region | Defines the area within the source ROI to extract as the miniature image. |
| automaticReadingDirection | When true, automatically detects the reading direction of the text. Default is false. |
| eVision.EasyDeepOCR.ETextLine eVision.EasyDeepOCR.ETextReader.Recognize | ( | self, | |
| eVision.EBaseROI | roi, | ||
| eVision.ERegion | region, | ||
| eVision.EFrame | frame ) |
Recognizes a text within a miniature image and returns it as an eVision.EasyDeepOCR.ETextLine.
The returned text will conform to the eVision.ETopologyLine if one is provided via the topologyLineIndex parameter. The miniature image can be provided directly or extracted from a larger ROI using an eVision.ERectangle or an eVision.ERegion. If the text in the miniature image is not oriented along the standard reading direction, setting automaticReadingDirection to true will attempt to detect and adjust for the correct reading orientation. When eVision.EasyDeepOCR.ETextReader.HasTextAngle is true, automaticReadingDirection is ignored and the reading orientation is chosen as the closest to eVision.EasyDeepOCR.ETextReader.TextAngle. Otherewise, To ensure the oriented rectangle obtained from the region is deterministic, the reader will always snap the orientation to the horizontal axis (changing the width and height accordingly).
| roi | The source ROI from which to extract the miniature image. |
| region | Defines the area within the source ROI to extract as the miniature image. |
| frame | Reference frame of the input region. |
| eVision.EasyDeepOCR.ETextLine eVision.EasyDeepOCR.ETextReader.Recognize | ( | self, | |
| eVision.EBaseROI | roi, | ||
| eVision.ERegion | region, | ||
| eVision.EFrame | frame, | ||
| bool | automaticReadingDirection ) |
Recognizes a text within a miniature image and returns it as an eVision.EasyDeepOCR.ETextLine.
The returned text will conform to the eVision.ETopologyLine if one is provided via the topologyLineIndex parameter. The miniature image can be provided directly or extracted from a larger ROI using an eVision.ERectangle or an eVision.ERegion. If the text in the miniature image is not oriented along the standard reading direction, setting automaticReadingDirection to true will attempt to detect and adjust for the correct reading orientation. When eVision.EasyDeepOCR.ETextReader.HasTextAngle is true, automaticReadingDirection is ignored and the reading orientation is chosen as the closest to eVision.EasyDeepOCR.ETextReader.TextAngle. Otherewise, To ensure the oriented rectangle obtained from the region is deterministic, the reader will always snap the orientation to the horizontal axis (changing the width and height accordingly).
| roi | The source ROI from which to extract the miniature image. |
| region | Defines the area within the source ROI to extract as the miniature image. |
| frame | Reference frame of the input region. |
| automaticReadingDirection | When true, automatically detects the reading direction of the text. Default is false. |
| eVision.EasyDeepOCR.ETextLine eVision.EasyDeepOCR.ETextReader.Recognize | ( | self, | |
| eVision.EBaseROI | roi, | ||
| eVision.ERegion | region, | ||
| eVision.EFrame | frame, | ||
| int | topologyLineIndex ) |
Recognizes a text within a miniature image and returns it as an eVision.EasyDeepOCR.ETextLine.
The returned text will conform to the eVision.ETopologyLine if one is provided via the topologyLineIndex parameter. The miniature image can be provided directly or extracted from a larger ROI using an eVision.ERectangle or an eVision.ERegion. If the text in the miniature image is not oriented along the standard reading direction, setting automaticReadingDirection to true will attempt to detect and adjust for the correct reading orientation. When eVision.EasyDeepOCR.ETextReader.HasTextAngle is true, automaticReadingDirection is ignored and the reading orientation is chosen as the closest to eVision.EasyDeepOCR.ETextReader.TextAngle. Otherewise, To ensure the oriented rectangle obtained from the region is deterministic, the reader will always snap the orientation to the horizontal axis (changing the width and height accordingly).
| roi | The source ROI from which to extract the miniature image. |
| region | Defines the area within the source ROI to extract as the miniature image. |
| frame | Reference frame of the input region. |
| topologyLineIndex | The index of the eVision.ETopologyLine to use for text recognition constraints. |
| eVision.EasyDeepOCR.ETextLine eVision.EasyDeepOCR.ETextReader.Recognize | ( | self, | |
| eVision.EBaseROI | roi, | ||
| eVision.ERegion | region, | ||
| eVision.EFrame | frame, | ||
| int | topologyLineIndex, | ||
| bool | automaticReadingDirection ) |
Recognizes a text within a miniature image and returns it as an eVision.EasyDeepOCR.ETextLine.
The returned text will conform to the eVision.ETopologyLine if one is provided via the topologyLineIndex parameter. The miniature image can be provided directly or extracted from a larger ROI using an eVision.ERectangle or an eVision.ERegion. If the text in the miniature image is not oriented along the standard reading direction, setting automaticReadingDirection to true will attempt to detect and adjust for the correct reading orientation. When eVision.EasyDeepOCR.ETextReader.HasTextAngle is true, automaticReadingDirection is ignored and the reading orientation is chosen as the closest to eVision.EasyDeepOCR.ETextReader.TextAngle. Otherewise, To ensure the oriented rectangle obtained from the region is deterministic, the reader will always snap the orientation to the horizontal axis (changing the width and height accordingly).
| roi | The source ROI from which to extract the miniature image. |
| region | Defines the area within the source ROI to extract as the miniature image. |
| frame | Reference frame of the input region. |
| topologyLineIndex | The index of the eVision.ETopologyLine to use for text recognition constraints. |
| automaticReadingDirection | When true, automatically detects the reading direction of the text. Default is false. |
| eVision.EasyDeepOCR.ETextLine eVision.EasyDeepOCR.ETextReader.Recognize | ( | self, | |
| eVision.EBaseROI | roi, | ||
| eVision.ERegion | region, | ||
| int | topologyLineIndex ) |
Recognizes a text within a miniature image and returns it as an eVision.EasyDeepOCR.ETextLine.
The returned text will conform to the eVision.ETopologyLine if one is provided via the topologyLineIndex parameter. The miniature image can be provided directly or extracted from a larger ROI using an eVision.ERectangle or an eVision.ERegion. If the text in the miniature image is not oriented along the standard reading direction, setting automaticReadingDirection to true will attempt to detect and adjust for the correct reading orientation. When eVision.EasyDeepOCR.ETextReader.HasTextAngle is true, automaticReadingDirection is ignored and the reading orientation is chosen as the closest to eVision.EasyDeepOCR.ETextReader.TextAngle. Otherewise, To ensure the oriented rectangle obtained from the region is deterministic, the reader will always snap the orientation to the horizontal axis (changing the width and height accordingly).
| roi | The source ROI from which to extract the miniature image. |
| region | Defines the area within the source ROI to extract as the miniature image. |
| topologyLineIndex | The index of the eVision.ETopologyLine to use for text recognition constraints. |
| eVision.EasyDeepOCR.ETextLine eVision.EasyDeepOCR.ETextReader.Recognize | ( | self, | |
| eVision.EBaseROI | roi, | ||
| eVision.ERegion | region, | ||
| int | topologyLineIndex, | ||
| bool | automaticReadingDirection ) |
Recognizes a text within a miniature image and returns it as an eVision.EasyDeepOCR.ETextLine.
The returned text will conform to the eVision.ETopologyLine if one is provided via the topologyLineIndex parameter. The miniature image can be provided directly or extracted from a larger ROI using an eVision.ERectangle or an eVision.ERegion. If the text in the miniature image is not oriented along the standard reading direction, setting automaticReadingDirection to true will attempt to detect and adjust for the correct reading orientation. When eVision.EasyDeepOCR.ETextReader.HasTextAngle is true, automaticReadingDirection is ignored and the reading orientation is chosen as the closest to eVision.EasyDeepOCR.ETextReader.TextAngle. Otherewise, To ensure the oriented rectangle obtained from the region is deterministic, the reader will always snap the orientation to the horizontal axis (changing the width and height accordingly).
| roi | The source ROI from which to extract the miniature image. |
| region | Defines the area within the source ROI to extract as the miniature image. |
| topologyLineIndex | The index of the eVision.ETopologyLine to use for text recognition constraints. |
| automaticReadingDirection | When true, automatically detects the reading direction of the text. Default is false. |
| None eVision.EasyDeepOCR.ETextReader.ResetLocationCustomModel | ( | self | ) |
Removes any location custom model that was previously set and use the default location model.
| None eVision.EasyDeepOCR.ETextReader.ResetOptimization | ( | self | ) |
Forgets the optimal parameters previously set by eVision.EasyDeepOCR.ETextReader.Optimize.
| None eVision.EasyDeepOCR.ETextReader.ResetOrientationCustomModel | ( | self | ) |
Removes any orientation custom model that was previously set and use the default orientation model.
| None eVision.EasyDeepOCR.ETextReader.ResetRecognitionCustomModel | ( | self | ) |
Removes any recognition custom model that was previously set and use the default recognition model.
| None eVision.EasyDeepOCR.ETextReader.ResetTopology | ( | self | ) |
Forgets the eVision.ETopology previously set.
| None eVision.EasyDeepOCR.ETextReader.Save | ( | self, | |
| eVision.ESerializer | None | serializer ) |
Saves the eVision.EasyDeepOCR.ETextReader.
| serializer | - |
| None eVision.EasyDeepOCR.ETextReader.Save | ( | self, | |
| str | path ) |
Saves the eVision.EasyDeepOCR.ETextReader.
| path | Path where to save the eVision.EasyDeepOCR.ETextReader. |
| None eVision.EasyDeepOCR.ETextReader.SetTextLineHeight | ( | self, | |
| int | minHeight, | ||
| int | maxHeight ) |
Sets the range for the text line height.
All returned text lines will have a height in the range [minHeight, maxHeight]. Any text line that does not fit this constraint, will be discarded. By default, it is not set, so no filtering is applied.
| minHeight | Lower bound for the line height range. |
| maxHeight | Upper bound for the line height range. |
| float eVision.EasyDeepOCR.ETextReader.TextAngle | ( | self | ) |
Angle hint for the text to be found.
| eVision.EasyDeepOCR.ETextReader.TextAngle | ( | self, | |
| float | value ) |
Angle hint for the text to be found.
| eVision.EFloatRange eVision.EasyDeepOCR.ETextReader.TextLineHeight | ( | self | ) |
Gets the range for the text line height.
Throws if not previously set. By default, it is not set, so no filtering is applied.
| eVision.ETopology eVision.EasyDeepOCR.ETextReader.Topology | ( | self | ) |
| eVision.EasyDeepOCR.ETextReader.Topology | ( | self, | |
| eVision.ETopology | value ) |
| None eVision.EasyDeepOCR.ETextReader.UnsetTextAngle | ( | self | ) |
Unsets the text angle hint.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |