In [24]:
import cv2
import numpy as np
from matplotlib import pyplot as plt
from PIL import Image as PILImage
from IPython.display import Image
In [36]:
cap0 = cv2.VideoCapture(0)
In [37]:
#ret1, frame1 = cap1.read()
#ret2, frame2 = cap2.read()
ret, frame = cap0.read()
In [40]:
cap0.release()
In [27]:
im = PILImage.fromarray(frame)
In [28]:
im.save('testcapture.png')
In [29]:
Image('testcapture.png')
Out[29]:
In [30]:
cap1.release()
In [ ]:
In [ ]: