def preprocess_input(self, image):
    '\n        Method to process inputs before feeding them into the model for inference.\n        '
    image = cv2.resize(image, (self.input_shape[3], self.input_shape[2]))
    image = image.transpose((2, 0, 1))
    image = image.reshape(1, *image.shape)
    return image
Method to process inputs before feeding them into the model for inference.
def preprocess_input(self, image):
    '\n        \n        '
    image = cv2.resize(image, (self.input_shape[3], self.input_shape[2]))
    image = image.transpose((2, 0, 1))
    image = image.reshape(1, *image.shape)
    return image