728x90
반응형
[ WARN:0@14.442] global loadsave.cpp:244 findDecoder imread_('./이미지/img.jpg'): can't open/read file: check file path/integrity
해결법 : numpy로 기존 string을 변경해준다.
img_array = np.fromfile(full_path, np.uint8)
img = cv2.imdecode(img_array, cv2.IMREAD_COLOR)
[오류]can't open/read file: check file path/integrity, cv2.Imread 못읽어올때
cv2.imread가 파일 경로 안에 있는 '문서'라는 한글을 읽어오지 못하고 에러를 내보냄 WARN:0@1.828 global D:\\a\\opencv-python\\opencv-python\\opencv\\modules\\imgcodecs\\src\\loadsave
velog.io
728x90
반응형
'사소한 Tip . 오류 해결법' 카테고리의 다른 글
[Python, unquote] 한글 파일명, 한글문자 깨질 때 디코딩. (0) | 2023.07.11 |
---|---|
[python] natsort 파일명 정렬하기. (0) | 2023.07.03 |
[Ubuntu/Linux] 파일명(확장자) 일괄 변경 (띄어쓰기 _ 언더바로 변경하기/파일명에 번호 붙이기) bash script (0) | 2023.06.23 |
[pytorch] AttributeError: 'Upsample' object has no attribute 'recompute_scale_factor' (0) | 2023.06.20 |
[vscode] 파일 탭으로 열 때 새 창에서 열기/미리보기 해제 (0) | 2023.06.01 |