Draw Text

Description

Draw text in an image. Type : polymorphic.

 

Documentation illustration (illustration unavailable in the archive).

Input parameters

 

Documentation illustration (illustration unavailable in the archive). Image Src : class, type accepted U8, I16, RGB and HSL.

Documentation illustration (illustration unavailable in the archive). Text Parameters : cluster

Documentation illustration (illustration unavailable in the archive). Text : string, text string to be drawn.
Documentation illustration (illustration unavailable in the archive).
X : integer,
X coordinate of the text string in the image.
Documentation illustration (illustration unavailable in the archive).
Y : integer,
Y coordinate of the text string in the image.
Documentation illustration (illustration unavailable in the archive).
Font Face : enum,
font type.

      • FONT_HERSHEY_SIMPLEX : normal size sans-serif font
      • FONT_HERSHEY_PLAIN : small size sans-serif font
      • FONT_HERSHEY_DUPLEX : normal size sans-serif font (more complex than FONT_HERSHEY_SIMPLEX)
      • FONT_HERSHEY_COMPLEX : normal size serif font
      • FONT_HERSHEY_TRIPLEX : normal size serif font (more complex than FONT_HERSHEY_COMPLEX)
      • FONT_HERSHEY_COMPLEX_SMALL : smaller version of FONT_HERSHEY_COMPLEX
      • FONT_HERSHEY_SCRIPT_SIMPLEX : hand-writing style font
      • FONT_HERSHEY_SCRIPT_COMPLEX : more complex variant of FONT_HERSHEY_SCRIPT_SIMPLEX

Documentation illustration (illustration unavailable in the archive). Font Scale : float, font scale factor that is multiplied by the font-specific base size.
Documentation illustration (illustration unavailable in the archive).
Text Color : integer,
color of the text.
Documentation illustration (illustration unavailable in the archive). BG Color : integer, background color of the text overlay.
Documentation illustration (illustration unavailable in the archive). Thickness : integer, thickness of the lines used to draw a text.

Documentation illustration (illustration unavailable in the archive).

Output parameters

 

Documentation illustration (illustration unavailable in the archive). Image Dst : class

Examples

All these examples are snippets PNG, you can drop these Snippet onto the block diagram and get the depicted code added to your VI (Do not forget to install Computer Vision ​library to run it).