(image)
| 280 | return image |
| 281 | |
| 282 | def mapper_image(image): |
| 283 | # HxWx3 -> 3xHxW -> 1x3xHxW |
| 284 | image_array = np.transpose(image, (2, 0, 1)) |
| 285 | image_array = image_array.astype('float32') |
| 286 | image_array = image_array[np.newaxis, :] |
| 287 | return image_array |
| 288 | |
| 289 | def flip_left_right_image(image): |
| 290 | return cv2.flip(image, 1) |