def dump_regions(crops):
    shutil.rmtree("bbox-regions", ignore_errors=True)
    os.makedirs("bbox-regions")

    for idx, img in enumerate(crops):
        fname =  get_region_filename(idx)
        skimage.io.imsave(fname, img[2])

    print "Wrote regions out to disk in bbox-regions/"
Writes out region proposals to the disk in regions/ for debugging.
dataset/ETHPy150Open BradNeuberg/cloudless/src/cloudless/inference/localization.py/dump_regions