I'm attempting to scale down an image using the Python OpenCV bindings (CV2, the new bindings):
ret, frame = cap.read()
print frame.shape
# prints (720, 1280, 3)
smallsize = (146,260)
smallframe = cv2.resize(frame, smallsize)
print smallframe.shape
# prints (260, 146, 3)
As you can see, the dimensions somehow end up being flipped on the scaled down image. Instead of returning an image with dimensions (WxH) 146x260, I get 260x146.
What gives?
smallsize
to (260, 146), everything works out correctly.