Release v1.2.8 - Custom show progress function
In this PR, we added the ability to setup a custom show progress function.
To use it, you can call
blobconverter.set_defaults(progress_func=progressFunc)
where progressFunc
should accept two arguments: current bytes downloaded and total bytes to download.
Example function (from DepthAI SDK):
def progressFunc(curr, max):
done = int(50 * curr / max)
sys.stdout.write("\r[{}{}] ".format('=' * done, ' ' * (50-done)) )
sys.stdout.flush()
Full Changelog: v1.2.7...v1.2.8