import cv2 cap0=cv2.VideoCapture(0) #sortie 0 Picam Picamwin="PIcam" # nom de la fenetre PIcam cv2.namedWindow(PIcamwin, cv2.WINDOW_NORMAL) cv2.resizeWindow(PIcamwin, 640, 480) cv2.moveWindow(PIcamwin, 300, 60) cap1=cv2.VideoCapture(1) #sortie 1 Webcam USB USBcamwin="USBcam" # nom de la fenetre Webcam cv2.namedWindow(USBcamwin, cv2.WINDOW_NORMAL) cv2.resizeWindow(USBcamwin, 640, 480) cv2.moveWindow(USBcamwin, 360, 60) while True: ret, frame0 = cap0.read() ret, frame1 = cap1.read() cv2.imshow(PIcamwin", frame0) cv2.imshow(USBcamwin, frame1) if cv2.waitKey(1) & 0xFF == ord('q'): break