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

Method __init__

image_misc.py:366–373  ·  view source on GitHub ↗
(self, string, defaults, face=None, fsize=None, clr=None, thick=None, align=None, width=None)

Source from the content-addressed store, hash-verified

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

nothing calls this directly

Calls 1

getMethod · 0.80

Tested by

no test coverage detected