Opencv读入原始图像cv2.error: C:projectsopencv-pythonopencvmodulesimgprocsrccolor.cpp:11048: error:

时间:2024-05-22 07:31:10

Opencv读入原始图像报错cv2.error: C:\projects\opencv-python\opencv\modules\imgproc\src\color.cpp:11048: error:

1.使用opencv读取图片

Opencv读入原始图像cv2.error: C:\projects\opencv-python\opencv\modules\imgproc\src\color.cpp:11048: error:

2.报错

Opencv读入原始图像cv2.error: C:\projects\opencv-python\opencv\modules\imgproc\src\color.cpp:11048: error:

3.解决

(1)检查文件夹分割

核对图片路径中文件夹分割是否正确,将“\”改成"/"

(2)检查图片扩展名

检查图片扩展名是否正确,“jpeg"改成“jgp”

Opencv读入原始图像cv2.error: C:\projects\opencv-python\opencv\modules\imgproc\src\color.cpp:11048: error:
----->
Opencv读入原始图像cv2.error: C:\projects\opencv-python\opencv\modules\imgproc\src\color.cpp:11048: error: