I want to change the video resolution from landscape to portrait mode for output from my inbuilt webcam on the laptop (cv2.VideoCapture(0)). I tried rescaling the frames to get it to work, it does go to portrait mode ( height bigger than width) but the video is skewed/stretched. Is there a way around this ? please help. I am using opencv with python.
question from:https://stackoverflow.com/questions/65561020/how-to-alter-resolution-to-portrait-mode-values-with-opencv-python