Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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
def main():
viewer = imgviz.io.PygletThreadedImageViewer(play=True)
for image in get_images():
viewer.imshow(image)
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()