SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape 에러 해결

Nunucoder·2021년 9월 4일
0
post-thumbnail

img_file = "C:\Users\leez\img\girl.jpg"
img = cv2.imread(img_file)

위 코드를 작성했지만

오류가 발생했다. 다음 에러는
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape

"C:Users\leez\img\girl.jpg" ==> "C:/Users/leez/img/girl.jpg"

\ 를 /로 바꿔준다 !!![]

profile
집에가고싶다

0개의 댓글