cv2.putText(img, name + f'__{distance:.2f}', pt_1, cv2.FONT_HERSHEY_PLAIN, 2, (0, 255, 0), 2) ^ SyntaxError: invalid syntax code example
Example: adding text cv2
cv2.putText (image, "text",coordinates)
cv2.putText (image, "text",coordinates)