In [1]:
import pyvision as pv
import PIL
import numpy as np

In [2]:
lena = pv.LENA
lena_img = pv.Image(lena)

In [3]:
lena_PIL = lena_img.asPIL()

In [5]:
#we can use subplot for multiple output images
subplot(221)
x = imshow(lena_PIL)
subplot(222)
y = imshow(lena_PIL, origin="lower")  #specify origin to swap orientation



In [6]:
lena_np = lena_img.asMatrix2D()
imshow(lena_np.T, cmap="gray")


Out[6]:
<matplotlib.image.AxesImage at 0x10efe7550>

In [34]:
from IPython.display import YouTubeVideo
vid = YouTubeVideo("TXOR1-fZw64")
display(vid)



In [15]: