opencv-python cv2接口下错误TypeError: mat data type=18 is not supported
这个错误原因是因为nbarray这个对象内置一个类别属性,该属性记录了数组元素的类别,属性接口为ndarray.astype(dtype,order='K', casting='unsafe', subok=True, copy=True) (详见 ndarray.astype )该属性在python-opencv mat数据类型必须定义为整型,所以,在调用imshow前只需
原创
2017-02-01 23:34:02 ·
10967 阅读 ·
0 评论