output_size:(w, h)
(self, src, dst, output_size, border_value=[0, 0, 0])
| 96 | """ |
| 97 | |
| 98 | def __init__(self, src, dst, output_size, border_value=[0, 0, 0]): |
| 99 | """ |
| 100 | output_size:(w, h) |
| 101 | """ |
| 102 | super().__init__() |
| 103 | affine = cv2.getAffineTransform(np.float32(src), np.float32(dst)) |
| 104 | self._set_attributes(locals()) |
| 105 | |
| 106 | def apply_image(self, img: np.ndarray) -> np.ndarray: |
| 107 | """ |