def __preprocess_image(self, src_image # type: OpenCV Mat
                          ):
        # type: (...) -> OpenCV Mat
        """ Perform image preprocessing: First resize the image, then transpose the image (HWC -> CHW). """
        image_to_preprocess = cv2.resize(src_image, (self.input_width, self.input_height))
        image_to_preprocess = numpy.transpose(image_to_preprocess, (2, 0, 1))
        preprocessed_img = image_to_preprocess.reshape((self.input_batchsize, self.input_channels, self.input_height, self.input_width))
        
        return preprocessed_img
 Perform image preprocessing: First resize the image, then transpose the image (HWC -> CHW). 
networks/tiny_yolo_v3/Tiny_yolo_v3_object_detector.py