日々精進

新しく学んだことを書き留めていきます

2016-10-19から1日間の記事一覧

cv2.cvtColorで「Unsupported depth of input image:」'VDepth::contains(depth)' where 'depth' is 6 (CV_64F)エラー

AI

原因はndarrayのdtypeがfloatになっていることだった。 ary.astype(np.uint8)を使ってuint8に変換すると直った。 参考: stackoverflow.com