DrawText

The DrawText block writes a text string on an image.

    DrawText

Library

ComputerVision/Images/Draw

Description

Placement of the text string is controlled by the Position parameters in the dialog.

Parameters

DrawText_0

NameLabelDescriptionData TypeValid 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
1

DrawText_1

NameLabelDescriptionData TypeValid Values

useInput

Use input to define the position of the text

Number

0
1

textpos

Text position

Indicate the coordinates of the top left corner.

Vector of size 2

DrawText_2

NameLabelDescriptionData TypeValid 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
Simplex'
'Hershey
Plain'
'Hershey
Duplex'
'Hershey
Complex'
'Hershey
Triplex'
'Hershey
Complex
Small'
'Hershey
Script
Simplex'
'Hershey
Script
Complex'

DrawText_3

NameLabelDescriptionData TypeValid 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

NameTypeDescriptionIO TypeNumber

src

explicit

input

1

image

explicit

output

1

Port 3

explicit

input

useInput

Port 4

activation

input

externalActivation