TextZone
The TextZone
class represents a single text zone.
Definition
Module: dynamsoft_core
class TextZone
Methods
Method | Description |
---|---|
__init__ |
Initializes a new instance of the TextZone class. |
get_location |
Gets the location of the text zone. |
set_location |
Sets the location of the text zone. |
get_char_contours_indices |
Gets the indices of the character contours. |
set_char_contours_indices |
Sets the indices of the character contours. |
__init__
Initializes a new instance of the TextZone
class.
def __init__(self, loc: Quadrilateral = None, char_contours_indices: List[int] = None):
Parameters
loc
The location of the text zone.
char_contours_indices
The indices of the character contours.
See Also
get_location
Gets the location of the text zone.
def get_location(self) -> Quadrilateral:
Return Value
Returns the location of the text zone.
See Also
set_location
Sets the location of the text zone.
def set_location(self, loc: Quadrilateral):
Parameters
loc
The location of the text zone.
See Also
get_char_contours_indices
Gets the indices of the character contours.
def get_char_contours_indices(self) -> List[int]:
set_char_contours_indices
Sets the indices of the character contours.
def set_char_contours_indices(self, char_contours_indices: List[int]):
Parameters
char_contours_indices
The indices of the character contours.