MCPcopy
hub / github.com/yosinski/deep-visualization-toolbox / FormattedString

Class FormattedString

image_misc.py:365–373  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

363
364
365class FormattedString(object):
366 def __init__(self, string, defaults, face=None, fsize=None, clr=None, thick=None, align=None, width=None):
367 self.string = string
368 self.face = face if face else defaults['face']
369 self.fsize = fsize if fsize else defaults['fsize']
370 self.clr = clr if clr else defaults['clr']
371 self.thick = thick if thick else defaults['thick']
372 self.width = width # if None: calculate width automatically
373 self.align = align if align else defaults.get('align', 'left')
374
375
376def cv2_typeset_text(data, lines, loc, between = ' ', string_spacing = 0, line_spacing = 0, wrap = False):

Callers 7

run_loopMethod · 0.90
draw_helpMethod · 0.90
_draw_control_paneMethod · 0.90
_draw_status_paneMethod · 0.90
_draw_layer_paneMethod · 0.90
draw_helpMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected