Represents a text detected by a eVision.EasyDeepOCR.ETextReader. More...
Public Member Functions | |
| None | __init__ (self) |
| Constructs a eVision.EasyDeepOCR.EText. | |
| None | __init__ (self, eVision.EasyDeepOCR.EText other) |
| Constructs a eVision.EasyDeepOCR.EText. | |
| None | __init__ (self, list[eVision._eVision.EasyDeepOCR.ETextLine] lines) |
| Constructs a eVision.EasyDeepOCR.EText. | |
| None | __init__ (self, eVision.EasyDeepOCR.ETextLine line) |
| Constructs a eVision.EasyDeepOCR.EText. | |
| None | Load (self, str path) |
| Loads the eVision.EasyDeepOCR.EText. | |
| None | Load (self, eVision.ESerializer|None serializer) |
| Loads the eVision.EasyDeepOCR.EText. | |
| None | Save (self, str path) |
| Saves the eVision.EasyDeepOCR.EText. | |
| None | Save (self, eVision.ESerializer|None serializer) |
| Saves the eVision.EasyDeepOCR.EText. | |
| bool | Match (self, eVision.EasyDeepOCR.EText reference) |
| Returns true if this eVision.EasyDeepOCR.EText matches the reference eVision.EasyDeepOCR.EText. | |
| None | Draw (self, eVision.EDrawAdapter|None graphicContext, float zoomX, float zoomY, float panX, float panY) |
| Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings. | |
| None | Draw (self, eVision.EDrawAdapter|None graphicContext, float zoomX, float zoomY, float panX) |
| Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings. | |
| None | Draw (self, eVision.EDrawAdapter|None graphicContext, float zoomX, float zoomY) |
| Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings. | |
| None | Draw (self, eVision.EDrawAdapter|None graphicContext, float zoomX) |
| Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings. | |
| None | Draw (self, eVision.EDrawAdapter|None graphicContext) |
| Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings. | |
| None | Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters, float zoomX, float zoomY, float panX, float panY) |
| Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings. | |
| None | Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters, float zoomX, float zoomY, float panX) |
| Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings. | |
| None | Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters, float zoomX, float zoomY) |
| Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings. | |
| None | Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters, float zoomX) |
| Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings. | |
| None | Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters) |
| Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings. | |
| None | Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY) |
| Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings. | |
| None | Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EFrame frame, float zoomX, float zoomY, float panX) |
| Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings. | |
| None | Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EFrame frame, float zoomX, float zoomY) |
| Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings. | |
| None | Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EFrame frame, float zoomX) |
| Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings. | |
| None | Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EFrame frame) |
| Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings. | |
| None | Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EFrame frame, eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters, float zoomX, float zoomY, float panX, float panY) |
| Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings. | |
| None | Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EFrame frame, eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters, float zoomX, float zoomY, float panX) |
| Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings. | |
| None | Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EFrame frame, eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters, float zoomX, float zoomY) |
| Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings. | |
| None | Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EFrame frame, eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters, float zoomX) |
| Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings. | |
| None | Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EFrame frame, eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters) |
| Draws either the text box labelled with the detected text string, or all the line boxes labelled with the detected line strings. | |
| list[eVision._eVision.EasyDeepOCR.ETextLine] | Lines (self) |
| eVision.EasyDeepOCR.EText lines. | |
| Lines (self, list[eVision._eVision.EasyDeepOCR.ETextLine] value) | |
| eVision.EasyDeepOCR.EText lines. | |
| eVision.ERectangle | Position (self) |
| Returns a rectangle that contains all the lines. | |
| str | String (self) |
| Returns the concatenation of the line strings, separated by the new line character "\n". | |
| float | Score (self) |
| Returns the score of this text. | |
Represents a text detected by a eVision.EasyDeepOCR.ETextReader.
A eVision.EasyDeepOCR.EText is composed of one or several eVision.EasyDeepOCR.ETextLine, that are returned by eVision.EasyDeepOCR.EText.Lines.
Remarks:
License(s): EasyDeepOCR
| None eVision.EasyDeepOCR.EText.__init__ | ( | self | ) |
Constructs a eVision.EasyDeepOCR.EText.
| None eVision.EasyDeepOCR.EText.__init__ | ( | self, | |
| eVision.EasyDeepOCR.EText | other ) |
Constructs a eVision.EasyDeepOCR.EText.
| other | eVision.EasyDeepOCR.EText to be copied. |
| None eVision.EasyDeepOCR.EText.__init__ | ( | self, | |
| list[eVision._eVision.EasyDeepOCR.ETextLine] | lines ) |
Constructs a eVision.EasyDeepOCR.EText.
| lines | List of eVision.EasyDeepOCR.ETextLine of the eVision.EasyDeepOCR.EText. |
| None eVision.EasyDeepOCR.EText.__init__ | ( | self, | |
| eVision.EasyDeepOCR.ETextLine | line ) |
Constructs a eVision.EasyDeepOCR.EText.
| line | Single line for the eVision.EasyDeepOCR.EText. |
| None eVision.EasyDeepOCR.EText.Draw | ( | self, | |
| eVision.EDrawAdapter | None | graphicContext ) |
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. |
| None eVision.EasyDeepOCR.EText.Draw | ( | self, | |
| eVision.EDrawAdapter | None | graphicContext, | ||
| eVision.EasyDeepOCR.ETextDrawingParameters | drawingParameters ) |
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. |
| None eVision.EasyDeepOCR.EText.Draw | ( | self, | |
| eVision.EDrawAdapter | None | graphicContext, | ||
| eVision.EasyDeepOCR.ETextDrawingParameters | drawingParameters, | ||
| float | zoomX ) |
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. |
| None eVision.EasyDeepOCR.EText.Draw | ( | self, | |
| eVision.EDrawAdapter | None | graphicContext, | ||
| eVision.EasyDeepOCR.ETextDrawingParameters | drawingParameters, | ||
| float | zoomX, | ||
| float | zoomY ) |
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. |
| None eVision.EasyDeepOCR.EText.Draw | ( | self, | |
| eVision.EDrawAdapter | None | graphicContext, | ||
| eVision.EasyDeepOCR.ETextDrawingParameters | drawingParameters, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) |
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. |
| None eVision.EasyDeepOCR.EText.Draw | ( | self, | |
| eVision.EDrawAdapter | None | graphicContext, | ||
| eVision.EasyDeepOCR.ETextDrawingParameters | drawingParameters, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) |
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. |
| None eVision.EasyDeepOCR.EText.Draw | ( | self, | |
| eVision.EDrawAdapter | None | graphicContext, | ||
| eVision.EFrame | frame ) |
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. |
| None eVision.EasyDeepOCR.EText.Draw | ( | self, | |
| eVision.EDrawAdapter | None | graphicContext, | ||
| eVision.EFrame | frame, | ||
| eVision.EasyDeepOCR.ETextDrawingParameters | drawingParameters ) |
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. |
| None eVision.EasyDeepOCR.EText.Draw | ( | self, | |
| eVision.EDrawAdapter | None | graphicContext, | ||
| eVision.EFrame | frame, | ||
| eVision.EasyDeepOCR.ETextDrawingParameters | drawingParameters, | ||
| float | zoomX ) |
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. |
| None eVision.EasyDeepOCR.EText.Draw | ( | self, | |
| eVision.EDrawAdapter | None | graphicContext, | ||
| eVision.EFrame | frame, | ||
| eVision.EasyDeepOCR.ETextDrawingParameters | drawingParameters, | ||
| float | zoomX, | ||
| float | zoomY ) |
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. |
| None eVision.EasyDeepOCR.EText.Draw | ( | self, | |
| eVision.EDrawAdapter | None | graphicContext, | ||
| eVision.EFrame | frame, | ||
| eVision.EasyDeepOCR.ETextDrawingParameters | drawingParameters, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) |
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. |
| None eVision.EasyDeepOCR.EText.Draw | ( | self, | |
| eVision.EDrawAdapter | None | graphicContext, | ||
| eVision.EFrame | frame, | ||
| eVision.EasyDeepOCR.ETextDrawingParameters | drawingParameters, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) |
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. |
| None eVision.EasyDeepOCR.EText.Draw | ( | self, | |
| eVision.EDrawAdapter | None | graphicContext, | ||
| eVision.EFrame | frame, | ||
| float | zoomX ) |
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. |
| None eVision.EasyDeepOCR.EText.Draw | ( | self, | |
| eVision.EDrawAdapter | None | graphicContext, | ||
| eVision.EFrame | frame, | ||
| float | zoomX, | ||
| float | zoomY ) |
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. |
| None eVision.EasyDeepOCR.EText.Draw | ( | self, | |
| eVision.EDrawAdapter | None | graphicContext, | ||
| eVision.EFrame | frame, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) |
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. |
| None eVision.EasyDeepOCR.EText.Draw | ( | self, | |
| eVision.EDrawAdapter | None | graphicContext, | ||
| eVision.EFrame | frame, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) |
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. |
| None eVision.EasyDeepOCR.EText.Draw | ( | self, | |
| eVision.EDrawAdapter | None | graphicContext, | ||
| float | zoomX ) |
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. |
| None eVision.EasyDeepOCR.EText.Draw | ( | self, | |
| eVision.EDrawAdapter | None | graphicContext, | ||
| float | zoomX, | ||
| float | zoomY ) |
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. |
| None eVision.EasyDeepOCR.EText.Draw | ( | self, | |
| eVision.EDrawAdapter | None | graphicContext, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) |
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. |
| None eVision.EasyDeepOCR.EText.Draw | ( | self, | |
| eVision.EDrawAdapter | None | graphicContext, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) |
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. |
| list[eVision._eVision.EasyDeepOCR.ETextLine] eVision.EasyDeepOCR.EText.Lines | ( | self | ) |
eVision.EasyDeepOCR.EText lines.
| eVision.EasyDeepOCR.EText.Lines | ( | self, | |
| list[eVision._eVision.EasyDeepOCR.ETextLine] | value ) |
eVision.EasyDeepOCR.EText lines.
| None eVision.EasyDeepOCR.EText.Load | ( | self, | |
| eVision.ESerializer | None | serializer ) |
Loads the eVision.EasyDeepOCR.EText.
| serializer | - |
| None eVision.EasyDeepOCR.EText.Load | ( | self, | |
| str | path ) |
Loads the eVision.EasyDeepOCR.EText.
| path | Path where to save the eVision.EasyDeepOCR.EText. |
| bool eVision.EasyDeepOCR.EText.Match | ( | self, | |
| eVision.EasyDeepOCR.EText | reference ) |
Returns true if this eVision.EasyDeepOCR.EText matches the reference eVision.EasyDeepOCR.EText.
A eVision.EasyDeepOCR.EText matches a reference eVision.EasyDeepOCR.EText when all their eVision.EasyDeepOCR.ETextLine match each other (eVision.EasyDeepOCR.ETextLine.Match).
| eVision.ERectangle eVision.EasyDeepOCR.EText.Position | ( | self | ) |
Returns a rectangle that contains all the lines.
| None eVision.EasyDeepOCR.EText.Save | ( | self, | |
| eVision.ESerializer | None | serializer ) |
Saves the eVision.EasyDeepOCR.EText.
| serializer | - |
| None eVision.EasyDeepOCR.EText.Save | ( | self, | |
| str | path ) |
Saves the eVision.EasyDeepOCR.EText.
| path | Path where to save the eVision.EasyDeepOCR.EText. |
| float eVision.EasyDeepOCR.EText.Score | ( | self | ) |
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.
| str eVision.EasyDeepOCR.EText.String | ( | self | ) |
Returns the concatenation of the line strings, separated by the new line character "\n".
The line return