opencv小白的错误总结:颜色空间转换出错
import numpy as npimport cv2img=np.mat(np.zeros((300,300)))img=cv2.cvtColor(img,cv2.COLOR_GRAY2BGR)print(img.shape)cv2.imshow("test",img)cv2.waitKey(0)pycharm下运行如上代码时,出现错误:OpenCV Error: Asserti...
原创
2018-03-05 15:08:13 ·
6040 阅读 ·
0 评论