1vs = cv2.VideoCapture(args["video"])
2# grab the frame from the threaded video stream and resize it
3# to have a maximum width of 400 pixels
4
5_, frame = vs.read()
6(w, h, c) = frame.shape
7
8#syntax: cv2.resize(img, (width, height))
9img = cv2.resize(frame,(400, h))
10
11print(w, h)
12print(img.shape)
13>> 480 640
14 (640, 400, 3) #rows(height), columns(width), channels(BGR)