(img)
| 155 | |
| 156 | |
| 157 | def random_gaussian_blur(img): |
| 158 | gauss_size = random.choice([1, 3, 5, 7]) |
| 159 | if gauss_size > 1: |
| 160 | # do the gaussian blur |
| 161 | img = cv2.GaussianBlur(img, (gauss_size, gauss_size), 0) |
| 162 | |
| 163 | return img |
| 164 | |
| 165 | |
| 166 | def center_crop(img, shape): |
nothing calls this directly
no outgoing calls
no test coverage detected