Skip to content

Instantly share code, notes, and snippets.

@0xRampey
Created May 8, 2020 12:41
Show Gist options
  • Save 0xRampey/dc0e3326131baaf35c380e7ddbf5119a to your computer and use it in GitHub Desktop.
Save 0xRampey/dc0e3326131baaf35c380e7ddbf5119a to your computer and use it in GitHub Desktop.
Quickest way to display a numpy array in Jupyter/Colab
from matplotlib.pyplot import imshow
%matplotlib inline
#image is a numpy array
imshow(image)
##Another way in colab is...
from google.colab.patches import cv2_imshow
cv2_imshow(image)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment