How to use the imgviz.io function in imgviz

To help you get started, we’ve selected a few imgviz examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github wkentaro / imgviz / examples / instances2rgb.py View on Github external
plt.subplot(131)
    plt.title("rgb")
    plt.imshow(data["rgb"])
    plt.axis("off")

    plt.subplot(132)
    plt.title("instances\n(bboxes)")
    plt.imshow(insviz1)
    plt.axis("off")

    plt.subplot(133)
    plt.title("instances\n(masks)")
    plt.imshow(insviz2)
    plt.axis("off")

    img = imgviz.io.pyplot_to_numpy()
    plt.close()

    return img
github wkentaro / imgviz / examples / io_examples / pyglet_threaded_image_viewer.py View on Github external
def main():
    viewer = imgviz.io.PygletThreadedImageViewer(play=True)
    for image in get_images():
        viewer.imshow(image)
github wkentaro / imgviz / examples / io_examples / pyglet_imshow.py View on Github external
def main():
    imgviz.io.pyglet_imshow(next(get_images()), "ndarray")
    imgviz.io.pyglet_run()

    imgviz.io.pyglet_imshow(get_images(), "generator")
    imgviz.io.pyglet_run()

    imgviz.io.pyglet_imshow(list(get_images()), "list")
    imgviz.io.pyglet_run()