In [1]:
%matplotlib inline
In [13]:
from __future__ import print_function
from __future__ import division
import numpy as np
from matplotlib import pyplot as plt
import cv2
print('OpenCV version {}'.format(cv2.__version__))
Gif test
In [9]:
cam = cv2.VideoCapture(0)
ret, frame = cam.read()
if ret:
frame = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)
plt.imshow(frame, interpolation = 'bicubic')
cam.release()
In [14]:
plt.imshow(frame);
In [ ]: