Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import cv2
- import numpy as np
- cam1 = cv2.VideoCapture(1)
- cam2 = cv2.VideoCapture(2)
- while (1):
- _,frame1 = cam1.read()
- cv2.imshow('frame1',frame1)
- _,frame2 = cam2.read()
- cv2.imshow('frame2',frame2)
- k = cv2.waitKey(5) & 0xFF
- if k == 27:
- break
- cam1.release()
- cam2.release()
- cv2.destroyAllWindows()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement