myimagelib.myImageLib.show_progress¶
- myimagelib.myImageLib.show_progress(progress, label='', bar_length=60)¶
Display a progress bar in command line environment, which looks like
label [##############-----------] 62%
This is a useful tool for tracking work progress in a batch processing task on a server.
- Parameters
progress (float) – the progress of the work. It is a number between 0 and 1, where 0 is start and 1 is finish
label (str) – a string to put before the progress bar. It can be the name of the work, or the actual number of files that have been processed, and so on. Default to
''
.bar_length (int) – length of the progress bar, in the unit of characters. Default to
60
.
- Returns
None