I am trying to scale an image using OpenCV Python bindings (CV2, new bindings):
ret, frame = cap.read()
print frame.shape
smallsize = (146,260)
smallframe = cv2.resize(frame, smallsize)
print smallframe.shape
As you can see, the dimensions somehow end up flipping on the thumbnail. Instead of returning an image with dimensions (WxH) of 146x260 , I get 260x146 .
What gives?
source
share