import numpy as np import cv2 cap = cv2.VideoCapture(0) while(cap.isOpened()): ret, frame = cap.read() res = cv2.resize(frame,None,fx=0.5,fy=0.5, interpolation = cv2.INTER_CUBIC) res2 = cv2.resize(frame,(160,120), interpolation = cv2.INTER_CUBIC) cv2.imshow('frame',frame) cv2.imshow('Escalada',res) cv2.imshow('Escalada 2',res2) if cv2.waitKey(1) & 0xFF == ord('q'): break cap.release() cv2.destroyAllWindows()