DrawText
The DrawText block writes a text string on an image.
Library
ComputerVision/Images/Draw
Description
Placement of the text string is controlled by the Position parameters in the dialog.
Parameters
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
text | Text | Indicates the text string placed on the image. | String | |
externalActivation | External activation | This parameter defines if the block receives or inherits an external activation. When External Activation is used, an additional activation port is added to the block. Default is OFF. | Number | 0 |
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
useInput | Use input to define the position of the text | Number | 0 | |
textpos | Text position | Indicate the coordinates of the top left corner. | Vector of size 2 |
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
fontSize | Size | Specifies the size of the text string in pixels. | Scalar | |
fontThickness | Thickness | Specifies the thickness of text characters. | Scalar | |
fontType | Type | Specifies the style of the Hersey font. | String | 'Hershey |
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
red | R | Specifies the line’s color as RGB values. | Scalar | |
green | G | Specifies the line’s color as RGB values. | Scalar | |
blue | B | Specifies the line’s color as RGB values. | Scalar |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
src | explicit | input | 1 | |
image | explicit | output | 1 | |
Port 3 | explicit | input | useInput | |
Port 4 | activation | input | externalActivation |