(img)
| 31 | |
| 32 | |
| 33 | def preprocess(img): |
| 34 | input_shape = (1, 1, 64, 64) |
| 35 | img = img.resize((64, 64), Image.ANTIALIAS) |
| 36 | img_data = np.array(img).astype(np.float32) |
| 37 | img_data = np.resize(img_data, input_shape) |
| 38 | return img_data |
| 39 | |
| 40 | |
| 41 | def get_image_labe(): |