dsdl.geometry.text
Text
Bases: BaseGeometry
, FontMixin
Source code in /Users/bin/anaconda3/envs/dsdl/lib/python3.10/site-packages/dsdl/geometry/text.py
text
property
Returns:
Type | Description |
---|---|
The text of the current text annotation. |
value
property
Returns:
Type | Description |
---|---|
The text of the current text annotation. |
__init__(value)
A Geometry class which abstracts a text annotation object.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
value |
The text annotation. |
required |
visualize(image, palette, **kwargs)
Draw the current text annotation on an given image.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
image |
The image where the text annotation to be drawn. |
required | |
palette |
The palette which stores the color of different category name. |
required | |
**kwargs |
Other annotations which may be used when drawing the current text annotation, such as |
{}
|
Returns:
Type | Description |
---|---|
The image where the current text annotation has been drawn on. |