Represents a text line detected by a ETextReader. More...
#include <eVision/EasyOcr/EasyDeepOCR/ETextLine.h>
Public Member Functions | |
| ETextLine () | |
| Constructs a ETextLine. | |
| ETextLine (const eVision::EasyDeepOCR::ETextLine &other) | |
| Constructs a ETextLine. | |
| ETextLine (const eVision::ERectangle &rectangle, const std::string &text) | |
| Constructs a ETextLine. | |
| virtual | ~ETextLine () throw () |
| eVision::EasyDeepOCR::ETextLine & | operator= (const eVision::EasyDeepOCR::ETextLine &other) |
| Assignment operator. | |
| void | Load (const std::string &path) |
| Loads the ETextLine. | |
| void | Load (eVision::ESerializer *serializer) |
| Loads the ETextLine. | |
| void | Save (const std::string &path) |
| Saves the ETextLine. | |
| void | Save (eVision::ESerializer *serializer) |
| Saves the ETextLine. | |
| void | SetString (const std::string &text) |
| Text line string. | |
| std::string | GetString () const |
| Text line string. | |
| void | SetRectangle (const eVision::ERectangle &rectangle) |
| Text line box. | |
| eVision::ERectangle | GetRectangle () const |
| Text line box. | |
| bool | GetIsRegex () const |
| States whether the ETextLine::SetString is a regular expression or not. This flag is used only when converting this ETextLine to an EasyDeepOCR.ESampleTextLine. This property is a workaround to be able to create ESamples with regex from the public API, for testing purpuses. | |
| void | SetIsRegex (bool isRegex) |
| bool | Match (const eVision::EasyDeepOCR::ETextLine &reference) const |
| Returns true if this ETextLine matches the reference ETextLine. A ETextLine matches a reference ETextLine when both ETextLine::SetString are equal and when this ETextLine::SetRectangle is similar, or slightly wider, than the reference ETextLine::SetRectangle. | |
| std::unique_ptr< eVision::EBaseROI > | ExtractMiniature (const eVision::EBaseROI &roi) const |
| Extracts a miniature image delimited by this ETextLine::SetRectangle from a source EBaseROI. | |
| std::vector< eVision::EasyDeepOCR::ETextLine > | SplitInWords () const |
| Splits the ETextLine into multiple ETextLine, one for each word. Every returned ETextLine corresponds to a single word from the original ETextLine. The width of each ETextLine::SetRectangle is based on the word's character count, assuming a fixed character width. This method is intended for testing purposes only. | |
| float | GetScore () const |
| Returns the score of this text line. The score value resides in the interval [0.0; 1.0]. It can be used to get an approximation of the reading quality of the underlying text. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, float zoomX, float zoomY, float panX, float panY) const |
| Draws the text line box. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, float zoomX, float zoomY, float panX) const |
| Draws the text line box. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, float zoomX, float zoomY) const |
| Draws the text line box. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, float zoomX) const |
| Draws the text line box. | |
| void | Draw (eVision::EDrawAdapter *graphicContext) const |
| Draws the text line box. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, const eVision::EasyDeepOCR::ETextDrawingParameters &drawingParameters, float zoomX, float zoomY, float panX, float panY) const |
| Draws the text line box. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, const eVision::EasyDeepOCR::ETextDrawingParameters &drawingParameters, float zoomX, float zoomY, float panX) const |
| Draws the text line box. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, const eVision::EasyDeepOCR::ETextDrawingParameters &drawingParameters, float zoomX, float zoomY) const |
| Draws the text line box. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, const eVision::EasyDeepOCR::ETextDrawingParameters &drawingParameters, float zoomX) const |
| Draws the text line box. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, const eVision::EasyDeepOCR::ETextDrawingParameters &drawingParameters) const |
| Draws the text line box. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, const eVision::EFrame &frame, float zoomX, float zoomY, float panX, float panY) const |
| Draws the text line box. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, const eVision::EFrame &frame, float zoomX, float zoomY, float panX) const |
| Draws the text line box. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, const eVision::EFrame &frame, float zoomX, float zoomY) const |
| Draws the text line box. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, const eVision::EFrame &frame, float zoomX) const |
| Draws the text line box. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, const eVision::EFrame &frame) const |
| Draws the text line box. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, const eVision::EFrame &frame, const eVision::EasyDeepOCR::ETextDrawingParameters &drawingParameters, float zoomX, float zoomY, float panX, float panY) const |
| Draws the text line box. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, const eVision::EFrame &frame, const eVision::EasyDeepOCR::ETextDrawingParameters &drawingParameters, float zoomX, float zoomY, float panX) const |
| Draws the text line box. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, const eVision::EFrame &frame, const eVision::EasyDeepOCR::ETextDrawingParameters &drawingParameters, float zoomX, float zoomY) const |
| Draws the text line box. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, const eVision::EFrame &frame, const eVision::EasyDeepOCR::ETextDrawingParameters &drawingParameters, float zoomX) const |
| Draws the text line box. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, const eVision::EFrame &frame, const eVision::EasyDeepOCR::ETextDrawingParameters &drawingParameters) const |
| Draws the text line box. | |
| ETextLine (CppWrapperInternal::InternalConstructor) | |
Public Attributes | |
| CppWrapperInternal::WrappedClass | wrappedClass_ |
Represents a text line detected by a ETextReader.
License(s): EasyDeepOCR
| eVision::EasyDeepOCR::ETextLine::ETextLine | ( | ) |
Constructs a ETextLine.
| eVision::EasyDeepOCR::ETextLine::ETextLine | ( | const eVision::EasyDeepOCR::ETextLine & | other | ) |
| eVision::EasyDeepOCR::ETextLine::ETextLine | ( | const eVision::ERectangle & | rectangle, |
| const std::string & | text ) |
Constructs a ETextLine.
| rectangle | Text line box. |
| text | Text string. |
|
virtual | ||||||||||||
| eVision::EasyDeepOCR::ETextLine::ETextLine | ( | CppWrapperInternal::InternalConstructor | ) |
| void eVision::EasyDeepOCR::ETextLine::Draw | ( | eVision::EDrawAdapter * | graphicContext | ) | const |
Draws the text line box.
| graphicContext | Handle to the device context of the destination window. |
| void eVision::EasyDeepOCR::ETextLine::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| const eVision::EasyDeepOCR::ETextDrawingParameters & | drawingParameters ) const |
Draws the text line box.
| graphicContext | Handle to the device context of the destination window. |
| drawingParameters | Class specifying the drawing parameters. |
| void eVision::EasyDeepOCR::ETextLine::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| const eVision::EasyDeepOCR::ETextDrawingParameters & | drawingParameters, | ||
| float | zoomX ) const |
Draws the text line box.
| graphicContext | Handle to the device context of the destination window. |
| drawingParameters | Class specifying the drawing parameters. |
| zoomX | Magnification factor for zooming in or out in the horizontal direction. By default, no zooming occurs. |
| void eVision::EasyDeepOCR::ETextLine::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| const eVision::EasyDeepOCR::ETextDrawingParameters & | drawingParameters, | ||
| float | zoomX, | ||
| float | zoomY ) const |
Draws the text line box.
| graphicContext | Handle to the device context of the destination window. |
| drawingParameters | Class specifying the drawing parameters. |
| zoomX | Magnification factor for zooming in or out in the horizontal direction. By default, no zooming occurs. |
| zoomY | Magnification factor for zooming in or out in the vertical direction. By default, no zooming occurs. |
| void eVision::EasyDeepOCR::ETextLine::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| const eVision::EasyDeepOCR::ETextDrawingParameters & | drawingParameters, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) const |
Draws the text line box.
| graphicContext | Handle to the device context of the destination window. |
| drawingParameters | Class specifying the drawing parameters. |
| zoomX | Magnification factor for zooming in or out in the horizontal direction. By default, no zooming occurs. |
| zoomY | Magnification factor for zooming in or out in the vertical direction. By default, no zooming occurs. |
| panX | Horizontal panning value expressed in pixels. By default, no panning occurs. |
| void eVision::EasyDeepOCR::ETextLine::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| const eVision::EasyDeepOCR::ETextDrawingParameters & | drawingParameters, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) const |
Draws the text line box.
| graphicContext | Handle to the device context of the destination window. |
| drawingParameters | Class specifying the drawing parameters. |
| zoomX | Magnification factor for zooming in or out in the horizontal direction. By default, no zooming occurs. |
| zoomY | Magnification factor for zooming in or out in the vertical direction. By default, no zooming occurs. |
| panX | Horizontal panning value expressed in pixels. By default, no panning occurs. |
| panY | Vertical panning value expressed in pixels. By default, no panning occurs. |
| void eVision::EasyDeepOCR::ETextLine::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| const eVision::EFrame & | frame ) const |
Draws the text line box.
| graphicContext | Handle to the device context of the destination window. |
| frame | Frame associated with the text. |
| void eVision::EasyDeepOCR::ETextLine::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| const eVision::EFrame & | frame, | ||
| const eVision::EasyDeepOCR::ETextDrawingParameters & | drawingParameters ) const |
Draws the text line box.
| graphicContext | Handle to the device context of the destination window. |
| frame | Frame associated with the text. |
| drawingParameters | Class specifying the drawing parameters. |
| void eVision::EasyDeepOCR::ETextLine::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| const eVision::EFrame & | frame, | ||
| const eVision::EasyDeepOCR::ETextDrawingParameters & | drawingParameters, | ||
| float | zoomX ) const |
Draws the text line box.
| graphicContext | Handle to the device context of the destination window. |
| frame | Frame associated with the text. |
| drawingParameters | Class specifying the drawing parameters. |
| zoomX | Magnification factor for zooming in or out in the horizontal direction. By default, no zooming occurs. |
| void eVision::EasyDeepOCR::ETextLine::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| const eVision::EFrame & | frame, | ||
| const eVision::EasyDeepOCR::ETextDrawingParameters & | drawingParameters, | ||
| float | zoomX, | ||
| float | zoomY ) const |
Draws the text line box.
| graphicContext | Handle to the device context of the destination window. |
| frame | Frame associated with the text. |
| drawingParameters | Class specifying the drawing parameters. |
| zoomX | Magnification factor for zooming in or out in the horizontal direction. By default, no zooming occurs. |
| zoomY | Magnification factor for zooming in or out in the vertical direction. By default, no zooming occurs. |
| void eVision::EasyDeepOCR::ETextLine::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| const eVision::EFrame & | frame, | ||
| const eVision::EasyDeepOCR::ETextDrawingParameters & | drawingParameters, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) const |
Draws the text line box.
| graphicContext | Handle to the device context of the destination window. |
| frame | Frame associated with the text. |
| drawingParameters | Class specifying the drawing parameters. |
| zoomX | Magnification factor for zooming in or out in the horizontal direction. By default, no zooming occurs. |
| zoomY | Magnification factor for zooming in or out in the vertical direction. By default, no zooming occurs. |
| panX | Horizontal panning value expressed in pixels. By default, no panning occurs. |
| void eVision::EasyDeepOCR::ETextLine::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| const eVision::EFrame & | frame, | ||
| const eVision::EasyDeepOCR::ETextDrawingParameters & | drawingParameters, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) const |
Draws the text line box.
| graphicContext | Handle to the device context of the destination window. |
| frame | Frame associated with the text. |
| drawingParameters | Class specifying the drawing parameters. |
| zoomX | Magnification factor for zooming in or out in the horizontal direction. By default, no zooming occurs. |
| zoomY | Magnification factor for zooming in or out in the vertical direction. By default, no zooming occurs. |
| panX | Horizontal panning value expressed in pixels. By default, no panning occurs. |
| panY | Vertical panning value expressed in pixels. By default, no panning occurs. |
| void eVision::EasyDeepOCR::ETextLine::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| const eVision::EFrame & | frame, | ||
| float | zoomX ) const |
Draws the text line box.
| graphicContext | Handle to the device context of the destination window. |
| frame | Frame associated with the text. |
| zoomX | Magnification factor for zooming in or out in the horizontal direction. By default, no zooming occurs. |
| void eVision::EasyDeepOCR::ETextLine::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| const eVision::EFrame & | frame, | ||
| float | zoomX, | ||
| float | zoomY ) const |
Draws the text line box.
| graphicContext | Handle to the device context of the destination window. |
| frame | Frame associated with the text. |
| zoomX | Magnification factor for zooming in or out in the horizontal direction. By default, no zooming occurs. |
| zoomY | Magnification factor for zooming in or out in the vertical direction. By default, no zooming occurs. |
| void eVision::EasyDeepOCR::ETextLine::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| const eVision::EFrame & | frame, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) const |
Draws the text line box.
| graphicContext | Handle to the device context of the destination window. |
| frame | Frame associated with the text. |
| zoomX | Magnification factor for zooming in or out in the horizontal direction. By default, no zooming occurs. |
| zoomY | Magnification factor for zooming in or out in the vertical direction. By default, no zooming occurs. |
| panX | Horizontal panning value expressed in pixels. By default, no panning occurs. |
| void eVision::EasyDeepOCR::ETextLine::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| const eVision::EFrame & | frame, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) const |
Draws the text line box.
| graphicContext | Handle to the device context of the destination window. |
| frame | Frame associated with the text. |
| zoomX | Magnification factor for zooming in or out in the horizontal direction. By default, no zooming occurs. |
| zoomY | Magnification factor for zooming in or out in the vertical direction. By default, no zooming occurs. |
| panX | Horizontal panning value expressed in pixels. By default, no panning occurs. |
| panY | Vertical panning value expressed in pixels. By default, no panning occurs. |
| void eVision::EasyDeepOCR::ETextLine::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| float | zoomX ) const |
Draws the text line box.
| graphicContext | Handle to the device context of the destination window. |
| zoomX | Magnification factor for zooming in or out in the horizontal direction. By default, no zooming occurs. |
| void eVision::EasyDeepOCR::ETextLine::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| float | zoomX, | ||
| float | zoomY ) const |
Draws the text line box.
| graphicContext | Handle to the device context of the destination window. |
| zoomX | Magnification factor for zooming in or out in the horizontal direction. By default, no zooming occurs. |
| zoomY | Magnification factor for zooming in or out in the vertical direction. By default, no zooming occurs. |
| void eVision::EasyDeepOCR::ETextLine::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) const |
Draws the text line box.
| graphicContext | Handle to the device context of the destination window. |
| zoomX | Magnification factor for zooming in or out in the horizontal direction. By default, no zooming occurs. |
| zoomY | Magnification factor for zooming in or out in the vertical direction. By default, no zooming occurs. |
| panX | Horizontal panning value expressed in pixels. By default, no panning occurs. |
| void eVision::EasyDeepOCR::ETextLine::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) const |
Draws the text line box.
| graphicContext | Handle to the device context of the destination window. |
| zoomX | Magnification factor for zooming in or out in the horizontal direction. By default, no zooming occurs. |
| zoomY | Magnification factor for zooming in or out in the vertical direction. By default, no zooming occurs. |
| panX | Horizontal panning value expressed in pixels. By default, no panning occurs. |
| panY | Vertical panning value expressed in pixels. By default, no panning occurs. |
| std::unique_ptr< eVision::EBaseROI > eVision::EasyDeepOCR::ETextLine::ExtractMiniature | ( | const eVision::EBaseROI & | roi | ) | const |
Extracts a miniature image delimited by this ETextLine::SetRectangle from a source EBaseROI.
| bool eVision::EasyDeepOCR::ETextLine::GetIsRegex | ( | ) | const |
States whether the ETextLine::SetString is a regular expression or not. This flag is used only when converting this ETextLine to an EasyDeepOCR.ESampleTextLine. This property is a workaround to be able to create ESamples with regex from the public API, for testing purpuses.
| eVision::ERectangle eVision::EasyDeepOCR::ETextLine::GetRectangle | ( | ) | const |
Text line box.
| float eVision::EasyDeepOCR::ETextLine::GetScore | ( | ) | const |
Returns the score of this text line. The score value resides in the interval [0.0; 1.0]. It can be used to get an approximation of the reading quality of the underlying text.
| std::string eVision::EasyDeepOCR::ETextLine::GetString | ( | ) | const |
Text line string.
| void eVision::EasyDeepOCR::ETextLine::Load | ( | const std::string & | path | ) |
| void eVision::EasyDeepOCR::ETextLine::Load | ( | eVision::ESerializer * | serializer | ) |
Loads the ETextLine.
| serializer |
| bool eVision::EasyDeepOCR::ETextLine::Match | ( | const eVision::EasyDeepOCR::ETextLine & | reference | ) | const |
Returns true if this ETextLine matches the reference ETextLine. A ETextLine matches a reference ETextLine when both ETextLine::SetString are equal and when this ETextLine::SetRectangle is similar, or slightly wider, than the reference ETextLine::SetRectangle.
| eVision::EasyDeepOCR::ETextLine & eVision::EasyDeepOCR::ETextLine::operator= | ( | const eVision::EasyDeepOCR::ETextLine & | other | ) |
| void eVision::EasyDeepOCR::ETextLine::Save | ( | const std::string & | path | ) |
| void eVision::EasyDeepOCR::ETextLine::Save | ( | eVision::ESerializer * | serializer | ) |
Saves the ETextLine.
| serializer |
| void eVision::EasyDeepOCR::ETextLine::SetIsRegex | ( | bool | isRegex | ) |
| void eVision::EasyDeepOCR::ETextLine::SetRectangle | ( | const eVision::ERectangle & | rectangle | ) |
Text line box.
| void eVision::EasyDeepOCR::ETextLine::SetString | ( | const std::string & | text | ) |
Text line string.
| std::vector< eVision::EasyDeepOCR::ETextLine > eVision::EasyDeepOCR::ETextLine::SplitInWords | ( | ) | const |
Splits the ETextLine into multiple ETextLine, one for each word. Every returned ETextLine corresponds to a single word from the original ETextLine. The width of each ETextLine::SetRectangle is based on the word's character count, assuming a fixed character width. This method is intended for testing purposes only.
| CppWrapperInternal::WrappedClass eVision::EasyDeepOCR::ETextLine::wrappedClass_ |