def annotateImg(img, color, size, position, text): cv2.putText(img, text, position, cv2.FONT_HERSHEY_PLAIN, size, color, thickness = 2) return img