Scale the image to make the smaller side be at the give size This method is to replace original resize
(img, small_size)
| 134 | |
| 135 | |
| 136 | def scale(img, small_size): |
| 137 | '''Scale the image to make the smaller side be at the give size |
| 138 | This method is to replace original resize''' |
| 139 | return resize(img, small_size) |
| 140 | |
| 141 | |
| 142 | def resize_by_hw(img, size): |