Created
May 8, 2020 12:41
-
-
Save 0xRampey/dc0e3326131baaf35c380e7ddbf5119a to your computer and use it in GitHub Desktop.
Quickest way to display a numpy array in Jupyter/Colab
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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