Represents a text line detected by a eVision.EasyDeepOCR.ETextReader. More...
Public Member Functions | |
| None | __init__ (self) |
| Constructs a eVision.EasyDeepOCR.ETextLine. | |
| None | __init__ (self, eVision.EasyDeepOCR.ETextLine other) |
| Constructs a eVision.EasyDeepOCR.ETextLine. | |
| None | __init__ (self, eVision.ERectangle rectangle, str text) |
| Constructs a eVision.EasyDeepOCR.ETextLine. | |
| None | Load (self, str path) |
| Loads the eVision.EasyDeepOCR.ETextLine. | |
| None | Load (self, eVision.ESerializer|None serializer) |
| Loads the eVision.EasyDeepOCR.ETextLine. | |
| None | Save (self, str path) |
| Saves the eVision.EasyDeepOCR.ETextLine. | |
| None | Save (self, eVision.ESerializer|None serializer) |
| Saves the eVision.EasyDeepOCR.ETextLine. | |
| bool | Match (self, eVision.EasyDeepOCR.ETextLine reference) |
| Returns true if this eVision.EasyDeepOCR.ETextLine matches the reference eVision.EasyDeepOCR.ETextLine. | |
| eVision.EBaseROI|None | ExtractMiniature (self, eVision.EBaseROI roi) |
| Extracts a miniature image delimited by this eVision.EasyDeepOCR.ETextLine.Rectangle from a source eVision.EBaseROI. | |
| list[eVision._eVision.EasyDeepOCR.ETextLine] | SplitInWords (self) |
| Splits the eVision.EasyDeepOCR.ETextLine into multiple eVision.EasyDeepOCR.ETextLine, one for each word. | |
| None | Draw (self, eVision.EDrawAdapter|None graphicContext, float zoomX, float zoomY, float panX, float panY) |
| Draws the text line box. | |
| None | Draw (self, eVision.EDrawAdapter|None graphicContext, float zoomX, float zoomY, float panX) |
| Draws the text line box. | |
| None | Draw (self, eVision.EDrawAdapter|None graphicContext, float zoomX, float zoomY) |
| Draws the text line box. | |
| None | Draw (self, eVision.EDrawAdapter|None graphicContext, float zoomX) |
| Draws the text line box. | |
| None | Draw (self, eVision.EDrawAdapter|None graphicContext) |
| Draws the text line box. | |
| None | Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters, float zoomX, float zoomY, float panX, float panY) |
| Draws the text line box. | |
| None | Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters, float zoomX, float zoomY, float panX) |
| Draws the text line box. | |
| None | Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters, float zoomX, float zoomY) |
| Draws the text line box. | |
| None | Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters, float zoomX) |
| Draws the text line box. | |
| None | Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters) |
| Draws the text line box. | |
| None | Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY) |
| Draws the text line box. | |
| None | Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EFrame frame, float zoomX, float zoomY, float panX) |
| Draws the text line box. | |
| None | Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EFrame frame, float zoomX, float zoomY) |
| Draws the text line box. | |
| None | Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EFrame frame, float zoomX) |
| Draws the text line box. | |
| None | Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EFrame frame) |
| Draws the text line box. | |
| None | Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EFrame frame, eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters, float zoomX, float zoomY, float panX, float panY) |
| Draws the text line box. | |
| None | Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EFrame frame, eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters, float zoomX, float zoomY, float panX) |
| Draws the text line box. | |
| None | Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EFrame frame, eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters, float zoomX, float zoomY) |
| Draws the text line box. | |
| None | Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EFrame frame, eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters, float zoomX) |
| Draws the text line box. | |
| None | Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EFrame frame, eVision.EasyDeepOCR.ETextDrawingParameters drawingParameters) |
| Draws the text line box. | |
| str | String (self) |
| Text line string. | |
| String (self, str value) | |
| Text line string. | |
| eVision.ERectangle | Rectangle (self) |
| Text line box. | |
| Rectangle (self, eVision.ERectangle value) | |
| Text line box. | |
| bool | IsRegex (self) |
| States whether the eVision.EasyDeepOCR.ETextLine.String is a regular expression or not. | |
| IsRegex (self, bool value) | |
| States whether the eVision.EasyDeepOCR.ETextLine.String is a regular expression or not. | |
| float | Score (self) |
| Returns the score of this text line. | |
Represents a text line detected by a eVision.EasyDeepOCR.ETextReader.
Remarks:
License(s): EasyDeepOCR
| None eVision.EasyDeepOCR.ETextLine.__init__ | ( | self | ) |
Constructs a eVision.EasyDeepOCR.ETextLine.
| None eVision.EasyDeepOCR.ETextLine.__init__ | ( | self, | |
| eVision.EasyDeepOCR.ETextLine | other ) |
Constructs a eVision.EasyDeepOCR.ETextLine.
| other | eVision.EasyDeepOCR.ETextLine to be copied. |
| None eVision.EasyDeepOCR.ETextLine.__init__ | ( | self, | |
| eVision.ERectangle | rectangle, | ||
| str | text ) |
Constructs a eVision.EasyDeepOCR.ETextLine.
| rectangle | Text line box. |
| text | Text string. |
| None eVision.EasyDeepOCR.ETextLine.Draw | ( | self, | |
| eVision.EDrawAdapter | None | graphicContext ) |
Draws the text line box.
| graphicContext | Handle to the device context of the destination window. |
| None eVision.EasyDeepOCR.ETextLine.Draw | ( | self, | |
| eVision.EDrawAdapter | None | graphicContext, | ||
| eVision.EasyDeepOCR.ETextDrawingParameters | drawingParameters ) |
Draws the text line box.
| graphicContext | Handle to the device context of the destination window. |
| drawingParameters | Class specifying the drawing parameters. |
| None eVision.EasyDeepOCR.ETextLine.Draw | ( | self, | |
| eVision.EDrawAdapter | None | graphicContext, | ||
| eVision.EasyDeepOCR.ETextDrawingParameters | drawingParameters, | ||
| float | zoomX ) |
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. |
| None eVision.EasyDeepOCR.ETextLine.Draw | ( | self, | |
| eVision.EDrawAdapter | None | graphicContext, | ||
| eVision.EasyDeepOCR.ETextDrawingParameters | drawingParameters, | ||
| float | zoomX, | ||
| float | zoomY ) |
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. |
| None eVision.EasyDeepOCR.ETextLine.Draw | ( | self, | |
| eVision.EDrawAdapter | None | graphicContext, | ||
| eVision.EasyDeepOCR.ETextDrawingParameters | drawingParameters, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) |
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. |
| None eVision.EasyDeepOCR.ETextLine.Draw | ( | self, | |
| eVision.EDrawAdapter | None | graphicContext, | ||
| eVision.EasyDeepOCR.ETextDrawingParameters | drawingParameters, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) |
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. |
| None eVision.EasyDeepOCR.ETextLine.Draw | ( | self, | |
| eVision.EDrawAdapter | None | graphicContext, | ||
| eVision.EFrame | frame ) |
Draws the text line box.
| graphicContext | Handle to the device context of the destination window. |
| frame | Frame associated with the text. |
| None eVision.EasyDeepOCR.ETextLine.Draw | ( | self, | |
| eVision.EDrawAdapter | None | graphicContext, | ||
| eVision.EFrame | frame, | ||
| eVision.EasyDeepOCR.ETextDrawingParameters | drawingParameters ) |
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. |
| None eVision.EasyDeepOCR.ETextLine.Draw | ( | self, | |
| eVision.EDrawAdapter | None | graphicContext, | ||
| eVision.EFrame | frame, | ||
| eVision.EasyDeepOCR.ETextDrawingParameters | drawingParameters, | ||
| float | zoomX ) |
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. |
| None eVision.EasyDeepOCR.ETextLine.Draw | ( | self, | |
| eVision.EDrawAdapter | None | graphicContext, | ||
| eVision.EFrame | frame, | ||
| eVision.EasyDeepOCR.ETextDrawingParameters | drawingParameters, | ||
| float | zoomX, | ||
| float | zoomY ) |
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. |
| None eVision.EasyDeepOCR.ETextLine.Draw | ( | self, | |
| eVision.EDrawAdapter | None | graphicContext, | ||
| eVision.EFrame | frame, | ||
| eVision.EasyDeepOCR.ETextDrawingParameters | drawingParameters, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) |
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. |
| None eVision.EasyDeepOCR.ETextLine.Draw | ( | self, | |
| eVision.EDrawAdapter | None | graphicContext, | ||
| eVision.EFrame | frame, | ||
| eVision.EasyDeepOCR.ETextDrawingParameters | drawingParameters, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) |
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. |
| None eVision.EasyDeepOCR.ETextLine.Draw | ( | self, | |
| eVision.EDrawAdapter | None | graphicContext, | ||
| eVision.EFrame | frame, | ||
| float | zoomX ) |
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. |
| None eVision.EasyDeepOCR.ETextLine.Draw | ( | self, | |
| eVision.EDrawAdapter | None | graphicContext, | ||
| eVision.EFrame | frame, | ||
| float | zoomX, | ||
| float | zoomY ) |
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. |
| None eVision.EasyDeepOCR.ETextLine.Draw | ( | self, | |
| eVision.EDrawAdapter | None | graphicContext, | ||
| eVision.EFrame | frame, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) |
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. |
| None eVision.EasyDeepOCR.ETextLine.Draw | ( | self, | |
| eVision.EDrawAdapter | None | graphicContext, | ||
| eVision.EFrame | frame, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) |
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. |
| None eVision.EasyDeepOCR.ETextLine.Draw | ( | self, | |
| eVision.EDrawAdapter | None | graphicContext, | ||
| float | zoomX ) |
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. |
| None eVision.EasyDeepOCR.ETextLine.Draw | ( | self, | |
| eVision.EDrawAdapter | None | graphicContext, | ||
| float | zoomX, | ||
| float | zoomY ) |
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. |
| None eVision.EasyDeepOCR.ETextLine.Draw | ( | self, | |
| eVision.EDrawAdapter | None | graphicContext, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) |
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. |
| None eVision.EasyDeepOCR.ETextLine.Draw | ( | self, | |
| eVision.EDrawAdapter | None | graphicContext, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) |
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. |
| eVision.EBaseROI | None eVision.EasyDeepOCR.ETextLine.ExtractMiniature | ( | self, | |
| eVision.EBaseROI | roi ) |
Extracts a miniature image delimited by this eVision.EasyDeepOCR.ETextLine.Rectangle from a source eVision.EBaseROI.
| bool eVision.EasyDeepOCR.ETextLine.IsRegex | ( | self | ) |
States whether the eVision.EasyDeepOCR.ETextLine.String is a regular expression or not.
This flag is used only when converting this eVision.EasyDeepOCR.ETextLine to an EasyDeepOCR.ESampleTextLine. This property is a workaround to be able to create eVision.EasyDeepOCR.ESamples with regex from the public API, for testing purpuses.
| eVision.EasyDeepOCR.ETextLine.IsRegex | ( | self, | |
| bool | value ) |
States whether the eVision.EasyDeepOCR.ETextLine.String is a regular expression or not.
This flag is used only when converting this eVision.EasyDeepOCR.ETextLine to an EasyDeepOCR.ESampleTextLine. This property is a workaround to be able to create eVision.EasyDeepOCR.ESamples with regex from the public API, for testing purpuses.
| None eVision.EasyDeepOCR.ETextLine.Load | ( | self, | |
| eVision.ESerializer | None | serializer ) |
Loads the eVision.EasyDeepOCR.ETextLine.
| serializer | - |
| None eVision.EasyDeepOCR.ETextLine.Load | ( | self, | |
| str | path ) |
Loads the eVision.EasyDeepOCR.ETextLine.
| path | Path where to save the eVision.EasyDeepOCR.ETextLine. |
| bool eVision.EasyDeepOCR.ETextLine.Match | ( | self, | |
| eVision.EasyDeepOCR.ETextLine | reference ) |
Returns true if this eVision.EasyDeepOCR.ETextLine matches the reference eVision.EasyDeepOCR.ETextLine.
A eVision.EasyDeepOCR.ETextLine matches a reference eVision.EasyDeepOCR.ETextLine when both eVision.EasyDeepOCR.ETextLine.String are equal and when this eVision.EasyDeepOCR.ETextLine.Rectangle is similar, or slightly wider, than the reference eVision.EasyDeepOCR.ETextLine.Rectangle.
| eVision.ERectangle eVision.EasyDeepOCR.ETextLine.Rectangle | ( | self | ) |
Text line box.
| eVision.EasyDeepOCR.ETextLine.Rectangle | ( | self, | |
| eVision.ERectangle | value ) |
Text line box.
| None eVision.EasyDeepOCR.ETextLine.Save | ( | self, | |
| eVision.ESerializer | None | serializer ) |
Saves the eVision.EasyDeepOCR.ETextLine.
| serializer | - |
| None eVision.EasyDeepOCR.ETextLine.Save | ( | self, | |
| str | path ) |
Saves the eVision.EasyDeepOCR.ETextLine.
| path | Path where to save the eVision.EasyDeepOCR.ETextLine. |
| float eVision.EasyDeepOCR.ETextLine.Score | ( | self | ) |
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.
| list[eVision._eVision.EasyDeepOCR.ETextLine] eVision.EasyDeepOCR.ETextLine.SplitInWords | ( | self | ) |
Splits the eVision.EasyDeepOCR.ETextLine into multiple eVision.EasyDeepOCR.ETextLine, one for each word.
Every returned eVision.EasyDeepOCR.ETextLine corresponds to a single word from the original eVision.EasyDeepOCR.ETextLine. The width of each eVision.EasyDeepOCR.ETextLine.Rectangle is based on the word's character count, assuming a fixed character width. This method is intended for testing purposes only.
| str eVision.EasyDeepOCR.ETextLine.String | ( | self | ) |
Text line string.
| eVision.EasyDeepOCR.ETextLine.String | ( | self, | |
| str | value ) |
Text line string.