sudo apt-get install xclip -yalias pbcopy='xclip -selection clipboard'
alias pbpaste='xclip -selection clipboard -o'| import cv2 | |
| from typing import Tuple | |
| def resize_with_pad(image: np.array, | |
| new_shape: Tuple[int, int], | |
| padding_color: Tuple[int] = (255, 255, 255)) -> np.array: | |
| """Maintains aspect ratio and resizes with padding. | |
| Params: | |
| image: Image to be resized. |