OpenCV-Python — is a Python bindings library for solving computer vision problems.
Note . The image must be in the working directory or the full path to the image must be specified. All three types of flags are described below:
Image is used for all examples below: Example # 1: Using the default flag Output: Example # 2:
Output: 오류 원인cv2.imread가 파일 경로 안에 있는 '문서'라는 한글을 읽어오지 못하고 에러를 내보냄 오류[ WARN:] global D:\a\opencv-python\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp (239) cv::findDecoder imread_('C:/Users/kimsu/OneDrive/臾몄꽌/GitHub/-/ImagesAttendance/Bill_Gates.jpg'): 해결 방법cv2.imread를 바로 쓰지 않고 版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。 运行出错代码:
报错内容:
报错原因:路径中出现中文字符
参考链接: |