import cv2 def sharpen_image(img): # No sharpening required. # Return image exactly as generated. return img def upscale_image(img, scale=2): height = int(img.shape[0] * scale) width = int(img.shape[1] * scale) upscaled = cv2.resize( img, (width, height), interpolation=cv2.INTER_NEAREST ) return upscaled