使用opencv库读取图像
[ WARN:[email protected]] global D:\a\opencv-python\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp (239) cv::findDecoder imread_(‘E:\02_数据\01_GID\image\GF2_PMS1__L1A0000564539-MSS1.tif’): can’t open/read file: check file path/integrity
path = r"E:\02_数据\01_GID\image\GF2_PMS1__L1A0000564539_MSS1.tif"
data = cv2.imread(path)
cv2.imread()中的路径:
1、不能有中文字符
2、路径前加‘r’或者用双反斜杠
修改文件路径中的“数据”为“data”