Skip to content

Release v1.2.8 - Custom show progress function

Compare
Choose a tag to compare
@VanDavv VanDavv released this 13 Dec 15:25
· 65 commits to master since this release

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