def METHOD_NAME(self, img):
    im_info = {
        'scale_factor': np.array(
            [1., 1.], dtype=np.float32),
        'im_shape': np.array(
            img.shape[:2], dtype=np.float32),
        'input_shape': self.config["Global"]["image_shape"],
        "scale_factor": np.array(
            [1., 1.], dtype=np.float32)
    }
    im, im_info = det_preprocess(img, im_info, self.preprocess_ops)
    inputs = self.create_inputs(im, im_info)
    return inputs