Represents a text detected by a ETextReader. A EText is composed of one or several ETextLine, that are returned by EText::SetLines. More...
#include <eVision/EasyOcr/EasyDeepOCR/EText.h>
Public Member Functions | |
| EText () | |
| Constructs a EText. | |
| EText (const eVision::EasyDeepOCR::EText &other) | |
| Constructs a EText. | |
| EText (const std::vector< eVision::EasyDeepOCR::ETextLine > &lines) | |
| Constructs a EText. | |
| EText (const eVision::EasyDeepOCR::ETextLine &line) | |
| Constructs a EText. | |
| virtual | ~EText () throw () |
| eVision::EasyDeepOCR::EText & | operator= (const eVision::EasyDeepOCR::EText &other) |
| Assignment operator. | |
| void | Load (const std::string &path) |
| Loads the EText. | |
| void | Load (eVision::ESerializer *serializer) |
| Loads the EText. | |
| void | Save (const std::string &path) |
| Saves the EText. | |
| void | Save (eVision::ESerializer *serializer) |
| Saves the EText. | |
| void | SetLines (const std::vector< eVision::EasyDeepOCR::ETextLine > &text) |
| EText lines. | |
| std::vector< eVision::EasyDeepOCR::ETextLine > | GetLines () const |
| EText lines. | |
| eVision::ERectangle | GetPosition () const |
| Returns a rectangle that contains all the lines. | |
| std::string | GetString () const |
| Returns the concatenation of the line strings, separated by the new line character "\n". The line return. | |
| bool | Match (const eVision::EasyDeepOCR::EText &reference) const |
| Returns true if this EText matches the reference EText. A EText matches a reference EText when all their ETextLine match each other (ETextLine::Match). | |
| void | Draw (eVision::EDrawAdapter *graphicContext, float zoomX, float zoomY, float panX, float panY) const |
| Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, float zoomX, float zoomY, float panX) const |
| Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, float zoomX, float zoomY) const |
| Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, float zoomX) const |
| Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings. | |
| void | Draw (eVision::EDrawAdapter *graphicContext) const |
| Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, const eVision::EasyDeepOCR::ETextDrawingParameters &drawingParameters, float zoomX, float zoomY, float panX, float panY) const |
| Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, const eVision::EasyDeepOCR::ETextDrawingParameters &drawingParameters, float zoomX, float zoomY, float panX) const |
| Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, const eVision::EasyDeepOCR::ETextDrawingParameters &drawingParameters, float zoomX, float zoomY) const |
| Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, const eVision::EasyDeepOCR::ETextDrawingParameters &drawingParameters, float zoomX) const |
| Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, const eVision::EasyDeepOCR::ETextDrawingParameters &drawingParameters) const |
| Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, const eVision::EFrame &frame, float zoomX, float zoomY, float panX, float panY) const |
| Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, const eVision::EFrame &frame, float zoomX, float zoomY, float panX) const |
| Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, const eVision::EFrame &frame, float zoomX, float zoomY) const |
| Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, const eVision::EFrame &frame, float zoomX) const |
| Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, const eVision::EFrame &frame) const |
| Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, const eVision::EFrame &frame, const eVision::EasyDeepOCR::ETextDrawingParameters &drawingParameters, float zoomX, float zoomY, float panX, float panY) const |
| Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, const eVision::EFrame &frame, const eVision::EasyDeepOCR::ETextDrawingParameters &drawingParameters, float zoomX, float zoomY, float panX) const |
| Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, const eVision::EFrame &frame, const eVision::EasyDeepOCR::ETextDrawingParameters &drawingParameters, float zoomX, float zoomY) const |
| Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, const eVision::EFrame &frame, const eVision::EasyDeepOCR::ETextDrawingParameters &drawingParameters, float zoomX) const |
| Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, const eVision::EFrame &frame, const eVision::EasyDeepOCR::ETextDrawingParameters &drawingParameters) const |
| Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings. | |
| float | GetScore () const |
| Returns the score of this text. 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. When the text has multiple lines, the returned score is the mean of all line scores. | |
| EText (CppWrapperInternal::InternalConstructor) | |
Public Attributes | |
| CppWrapperInternal::WrappedClass | wrappedClass_ |
Represents a text detected by a ETextReader. A EText is composed of one or several ETextLine, that are returned by EText::SetLines.
License(s): EasyDeepOCR
| eVision::EasyDeepOCR::EText::EText | ( | ) |
Constructs a EText.
| eVision::EasyDeepOCR::EText::EText | ( | const eVision::EasyDeepOCR::EText & | other | ) |
| eVision::EasyDeepOCR::EText::EText | ( | const std::vector< eVision::EasyDeepOCR::ETextLine > & | lines | ) |
| eVision::EasyDeepOCR::EText::EText | ( | const eVision::EasyDeepOCR::ETextLine & | line | ) |
|
virtual | ||||||||||||
| eVision::EasyDeepOCR::EText::EText | ( | CppWrapperInternal::InternalConstructor | ) |
| void eVision::EasyDeepOCR::EText::Draw | ( | eVision::EDrawAdapter * | graphicContext | ) | const |
Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings.
| graphicContext | Handle to the device context of the destination window. |
| void eVision::EasyDeepOCR::EText::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| const eVision::EasyDeepOCR::ETextDrawingParameters & | drawingParameters ) const |
Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings.
| graphicContext | Handle to the device context of the destination window. |
| drawingParameters | Class specifying the drawing parameters. |
| void eVision::EasyDeepOCR::EText::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| const eVision::EasyDeepOCR::ETextDrawingParameters & | drawingParameters, | ||
| float | zoomX ) const |
Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings.
| 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::EText::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| const eVision::EasyDeepOCR::ETextDrawingParameters & | drawingParameters, | ||
| float | zoomX, | ||
| float | zoomY ) const |
Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings.
| 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::EText::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| const eVision::EasyDeepOCR::ETextDrawingParameters & | drawingParameters, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) const |
Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings.
| 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::EText::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| const eVision::EasyDeepOCR::ETextDrawingParameters & | drawingParameters, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) const |
Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings.
| 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::EText::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| const eVision::EFrame & | frame ) const |
Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings.
| graphicContext | Handle to the device context of the destination window. |
| frame | Frame associated with the text. |
| void eVision::EasyDeepOCR::EText::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| const eVision::EFrame & | frame, | ||
| const eVision::EasyDeepOCR::ETextDrawingParameters & | drawingParameters ) const |
Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings.
| 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::EText::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| const eVision::EFrame & | frame, | ||
| const eVision::EasyDeepOCR::ETextDrawingParameters & | drawingParameters, | ||
| float | zoomX ) const |
Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings.
| 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::EText::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| const eVision::EFrame & | frame, | ||
| const eVision::EasyDeepOCR::ETextDrawingParameters & | drawingParameters, | ||
| float | zoomX, | ||
| float | zoomY ) const |
Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings.
| 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::EText::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| const eVision::EFrame & | frame, | ||
| const eVision::EasyDeepOCR::ETextDrawingParameters & | drawingParameters, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) const |
Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings.
| 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::EText::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| const eVision::EFrame & | frame, | ||
| const eVision::EasyDeepOCR::ETextDrawingParameters & | drawingParameters, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) const |
Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings.
| 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::EText::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| const eVision::EFrame & | frame, | ||
| float | zoomX ) const |
Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings.
| 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::EText::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| const eVision::EFrame & | frame, | ||
| float | zoomX, | ||
| float | zoomY ) const |
Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings.
| 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::EText::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| const eVision::EFrame & | frame, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) const |
Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings.
| 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::EText::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| const eVision::EFrame & | frame, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) const |
Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings.
| 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::EText::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| float | zoomX ) const |
Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings.
| 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::EText::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| float | zoomX, | ||
| float | zoomY ) const |
Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings.
| 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::EText::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) const |
Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings.
| 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::EText::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) const |
Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings.
| 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::vector< eVision::EasyDeepOCR::ETextLine > eVision::EasyDeepOCR::EText::GetLines | ( | ) | const |
EText lines.
| eVision::ERectangle eVision::EasyDeepOCR::EText::GetPosition | ( | ) | const |
Returns a rectangle that contains all the lines.
| float eVision::EasyDeepOCR::EText::GetScore | ( | ) | const |
Returns the score of this text. 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. When the text has multiple lines, the returned score is the mean of all line scores.
| std::string eVision::EasyDeepOCR::EText::GetString | ( | ) | const |
Returns the concatenation of the line strings, separated by the new line character "\n". The line return.
| void eVision::EasyDeepOCR::EText::Load | ( | const std::string & | path | ) |
| void eVision::EasyDeepOCR::EText::Load | ( | eVision::ESerializer * | serializer | ) |
Loads the EText.
| serializer |
| bool eVision::EasyDeepOCR::EText::Match | ( | const eVision::EasyDeepOCR::EText & | reference | ) | const |
| eVision::EasyDeepOCR::EText & eVision::EasyDeepOCR::EText::operator= | ( | const eVision::EasyDeepOCR::EText & | other | ) |
| void eVision::EasyDeepOCR::EText::Save | ( | const std::string & | path | ) |
| void eVision::EasyDeepOCR::EText::Save | ( | eVision::ESerializer * | serializer | ) |
Saves the EText.
| serializer |
| void eVision::EasyDeepOCR::EText::SetLines | ( | const std::vector< eVision::EasyDeepOCR::ETextLine > & | text | ) |
EText lines.
| CppWrapperInternal::WrappedClass eVision::EasyDeepOCR::EText::wrappedClass_ |