Args: size (int): the size to resize the shortest edge to.
(self, size, interp=cv2.INTER_LINEAR)
| 63 | """ |
| 64 | |
| 65 | def __init__(self, size, interp=cv2.INTER_LINEAR): |
| 66 | """ |
| 67 | Args: |
| 68 | size (int): the size to resize the shortest edge to. |
| 69 | """ |
| 70 | size = int(size) |
| 71 | self._init(locals()) |
| 72 | |
| 73 | def get_transform(self, img): |
| 74 | h, w = img.shape[:2] |