(self, img_path)
| 28 | return image |
| 29 | |
| 30 | def _load_image(self, img_path): |
| 31 | if img_path is None or img_path == '': |
| 32 | return None |
| 33 | img = Image.open(img_path) |
| 34 | img = self._pillow_convert(img) |
| 35 | return img |
| 36 | |
| 37 | def _resize_crop(self, img, oh, ow, normalize=True): |
| 38 | """ |
no test coverage detected