_image_utils ============ .. py:module:: _image_utils Functions --------- .. autoapisummary:: _image_utils.preprocess_img_resnet _image_utils.open_image Module Contents --------------- .. py:function:: preprocess_img_resnet(path) Resnet specific function for preprocessing. Reshape figure to 224,224 and get colour channel at position 0. Also: for resnet preprocessing: normalize the data. This works specifically for ImageNet. See: https://github.com/onnx/models/tree/main/vision/classification/resnet .. py:function:: open_image(file) Open an image from a file and returns it as a numpy array.