cv2.imread(filepath).flatten()
AttributeError: ‘NoneType’ object has no attribute ‘flatten’
在使用cv2.imread( 路径 ) 方法得到多维数组后想转为1维数组会调用 .flatten( )方法
但是会报错,AttributeError: ‘NoneType’ object has no attribute ‘flatten’
这是由于 imread( 路径 )此路径中含有 中文字符 引用的路径没有中文字符就行了
2020-08-06
最新推荐文章于 2024-06-09 11:01:50 发布