A ETextReader aims to find and read texts inside a given ROI, through ETextReader::Read. The returned texts can be filtered by providing a ETopology. An optimization phase can be performed before starting to read, to increase the processing speed of ETextReader. This optimization phase can be launched with ETextReader::Optimize. More...
#include <eVision/EasyOcr/EasyDeepOCR/ETextReader.h>
Public Member Functions | |
| ETextReader () | |
| Creates a ETextReader. | |
| ETextReader (const eVision::EasyDeepOCR::ETextReader &other) | |
| Creates a ETextReader. | |
| virtual | ~ETextReader () throw () |
| eVision::EasyDeepOCR::ETextReader & | operator= (const eVision::EasyDeepOCR::ETextReader &other) |
| Assignment operator. | |
| bool | operator== (const eVision::EasyDeepOCR::ETextReader &other) const |
| Checks if this ETextReader instance is strictly equal to another ETextReader instance. | |
| bool | IsEqual (const eVision::EasyDeepOCR::ETextReader &other) const |
| Checks if this ETextReader instance is strictly equal to another ETextReader instance. | |
| void | Load (const std::string &path) |
| Loads the ETextReader. | |
| void | Load (eVision::ESerializer *serializer) |
| Loads the ETextReader. | |
| void | Save (const std::string &path) |
| Saves the ETextReader. | |
| void | Save (eVision::ESerializer *serializer) |
| Saves the ETextReader. | |
| void | Initialize () |
| Initializes the ETextReader. ETextReader must be initialized before using ETextReader::Read. | |
| bool | IsInitialized () const |
| Returns true if the ETextReader is initialized. | |
| void | SetTopology (const eVision::ETopology &topology) |
| ETopology of the ETextReader. | |
| eVision::ETopology | GetTopology () const |
| ETopology of the ETextReader. | |
| bool | GetHasTopology () const |
| Returns true if the ETopology is set. | |
| void | ResetTopology () |
| Forgets the ETopology previously set. | |
| void | SetExecutionSettings (const eVision::EasyDeepLearning::EDeepLearningExecutionSettings &executionSettings) |
| EDeepLearningExecutionSettings used by the ETextReader. | |
| eVision::EasyDeepLearning::EDeepLearningExecutionSettings | GetExecutionSettings () const |
| EDeepLearningExecutionSettings used by the ETextReader. | |
| void | SetTextLineHeight (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. | |
| eVision::EFloatRange | GetTextLineHeight () const |
| Gets the range for the text line height. Throws if not previously set. By default, it is not set, so no filtering is applied. | |
| void | SetTextAngle (float arg0) |
| Angle hint for the text to be found. | |
| float | GetTextAngle () const |
| Angle hint for the text to be found. | |
| bool | GetHasTextAngle () const |
| Returns true if the text angle hint is defined. | |
| void | UnsetTextAngle () |
| Unsets the text angle hint. | |
| eVision::EasyDeepOCR::EOptimizationReport | Optimize (const eVision::EasyDeepOCR::ESampleList &samples) |
| Sets the optimal internal parameters by finding the text in the corresponding input image, for each ESample. | |
| eVision::EasyDeepOCR::EOptimizationReport | Optimize (const eVision::EasyDeepOCR::ESampleList &samples, eVision::EImageType imageType) |
| Sets the optimal internal parameters by finding the text in the corresponding input image, for each ESample. | |
| eVision::EasyDeepOCR::EOptimizationReport | Optimize (const eVision::EasyDeepOCR::EOptimizationReport &optimizationReport) |
| Sets the optimal internal parameters by finding the text in the corresponding input image, for each ESample. | |
| bool | IsOptimized () const |
| Returns true if the ETextReader has been optimized with a call to ETextReader::Optimize, and false otherwise. | |
| void | ResetOptimization () |
| Forgets the optimal parameters previously set by ETextReader::Optimize. | |
| void | SetLocationCustomModelPath (const std::string &modelPath) |
| Sets a location custom model using the path to a saved EDeepOCRTool (user trained model). | |
| void | SetLocationCustomModel (const eVision::EasyDeepLearning::EDeepOCRTool &tool) |
| Sets a location custom model from a EDeepOCRTool object (user trained model). | |
| bool | GetHasLocationCustomModel () const |
| Whether the reader has a location custom model. | |
| bool | HasLocationCustomModel () const |
| Whether the reader has a location custom model. | |
| void | ResetLocationCustomModel () |
| Removes any location custom model that was previously set and use the default location model. | |
| void | SetRecognitionCustomModelPath (const std::string &modelPath) |
| Sets a recognition custom model using the path to a saved EDeepOCRTool (user trained model). | |
| void | SetRecognitionCustomModel (const eVision::EasyDeepLearning::EDeepOCRTool &tool) |
| Sets a recognition custom model from a EDeepOCRTool object (user trained model). | |
| bool | GetHasRecognitionCustomModel () const |
| Whether the reader has a recognition custom model. | |
| bool | HasRecognitionCustomModel () const |
| Whether the reader has a recognition custom model. | |
| void | ResetRecognitionCustomModel () |
| Removes any recognition custom model that was previously set and use the default recognition model. | |
| void | SetOrientationCustomModelPath (const std::string &modelPath) |
| Sets an orientation custom model using the path to a saved EDeepOCRTool (user trained model). | |
| void | SetOrientationCustomModel (const eVision::EasyDeepLearning::EDeepOCRTool &tool) |
| Sets an orientation custom model from a EDeepOCRTool object (user trained model). | |
| bool | GetHasOrientationCustomModel () const |
| Whether the reader has a orientation custom model. | |
| bool | HasOrientationCustomModel () const |
| Whether the reader has a orientation custom model. | |
| void | ResetOrientationCustomModel () |
| Removes any orientation custom model that was previously set and use the default orientation model. | |
| std::vector< eVision::EasyDeepOCR::EText > | Read (const eVision::EBaseROI &roi) const |
| Reads texts inside an EBaseROI. Texts are returned as EText. Texts comply with the ETopology previously specified with ETextReader::SetTopology, if any. The processing speed can be increased with ETextReader::Optimize. | |
| std::vector< eVision::EasyDeepOCR::EText > | Read (const eVision::EBaseROI &roi, const eVision::ERegion ®ion) const |
| Reads texts inside an EBaseROI. Texts are returned as EText. Texts comply with the ETopology previously specified with ETextReader::SetTopology, if any. The processing speed can be increased with ETextReader::Optimize. | |
| std::vector< eVision::EasyDeepOCR::EText > | Read (const eVision::EBaseROI &roi, const eVision::ERegion ®ion, const eVision::EFrame &frame) const |
| Reads texts inside an EBaseROI. Texts are returned as EText. Texts comply with the ETopology previously specified with ETextReader::SetTopology, if any. The processing speed can be increased with ETextReader::Optimize. | |
| std::vector< eVision::EasyDeepOCR::EText > | Read (const eVision::EBaseROI &roi, const eVision::EFrame &frame) const |
| Reads texts inside an EBaseROI. Texts are returned as EText. Texts comply with the ETopology previously specified with ETextReader::SetTopology, if any. The processing speed can be increased with ETextReader::Optimize. | |
| std::vector< eVision::ERectangle > | Localize (const eVision::EBaseROI &roi) const |
| Localizes the texts within a specified region of interest (ROI). Returns the detected text areas as ERectangles. | |
| std::vector< eVision::ERectangle > | Localize (const eVision::EBaseROI &roi, const eVision::ERegion ®ion) const |
| Localizes the texts within a specified region of interest (ROI). Returns the detected text areas as ERectangles. | |
| std::vector< eVision::ERectangle > | Localize (const eVision::EBaseROI &roi, const eVision::ERegion ®ion, const eVision::EFrame &frame) const |
| Localizes the texts within a specified region of interest (ROI). Returns the detected text areas as ERectangles. | |
| std::vector< eVision::ERectangle > | Localize (const eVision::EBaseROI &roi, const eVision::EFrame &frame) const |
| Localizes the texts within a specified region of interest (ROI). Returns the detected text areas as ERectangles. | |
| std::vector< eVision::ERectangle > | Locate (const eVision::EBaseROI &roi) const |
| Locates the texts within a specified region of interest (ROI). Returns the detected text areas as ERectangles. | |
| std::vector< eVision::ERectangle > | Locate (const eVision::EBaseROI &roi, const eVision::ERegion ®ion) const |
| Locates the texts within a specified region of interest (ROI). Returns the detected text areas as ERectangles. | |
| std::vector< eVision::ERectangle > | Locate (const eVision::EBaseROI &roi, const eVision::ERegion ®ion, const eVision::EFrame &frame) const |
| Locates the texts within a specified region of interest (ROI). Returns the detected text areas as ERectangles. | |
| std::vector< eVision::ERectangle > | Locate (const eVision::EBaseROI &roi, const eVision::EFrame &frame) const |
| Locates the texts within a specified region of interest (ROI). Returns the detected text areas as ERectangles. | |
| eVision::EasyDeepOCR::ETextLine | Recognize (const eVision::EBaseROI &miniature, bool automaticReadingDirection) const |
| Recognizes a text within a miniature image and returns it as an ETextLine. The returned text will conform to the ETopologyLine if one is provided via the topologyLineIndex parameter. The miniature image can be provided directly or extracted from a larger ROI using an ERectangle or an 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 ETextReader::GetHasTextAngle is true, automaticReadingDirection is ignored and the reading orientation is chosen as the closest to ETextReader::SetTextAngle. 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). | |
| eVision::EasyDeepOCR::ETextLine | Recognize (const eVision::EBaseROI &miniature) const |
| Recognizes a text within a miniature image and returns it as an ETextLine. The returned text will conform to the ETopologyLine if one is provided via the topologyLineIndex parameter. The miniature image can be provided directly or extracted from a larger ROI using an ERectangle or an 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 ETextReader::GetHasTextAngle is true, automaticReadingDirection is ignored and the reading orientation is chosen as the closest to ETextReader::SetTextAngle. 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). | |
| eVision::EasyDeepOCR::ETextLine | Recognize (const eVision::EBaseROI &miniature, uint32_t topologyLineIndex, bool automaticReadingDirection) const |
| Recognizes a text within a miniature image and returns it as an ETextLine. The returned text will conform to the ETopologyLine if one is provided via the topologyLineIndex parameter. The miniature image can be provided directly or extracted from a larger ROI using an ERectangle or an 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 ETextReader::GetHasTextAngle is true, automaticReadingDirection is ignored and the reading orientation is chosen as the closest to ETextReader::SetTextAngle. 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). | |
| eVision::EasyDeepOCR::ETextLine | Recognize (const eVision::EBaseROI &miniature, uint32_t topologyLineIndex) const |
| Recognizes a text within a miniature image and returns it as an ETextLine. The returned text will conform to the ETopologyLine if one is provided via the topologyLineIndex parameter. The miniature image can be provided directly or extracted from a larger ROI using an ERectangle or an 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 ETextReader::GetHasTextAngle is true, automaticReadingDirection is ignored and the reading orientation is chosen as the closest to ETextReader::SetTextAngle. 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). | |
| eVision::EasyDeepOCR::ETextLine | Recognize (const eVision::EBaseROI &roi, const eVision::ERectangle &rectangle, bool automaticReadingDirection) const |
| Recognizes a text within a miniature image and returns it as an ETextLine. The returned text will conform to the ETopologyLine if one is provided via the topologyLineIndex parameter. The miniature image can be provided directly or extracted from a larger ROI using an ERectangle or an 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 ETextReader::GetHasTextAngle is true, automaticReadingDirection is ignored and the reading orientation is chosen as the closest to ETextReader::SetTextAngle. 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). | |
| eVision::EasyDeepOCR::ETextLine | Recognize (const eVision::EBaseROI &roi, const eVision::ERectangle &rectangle) const |
| Recognizes a text within a miniature image and returns it as an ETextLine. The returned text will conform to the ETopologyLine if one is provided via the topologyLineIndex parameter. The miniature image can be provided directly or extracted from a larger ROI using an ERectangle or an 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 ETextReader::GetHasTextAngle is true, automaticReadingDirection is ignored and the reading orientation is chosen as the closest to ETextReader::SetTextAngle. 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). | |
| eVision::EasyDeepOCR::ETextLine | Recognize (const eVision::EBaseROI &roi, const eVision::ERectangle &rectangle, uint32_t topologyLineIndex, bool automaticReadingDirection) const |
| Recognizes a text within a miniature image and returns it as an ETextLine. The returned text will conform to the ETopologyLine if one is provided via the topologyLineIndex parameter. The miniature image can be provided directly or extracted from a larger ROI using an ERectangle or an 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 ETextReader::GetHasTextAngle is true, automaticReadingDirection is ignored and the reading orientation is chosen as the closest to ETextReader::SetTextAngle. 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). | |
| eVision::EasyDeepOCR::ETextLine | Recognize (const eVision::EBaseROI &roi, const eVision::ERectangle &rectangle, uint32_t topologyLineIndex) const |
| Recognizes a text within a miniature image and returns it as an ETextLine. The returned text will conform to the ETopologyLine if one is provided via the topologyLineIndex parameter. The miniature image can be provided directly or extracted from a larger ROI using an ERectangle or an 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 ETextReader::GetHasTextAngle is true, automaticReadingDirection is ignored and the reading orientation is chosen as the closest to ETextReader::SetTextAngle. 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). | |
| eVision::EasyDeepOCR::ETextLine | Recognize (const eVision::EBaseROI &roi, const eVision::ERectangle &rectangle, const eVision::EFrame &frame, bool automaticReadingDirection) const |
| Recognizes a text within a miniature image and returns it as an ETextLine. The returned text will conform to the ETopologyLine if one is provided via the topologyLineIndex parameter. The miniature image can be provided directly or extracted from a larger ROI using an ERectangle or an 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 ETextReader::GetHasTextAngle is true, automaticReadingDirection is ignored and the reading orientation is chosen as the closest to ETextReader::SetTextAngle. 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). | |
| eVision::EasyDeepOCR::ETextLine | Recognize (const eVision::EBaseROI &roi, const eVision::ERectangle &rectangle, const eVision::EFrame &frame) const |
| Recognizes a text within a miniature image and returns it as an ETextLine. The returned text will conform to the ETopologyLine if one is provided via the topologyLineIndex parameter. The miniature image can be provided directly or extracted from a larger ROI using an ERectangle or an 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 ETextReader::GetHasTextAngle is true, automaticReadingDirection is ignored and the reading orientation is chosen as the closest to ETextReader::SetTextAngle. 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). | |
| eVision::EasyDeepOCR::ETextLine | Recognize (const eVision::EBaseROI &roi, const eVision::ERectangle &rectangle, const eVision::EFrame &frame, uint32_t topologyLineIndex, bool automaticReadingDirection) const |
| Recognizes a text within a miniature image and returns it as an ETextLine. The returned text will conform to the ETopologyLine if one is provided via the topologyLineIndex parameter. The miniature image can be provided directly or extracted from a larger ROI using an ERectangle or an 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 ETextReader::GetHasTextAngle is true, automaticReadingDirection is ignored and the reading orientation is chosen as the closest to ETextReader::SetTextAngle. 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). | |
| eVision::EasyDeepOCR::ETextLine | Recognize (const eVision::EBaseROI &roi, const eVision::ERectangle &rectangle, const eVision::EFrame &frame, uint32_t topologyLineIndex) const |
| Recognizes a text within a miniature image and returns it as an ETextLine. The returned text will conform to the ETopologyLine if one is provided via the topologyLineIndex parameter. The miniature image can be provided directly or extracted from a larger ROI using an ERectangle or an 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 ETextReader::GetHasTextAngle is true, automaticReadingDirection is ignored and the reading orientation is chosen as the closest to ETextReader::SetTextAngle. 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). | |
| eVision::EasyDeepOCR::ETextLine | Recognize (const eVision::EBaseROI &roi, const eVision::ERegion ®ion, bool automaticReadingDirection) const |
| Recognizes a text within a miniature image and returns it as an ETextLine. The returned text will conform to the ETopologyLine if one is provided via the topologyLineIndex parameter. The miniature image can be provided directly or extracted from a larger ROI using an ERectangle or an 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 ETextReader::GetHasTextAngle is true, automaticReadingDirection is ignored and the reading orientation is chosen as the closest to ETextReader::SetTextAngle. 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). | |
| eVision::EasyDeepOCR::ETextLine | Recognize (const eVision::EBaseROI &roi, const eVision::ERegion ®ion) const |
| Recognizes a text within a miniature image and returns it as an ETextLine. The returned text will conform to the ETopologyLine if one is provided via the topologyLineIndex parameter. The miniature image can be provided directly or extracted from a larger ROI using an ERectangle or an 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 ETextReader::GetHasTextAngle is true, automaticReadingDirection is ignored and the reading orientation is chosen as the closest to ETextReader::SetTextAngle. 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). | |
| eVision::EasyDeepOCR::ETextLine | Recognize (const eVision::EBaseROI &roi, const eVision::ERegion ®ion, uint32_t topologyLineIndex, bool automaticReadingDirection) const |
| Recognizes a text within a miniature image and returns it as an ETextLine. The returned text will conform to the ETopologyLine if one is provided via the topologyLineIndex parameter. The miniature image can be provided directly or extracted from a larger ROI using an ERectangle or an 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 ETextReader::GetHasTextAngle is true, automaticReadingDirection is ignored and the reading orientation is chosen as the closest to ETextReader::SetTextAngle. 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). | |
| eVision::EasyDeepOCR::ETextLine | Recognize (const eVision::EBaseROI &roi, const eVision::ERegion ®ion, uint32_t topologyLineIndex) const |
| Recognizes a text within a miniature image and returns it as an ETextLine. The returned text will conform to the ETopologyLine if one is provided via the topologyLineIndex parameter. The miniature image can be provided directly or extracted from a larger ROI using an ERectangle or an 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 ETextReader::GetHasTextAngle is true, automaticReadingDirection is ignored and the reading orientation is chosen as the closest to ETextReader::SetTextAngle. 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). | |
| eVision::EasyDeepOCR::ETextLine | Recognize (const eVision::EBaseROI &roi, const eVision::ERegion ®ion, const eVision::EFrame &frame, bool automaticReadingDirection) const |
| Recognizes a text within a miniature image and returns it as an ETextLine. The returned text will conform to the ETopologyLine if one is provided via the topologyLineIndex parameter. The miniature image can be provided directly or extracted from a larger ROI using an ERectangle or an 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 ETextReader::GetHasTextAngle is true, automaticReadingDirection is ignored and the reading orientation is chosen as the closest to ETextReader::SetTextAngle. 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). | |
| eVision::EasyDeepOCR::ETextLine | Recognize (const eVision::EBaseROI &roi, const eVision::ERegion ®ion, const eVision::EFrame &frame) const |
| Recognizes a text within a miniature image and returns it as an ETextLine. The returned text will conform to the ETopologyLine if one is provided via the topologyLineIndex parameter. The miniature image can be provided directly or extracted from a larger ROI using an ERectangle or an 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 ETextReader::GetHasTextAngle is true, automaticReadingDirection is ignored and the reading orientation is chosen as the closest to ETextReader::SetTextAngle. 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). | |
| eVision::EasyDeepOCR::ETextLine | Recognize (const eVision::EBaseROI &roi, const eVision::ERegion ®ion, const eVision::EFrame &frame, uint32_t topologyLineIndex, bool automaticReadingDirection) const |
| Recognizes a text within a miniature image and returns it as an ETextLine. The returned text will conform to the ETopologyLine if one is provided via the topologyLineIndex parameter. The miniature image can be provided directly or extracted from a larger ROI using an ERectangle or an 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 ETextReader::GetHasTextAngle is true, automaticReadingDirection is ignored and the reading orientation is chosen as the closest to ETextReader::SetTextAngle. 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). | |
| eVision::EasyDeepOCR::ETextLine | Recognize (const eVision::EBaseROI &roi, const eVision::ERegion ®ion, const eVision::EFrame &frame, uint32_t topologyLineIndex) const |
| Recognizes a text within a miniature image and returns it as an ETextLine. The returned text will conform to the ETopologyLine if one is provided via the topologyLineIndex parameter. The miniature image can be provided directly or extracted from a larger ROI using an ERectangle or an 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 ETextReader::GetHasTextAngle is true, automaticReadingDirection is ignored and the reading orientation is chosen as the closest to ETextReader::SetTextAngle. 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). | |
| std::vector< eVision::EasyDeepOCR::EText > | Merge (const std::vector< eVision::EasyDeepOCR::ETextLine > &textlines) const |
| Merges geometrically consistent ETextLines into structured ETexts satisfying the specified ETextReader::SetTopology. Throws if no ETextReader::SetTopology has been specified. | |
| ETextReader (CppWrapperInternal::InternalConstructor) | |
Public Attributes | |
| CppWrapperInternal::WrappedClass | wrappedClass_ |
A ETextReader aims to find and read texts inside a given ROI, through ETextReader::Read. The returned texts can be filtered by providing a ETopology. An optimization phase can be performed before starting to read, to increase the processing speed of ETextReader. This optimization phase can be launched with ETextReader::Optimize.
License(s): EasyDeepOCR
| eVision::EasyDeepOCR::ETextReader::ETextReader | ( | ) |
Creates a ETextReader.
| eVision::EasyDeepOCR::ETextReader::ETextReader | ( | const eVision::EasyDeepOCR::ETextReader & | other | ) |
Creates a ETextReader.
| other | Another ETextReader to be copied in the new ETextReader. |
|
virtual | ||||||||||||
| eVision::EasyDeepOCR::ETextReader::ETextReader | ( | CppWrapperInternal::InternalConstructor | ) |
| eVision::EasyDeepLearning::EDeepLearningExecutionSettings eVision::EasyDeepOCR::ETextReader::GetExecutionSettings | ( | ) | const |
EDeepLearningExecutionSettings used by the ETextReader.
| bool eVision::EasyDeepOCR::ETextReader::GetHasLocationCustomModel | ( | ) | const |
Whether the reader has a location custom model.
| bool eVision::EasyDeepOCR::ETextReader::GetHasOrientationCustomModel | ( | ) | const |
Whether the reader has a orientation custom model.
| bool eVision::EasyDeepOCR::ETextReader::GetHasRecognitionCustomModel | ( | ) | const |
Whether the reader has a recognition custom model.
| bool eVision::EasyDeepOCR::ETextReader::GetHasTextAngle | ( | ) | const |
Returns true if the text angle hint is defined.
| bool eVision::EasyDeepOCR::ETextReader::GetHasTopology | ( | ) | const |
Returns true if the ETopology is set.
| float eVision::EasyDeepOCR::ETextReader::GetTextAngle | ( | ) | const |
Angle hint for the text to be found.
| eVision::EFloatRange eVision::EasyDeepOCR::ETextReader::GetTextLineHeight | ( | ) | const |
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::GetTopology | ( | ) | const |
ETopology of the ETextReader.
| bool eVision::EasyDeepOCR::ETextReader::HasLocationCustomModel | ( | ) | const |
Whether the reader has a location custom model.
Use ETextReader::GetHasLocationCustomModel instead.
Deprecated in version 26.10. Scheduled to be removed in version 27.10.
| bool eVision::EasyDeepOCR::ETextReader::HasOrientationCustomModel | ( | ) | const |
Whether the reader has a orientation custom model.
Use ETextReader::GetHasOrientationCustomModel instead.
Deprecated in version 26.10. Scheduled to be removed in version 27.10.
| bool eVision::EasyDeepOCR::ETextReader::HasRecognitionCustomModel | ( | ) | const |
Whether the reader has a recognition custom model.
Use ETextReader::GetHasRecognitionCustomModel instead.
Deprecated in version 26.10. Scheduled to be removed in version 27.10.
| void eVision::EasyDeepOCR::ETextReader::Initialize | ( | ) |
Initializes the ETextReader. ETextReader must be initialized before using ETextReader::Read.
| bool eVision::EasyDeepOCR::ETextReader::IsEqual | ( | const eVision::EasyDeepOCR::ETextReader & | other | ) | const |
Checks if this ETextReader instance is strictly equal to another ETextReader instance.
| other | Reference to the ETextReader instance to compare with |
| bool eVision::EasyDeepOCR::ETextReader::IsInitialized | ( | ) | const |
Returns true if the ETextReader is initialized.
| bool eVision::EasyDeepOCR::ETextReader::IsOptimized | ( | ) | const |
Returns true if the ETextReader has been optimized with a call to ETextReader::Optimize, and false otherwise.
| void eVision::EasyDeepOCR::ETextReader::Load | ( | const std::string & | path | ) |
Loads the ETextReader.
| path | Path where to save the ETextReader. |
| void eVision::EasyDeepOCR::ETextReader::Load | ( | eVision::ESerializer * | serializer | ) |
Loads the ETextReader.
| serializer |
| std::vector< eVision::ERectangle > eVision::EasyDeepOCR::ETextReader::Localize | ( | const eVision::EBaseROI & | roi | ) | const |
Localizes the texts within a specified region of interest (ROI). Returns the detected text areas as ERectangles.
| roi | The region of interest (ROI) in which to search for text. Only EROIBW8 and EROIC24 are supported. |
Use ETextReader::Locate instead.
Deprecated in version 26.6. Scheduled to be removed in version 27.6.
| std::vector< eVision::ERectangle > eVision::EasyDeepOCR::ETextReader::Localize | ( | const eVision::EBaseROI & | roi, |
| const eVision::EFrame & | frame ) const |
Localizes the texts within a specified region of interest (ROI). Returns the detected text areas as ERectangles.
| roi | The region of interest (ROI) in which to search for text. Only EROIBW8 and EROIC24 are supported. |
| frame | Reference frame of the input region. |
Use ETextReader::Locate instead.
Deprecated in version 26.6. Scheduled to be removed in version 27.6.
| std::vector< eVision::ERectangle > eVision::EasyDeepOCR::ETextReader::Localize | ( | const eVision::EBaseROI & | roi, |
| const eVision::ERegion & | region ) const |
Localizes the texts within a specified region of interest (ROI). Returns the detected text areas as ERectangles.
| roi | The region of interest (ROI) in which to search for text. Only EROIBW8 and EROIC24 are supported. |
| region | Optional parameter that specifies a sub-region within the ROI to limit the text search area. |
Use ETextReader::Locate instead.
Deprecated in version 26.6. Scheduled to be removed in version 27.6.
| std::vector< eVision::ERectangle > eVision::EasyDeepOCR::ETextReader::Localize | ( | const eVision::EBaseROI & | roi, |
| const eVision::ERegion & | region, | ||
| const eVision::EFrame & | frame ) const |
Localizes the texts within a specified region of interest (ROI). Returns the detected text areas as ERectangles.
| roi | The region of interest (ROI) in which to search for text. Only EROIBW8 and 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. |
Use ETextReader::Locate instead.
Deprecated in version 26.6. Scheduled to be removed in version 27.6.
| std::vector< eVision::ERectangle > eVision::EasyDeepOCR::ETextReader::Locate | ( | const eVision::EBaseROI & | roi | ) | const |
Locates the texts within a specified region of interest (ROI). Returns the detected text areas as ERectangles.
| std::vector< eVision::ERectangle > eVision::EasyDeepOCR::ETextReader::Locate | ( | const eVision::EBaseROI & | roi, |
| const eVision::EFrame & | frame ) const |
Locates the texts within a specified region of interest (ROI). Returns the detected text areas as ERectangles.
| std::vector< eVision::ERectangle > eVision::EasyDeepOCR::ETextReader::Locate | ( | const eVision::EBaseROI & | roi, |
| const eVision::ERegion & | region ) const |
Locates the texts within a specified region of interest (ROI). Returns the detected text areas as ERectangles.
| std::vector< eVision::ERectangle > eVision::EasyDeepOCR::ETextReader::Locate | ( | const eVision::EBaseROI & | roi, |
| const eVision::ERegion & | region, | ||
| const eVision::EFrame & | frame ) const |
Locates the texts within a specified region of interest (ROI). Returns the detected text areas as ERectangles.
| std::vector< eVision::EasyDeepOCR::EText > eVision::EasyDeepOCR::ETextReader::Merge | ( | const std::vector< eVision::EasyDeepOCR::ETextLine > & | textlines | ) | const |
Merges geometrically consistent ETextLines into structured ETexts satisfying the specified ETextReader::SetTopology. Throws if no ETextReader::SetTopology has been specified.
| textlines | A collection of ETextLine candidates to be merged. |
| eVision::EasyDeepOCR::ETextReader & eVision::EasyDeepOCR::ETextReader::operator= | ( | const eVision::EasyDeepOCR::ETextReader & | other | ) |
Assignment operator.
| other | Another ETextReader to be assigned in the new ETextReader. |
| bool eVision::EasyDeepOCR::ETextReader::operator== | ( | const eVision::EasyDeepOCR::ETextReader & | other | ) | const |
Checks if this ETextReader instance is strictly equal to another ETextReader instance.
| other | Reference to the ETextReader instance to compare with |
This operator is stricly equivalent to the ETextReader::IsEqual method.
| eVision::EasyDeepOCR::EOptimizationReport eVision::EasyDeepOCR::ETextReader::Optimize | ( | const eVision::EasyDeepOCR::EOptimizationReport & | optimizationReport | ) |
Sets the optimal internal parameters by finding the text in the corresponding input image, for each ESample.
| optimizationReport | Optimization report to be restored. |
Once an optimization is performed, the ETextReader is specialized and only returns texts sharing geometrical properties with the ones it has learned from.
| eVision::EasyDeepOCR::EOptimizationReport eVision::EasyDeepOCR::ETextReader::Optimize | ( | const eVision::EasyDeepOCR::ESampleList & | samples | ) |
Sets the optimal internal parameters by finding the text in the corresponding input image, for each ESample.
| samples | Samples to be optimized from. |
Once an optimization is performed, the ETextReader is specialized and only returns texts sharing geometrical properties with the ones it has learned from.
| eVision::EasyDeepOCR::EOptimizationReport eVision::EasyDeepOCR::ETextReader::Optimize | ( | const eVision::EasyDeepOCR::ESampleList & | samples, |
| eVision::EImageType | imageType ) |
Sets the optimal internal parameters by finding the text in the corresponding input image, for each ESample.
| 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. |
Once an optimization is performed, the ETextReader is specialized and only returns texts sharing geometrical properties with the ones it has learned from.
| std::vector< eVision::EasyDeepOCR::EText > eVision::EasyDeepOCR::ETextReader::Read | ( | const eVision::EBaseROI & | roi | ) | const |
Reads texts inside an EBaseROI. Texts are returned as EText. Texts comply with the ETopology previously specified with ETextReader::SetTopology, if any. The processing speed can be increased with ETextReader::Optimize.
| std::vector< eVision::EasyDeepOCR::EText > eVision::EasyDeepOCR::ETextReader::Read | ( | const eVision::EBaseROI & | roi, |
| const eVision::EFrame & | frame ) const |
Reads texts inside an EBaseROI. Texts are returned as EText. Texts comply with the ETopology previously specified with ETextReader::SetTopology, if any. The processing speed can be increased with ETextReader::Optimize.
| std::vector< eVision::EasyDeepOCR::EText > eVision::EasyDeepOCR::ETextReader::Read | ( | const eVision::EBaseROI & | roi, |
| const eVision::ERegion & | region ) const |
Reads texts inside an EBaseROI. Texts are returned as EText. Texts comply with the ETopology previously specified with ETextReader::SetTopology, if any. The processing speed can be increased with ETextReader::Optimize.
| std::vector< eVision::EasyDeepOCR::EText > eVision::EasyDeepOCR::ETextReader::Read | ( | const eVision::EBaseROI & | roi, |
| const eVision::ERegion & | region, | ||
| const eVision::EFrame & | frame ) const |
Reads texts inside an EBaseROI. Texts are returned as EText. Texts comply with the ETopology previously specified with ETextReader::SetTopology, if any. The processing speed can be increased with ETextReader::Optimize.
| eVision::EasyDeepOCR::ETextLine eVision::EasyDeepOCR::ETextReader::Recognize | ( | const eVision::EBaseROI & | miniature | ) | const |
Recognizes a text within a miniature image and returns it as an ETextLine. The returned text will conform to the ETopologyLine if one is provided via the topologyLineIndex parameter. The miniature image can be provided directly or extracted from a larger ROI using an ERectangle or an 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 ETextReader::GetHasTextAngle is true, automaticReadingDirection is ignored and the reading orientation is chosen as the closest to ETextReader::SetTextAngle. 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 | ( | const eVision::EBaseROI & | miniature, |
| bool | automaticReadingDirection ) const |
Recognizes a text within a miniature image and returns it as an ETextLine. The returned text will conform to the ETopologyLine if one is provided via the topologyLineIndex parameter. The miniature image can be provided directly or extracted from a larger ROI using an ERectangle or an 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 ETextReader::GetHasTextAngle is true, automaticReadingDirection is ignored and the reading orientation is chosen as the closest to ETextReader::SetTextAngle. 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 | ( | const eVision::EBaseROI & | miniature, |
| uint32_t | topologyLineIndex ) const |
Recognizes a text within a miniature image and returns it as an ETextLine. The returned text will conform to the ETopologyLine if one is provided via the topologyLineIndex parameter. The miniature image can be provided directly or extracted from a larger ROI using an ERectangle or an 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 ETextReader::GetHasTextAngle is true, automaticReadingDirection is ignored and the reading orientation is chosen as the closest to ETextReader::SetTextAngle. 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 ETopologyLine to use for text recognition constraints. |
| eVision::EasyDeepOCR::ETextLine eVision::EasyDeepOCR::ETextReader::Recognize | ( | const eVision::EBaseROI & | miniature, |
| uint32_t | topologyLineIndex, | ||
| bool | automaticReadingDirection ) const |
Recognizes a text within a miniature image and returns it as an ETextLine. The returned text will conform to the ETopologyLine if one is provided via the topologyLineIndex parameter. The miniature image can be provided directly or extracted from a larger ROI using an ERectangle or an 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 ETextReader::GetHasTextAngle is true, automaticReadingDirection is ignored and the reading orientation is chosen as the closest to ETextReader::SetTextAngle. 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 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 | ( | const eVision::EBaseROI & | roi, |
| const eVision::ERectangle & | rectangle ) const |
Recognizes a text within a miniature image and returns it as an ETextLine. The returned text will conform to the ETopologyLine if one is provided via the topologyLineIndex parameter. The miniature image can be provided directly or extracted from a larger ROI using an ERectangle or an 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 ETextReader::GetHasTextAngle is true, automaticReadingDirection is ignored and the reading orientation is chosen as the closest to ETextReader::SetTextAngle. 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 | ( | const eVision::EBaseROI & | roi, |
| const eVision::ERectangle & | rectangle, | ||
| bool | automaticReadingDirection ) const |
Recognizes a text within a miniature image and returns it as an ETextLine. The returned text will conform to the ETopologyLine if one is provided via the topologyLineIndex parameter. The miniature image can be provided directly or extracted from a larger ROI using an ERectangle or an 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 ETextReader::GetHasTextAngle is true, automaticReadingDirection is ignored and the reading orientation is chosen as the closest to ETextReader::SetTextAngle. 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 | ( | const eVision::EBaseROI & | roi, |
| const eVision::ERectangle & | rectangle, | ||
| const eVision::EFrame & | frame ) const |
Recognizes a text within a miniature image and returns it as an ETextLine. The returned text will conform to the ETopologyLine if one is provided via the topologyLineIndex parameter. The miniature image can be provided directly or extracted from a larger ROI using an ERectangle or an 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 ETextReader::GetHasTextAngle is true, automaticReadingDirection is ignored and the reading orientation is chosen as the closest to ETextReader::SetTextAngle. 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 | ( | const eVision::EBaseROI & | roi, |
| const eVision::ERectangle & | rectangle, | ||
| const eVision::EFrame & | frame, | ||
| bool | automaticReadingDirection ) const |
Recognizes a text within a miniature image and returns it as an ETextLine. The returned text will conform to the ETopologyLine if one is provided via the topologyLineIndex parameter. The miniature image can be provided directly or extracted from a larger ROI using an ERectangle or an 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 ETextReader::GetHasTextAngle is true, automaticReadingDirection is ignored and the reading orientation is chosen as the closest to ETextReader::SetTextAngle. 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 | ( | const eVision::EBaseROI & | roi, |
| const eVision::ERectangle & | rectangle, | ||
| const eVision::EFrame & | frame, | ||
| uint32_t | topologyLineIndex ) const |
Recognizes a text within a miniature image and returns it as an ETextLine. The returned text will conform to the ETopologyLine if one is provided via the topologyLineIndex parameter. The miniature image can be provided directly or extracted from a larger ROI using an ERectangle or an 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 ETextReader::GetHasTextAngle is true, automaticReadingDirection is ignored and the reading orientation is chosen as the closest to ETextReader::SetTextAngle. 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 ETopologyLine to use for text recognition constraints. |
| eVision::EasyDeepOCR::ETextLine eVision::EasyDeepOCR::ETextReader::Recognize | ( | const eVision::EBaseROI & | roi, |
| const eVision::ERectangle & | rectangle, | ||
| const eVision::EFrame & | frame, | ||
| uint32_t | topologyLineIndex, | ||
| bool | automaticReadingDirection ) const |
Recognizes a text within a miniature image and returns it as an ETextLine. The returned text will conform to the ETopologyLine if one is provided via the topologyLineIndex parameter. The miniature image can be provided directly or extracted from a larger ROI using an ERectangle or an 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 ETextReader::GetHasTextAngle is true, automaticReadingDirection is ignored and the reading orientation is chosen as the closest to ETextReader::SetTextAngle. 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 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 | ( | const eVision::EBaseROI & | roi, |
| const eVision::ERectangle & | rectangle, | ||
| uint32_t | topologyLineIndex ) const |
Recognizes a text within a miniature image and returns it as an ETextLine. The returned text will conform to the ETopologyLine if one is provided via the topologyLineIndex parameter. The miniature image can be provided directly or extracted from a larger ROI using an ERectangle or an 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 ETextReader::GetHasTextAngle is true, automaticReadingDirection is ignored and the reading orientation is chosen as the closest to ETextReader::SetTextAngle. 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 ETopologyLine to use for text recognition constraints. |
| eVision::EasyDeepOCR::ETextLine eVision::EasyDeepOCR::ETextReader::Recognize | ( | const eVision::EBaseROI & | roi, |
| const eVision::ERectangle & | rectangle, | ||
| uint32_t | topologyLineIndex, | ||
| bool | automaticReadingDirection ) const |
Recognizes a text within a miniature image and returns it as an ETextLine. The returned text will conform to the ETopologyLine if one is provided via the topologyLineIndex parameter. The miniature image can be provided directly or extracted from a larger ROI using an ERectangle or an 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 ETextReader::GetHasTextAngle is true, automaticReadingDirection is ignored and the reading orientation is chosen as the closest to ETextReader::SetTextAngle. 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 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 | ( | const eVision::EBaseROI & | roi, |
| const eVision::ERegion & | region ) const |
Recognizes a text within a miniature image and returns it as an ETextLine. The returned text will conform to the ETopologyLine if one is provided via the topologyLineIndex parameter. The miniature image can be provided directly or extracted from a larger ROI using an ERectangle or an 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 ETextReader::GetHasTextAngle is true, automaticReadingDirection is ignored and the reading orientation is chosen as the closest to ETextReader::SetTextAngle. 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 | ( | const eVision::EBaseROI & | roi, |
| const eVision::ERegion & | region, | ||
| bool | automaticReadingDirection ) const |
Recognizes a text within a miniature image and returns it as an ETextLine. The returned text will conform to the ETopologyLine if one is provided via the topologyLineIndex parameter. The miniature image can be provided directly or extracted from a larger ROI using an ERectangle or an 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 ETextReader::GetHasTextAngle is true, automaticReadingDirection is ignored and the reading orientation is chosen as the closest to ETextReader::SetTextAngle. 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 | ( | const eVision::EBaseROI & | roi, |
| const eVision::ERegion & | region, | ||
| const eVision::EFrame & | frame ) const |
Recognizes a text within a miniature image and returns it as an ETextLine. The returned text will conform to the ETopologyLine if one is provided via the topologyLineIndex parameter. The miniature image can be provided directly or extracted from a larger ROI using an ERectangle or an 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 ETextReader::GetHasTextAngle is true, automaticReadingDirection is ignored and the reading orientation is chosen as the closest to ETextReader::SetTextAngle. 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 | ( | const eVision::EBaseROI & | roi, |
| const eVision::ERegion & | region, | ||
| const eVision::EFrame & | frame, | ||
| bool | automaticReadingDirection ) const |
Recognizes a text within a miniature image and returns it as an ETextLine. The returned text will conform to the ETopologyLine if one is provided via the topologyLineIndex parameter. The miniature image can be provided directly or extracted from a larger ROI using an ERectangle or an 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 ETextReader::GetHasTextAngle is true, automaticReadingDirection is ignored and the reading orientation is chosen as the closest to ETextReader::SetTextAngle. 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 | ( | const eVision::EBaseROI & | roi, |
| const eVision::ERegion & | region, | ||
| const eVision::EFrame & | frame, | ||
| uint32_t | topologyLineIndex ) const |
Recognizes a text within a miniature image and returns it as an ETextLine. The returned text will conform to the ETopologyLine if one is provided via the topologyLineIndex parameter. The miniature image can be provided directly or extracted from a larger ROI using an ERectangle or an 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 ETextReader::GetHasTextAngle is true, automaticReadingDirection is ignored and the reading orientation is chosen as the closest to ETextReader::SetTextAngle. 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 ETopologyLine to use for text recognition constraints. |
| eVision::EasyDeepOCR::ETextLine eVision::EasyDeepOCR::ETextReader::Recognize | ( | const eVision::EBaseROI & | roi, |
| const eVision::ERegion & | region, | ||
| const eVision::EFrame & | frame, | ||
| uint32_t | topologyLineIndex, | ||
| bool | automaticReadingDirection ) const |
Recognizes a text within a miniature image and returns it as an ETextLine. The returned text will conform to the ETopologyLine if one is provided via the topologyLineIndex parameter. The miniature image can be provided directly or extracted from a larger ROI using an ERectangle or an 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 ETextReader::GetHasTextAngle is true, automaticReadingDirection is ignored and the reading orientation is chosen as the closest to ETextReader::SetTextAngle. 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 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 | ( | const eVision::EBaseROI & | roi, |
| const eVision::ERegion & | region, | ||
| uint32_t | topologyLineIndex ) const |
Recognizes a text within a miniature image and returns it as an ETextLine. The returned text will conform to the ETopologyLine if one is provided via the topologyLineIndex parameter. The miniature image can be provided directly or extracted from a larger ROI using an ERectangle or an 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 ETextReader::GetHasTextAngle is true, automaticReadingDirection is ignored and the reading orientation is chosen as the closest to ETextReader::SetTextAngle. 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 ETopologyLine to use for text recognition constraints. |
| eVision::EasyDeepOCR::ETextLine eVision::EasyDeepOCR::ETextReader::Recognize | ( | const eVision::EBaseROI & | roi, |
| const eVision::ERegion & | region, | ||
| uint32_t | topologyLineIndex, | ||
| bool | automaticReadingDirection ) const |
Recognizes a text within a miniature image and returns it as an ETextLine. The returned text will conform to the ETopologyLine if one is provided via the topologyLineIndex parameter. The miniature image can be provided directly or extracted from a larger ROI using an ERectangle or an 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 ETextReader::GetHasTextAngle is true, automaticReadingDirection is ignored and the reading orientation is chosen as the closest to ETextReader::SetTextAngle. 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 ETopologyLine to use for text recognition constraints. |
| automaticReadingDirection | When true, automatically detects the reading direction of the text. Default is false. |
| void eVision::EasyDeepOCR::ETextReader::ResetLocationCustomModel | ( | ) |
Removes any location custom model that was previously set and use the default location model.
| void eVision::EasyDeepOCR::ETextReader::ResetOptimization | ( | ) |
Forgets the optimal parameters previously set by ETextReader::Optimize.
| void eVision::EasyDeepOCR::ETextReader::ResetOrientationCustomModel | ( | ) |
Removes any orientation custom model that was previously set and use the default orientation model.
| void eVision::EasyDeepOCR::ETextReader::ResetRecognitionCustomModel | ( | ) |
Removes any recognition custom model that was previously set and use the default recognition model.
| void eVision::EasyDeepOCR::ETextReader::ResetTopology | ( | ) |
Forgets the ETopology previously set.
| void eVision::EasyDeepOCR::ETextReader::Save | ( | const std::string & | path | ) |
Saves the ETextReader.
| path | Path where to save the ETextReader. |
| void eVision::EasyDeepOCR::ETextReader::Save | ( | eVision::ESerializer * | serializer | ) |
Saves the ETextReader.
| serializer |
| void eVision::EasyDeepOCR::ETextReader::SetExecutionSettings | ( | const eVision::EasyDeepLearning::EDeepLearningExecutionSettings & | executionSettings | ) |
EDeepLearningExecutionSettings used by the ETextReader.
| void eVision::EasyDeepOCR::ETextReader::SetLocationCustomModel | ( | const eVision::EasyDeepLearning::EDeepOCRTool & | tool | ) |
Sets a location custom model from a EDeepOCRTool object (user trained model).
| tool | Trained EDeepOCRTool tool with EDeepOCRModel::EDeepOCRModel_Location model |
Note that the location custom model will be serialized as part of the text reader.
| void eVision::EasyDeepOCR::ETextReader::SetLocationCustomModelPath | ( | const std::string & | modelPath | ) |
Sets a location custom model using the path to a saved EDeepOCRTool (user trained model).
| modelPath | Path to a EDeepOCRTool tool. |
Note that the location custom model will be serialized as part of the text reader.
| void eVision::EasyDeepOCR::ETextReader::SetOrientationCustomModel | ( | const eVision::EasyDeepLearning::EDeepOCRTool & | tool | ) |
Sets an orientation custom model from a EDeepOCRTool object (user trained model).
| tool | Trained EDeepOCRTool tool with EDeepOCRModel::EDeepOCRModel_Orientation model |
Note that the orientation custom model will be serialized as part of the text reader.
| void eVision::EasyDeepOCR::ETextReader::SetOrientationCustomModelPath | ( | const std::string & | modelPath | ) |
Sets an orientation custom model using the path to a saved EDeepOCRTool (user trained model).
| modelPath | Path to a EDeepOCRTool tool. |
Note that the orientation custom model will be serialized as part of the text reader.
| void eVision::EasyDeepOCR::ETextReader::SetRecognitionCustomModel | ( | const eVision::EasyDeepLearning::EDeepOCRTool & | tool | ) |
Sets a recognition custom model from a EDeepOCRTool object (user trained model).
| tool | Trained EDeepOCRTool tool with EDeepOCRModel::EDeepOCRModel_Recognition model |
Note that the recognition custom model will be serialized as part of the text reader.
| void eVision::EasyDeepOCR::ETextReader::SetRecognitionCustomModelPath | ( | const std::string & | modelPath | ) |
Sets a recognition custom model using the path to a saved EDeepOCRTool (user trained model).
| modelPath | Path to a EDeepOCRTool tool. |
Note that the recognition custom model will be serialized as part of the text reader.
| void eVision::EasyDeepOCR::ETextReader::SetTextAngle | ( | float | arg0 | ) |
Angle hint for the text to be found.
| void eVision::EasyDeepOCR::ETextReader::SetTextLineHeight | ( | 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. |
| void eVision::EasyDeepOCR::ETextReader::SetTopology | ( | const eVision::ETopology & | topology | ) |
ETopology of the ETextReader.
| void eVision::EasyDeepOCR::ETextReader::UnsetTextAngle | ( | ) |
Unsets the text angle hint.
| CppWrapperInternal::WrappedClass eVision::EasyDeepOCR::ETextReader::wrappedClass_ |