Path: blob/master/Model-1/ocr/viz.pyc
427 views
� j7�Zc @ s, d d l m Z d d d d d d � Z d S( i����( t print_functiont i i( t *c C s� | d 7} d t | � d j d | t | � � } t | | | � } | | d | | } t d | | | | f d d �| | k r� t � n d S( s� Call in a loop to create terminal progress bar @params: iteration - Required : current iteration (Int) total - Required : total iterations (Int) prefix - Optional : prefix string (Str) suffix - Optional : suffix string (Str) decimals - Optional : positive number of decimals in percent complete (Int) length - Optional : character length of bar (Int) fill - Optional : bar fill character (Str) i s {0:.s f}id t -s %s |%s| %s%% %st ends N( t strt formatt floatt intt print( t iterationt totalt prefixt suffixt decimalst lengtht fillt percentt filledLengtht bar( ( s ocr/viz.pyt printProgressBar s + N( t __future__R R ( ( ( s ocr/viz.pyt <module> s