原文:完美解決 scipy.misc.imread 報錯 TypeError: Image data cannot be converted to float

File home harrison anaconda lib python . site packages matplotlib image.py , line , in set data raise TypeError Image data cannot be converted to float TypeError: Image data cannot be converted to fl ...

2019-07-15 11:17 0 1151 推薦指數:

查看詳情

TypeError: Image data of dtype object cannot be converted to float

源碼如下: 程序運行時一直在標紅的代碼處報錯,找了好久才發現自己犯了十分愚蠢的錯誤:路徑寫錯了(同時路徑中含有了中文),雖然是路徑錯了,但一直報的是另外一個錯誤,所以也很難發現這個問題。 所以當你也出現了同樣的錯誤,可以去檢查一下路徑中是否含有中文名或者路徑寫錯了。解決 ...

Sat Oct 19 05:33:00 CST 2019 0 2941
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM