python opencv resized code example Example: python opencv imresize im = cv2.resize(im, None, fx=1/3, fy=1/3, interpolation=cv2.INTER_AREA)