質問編集履歴
1
エラー内容の表示
test
CHANGED
File without changes
|
test
CHANGED
@@ -35,4 +35,21 @@
|
|
35
35
|
おそらくパスの指定が原因か。。。?
|
36
36
|
|
37
37
|
### 補足
|
38
|
+
「[ WARN:0@0.306] global loadsave.cpp:241 findDecoder imread_('neko.jpg'): can't open/read file: check file path/integrity
|
39
|
+
Traceback (most recent call last):
|
40
|
+
File "/home/ユーザー名/robov/free.py", line 10, in <module>
|
41
|
+
plt.imshow(img)
|
42
|
+
File "/home/ユーザー名/venv/lib/python3.10/site-packages/matplotlib/pyplot.py", line 3562, in imshow
|
43
|
+
__ret = gca().imshow(
|
44
|
+
File "/home/ユーザー名/venv/lib/python3.10/site-packages/matplotlib/__init__.py", line 1473, in inner
|
45
|
+
return func(
|
46
|
+
File "/home/ユーザー名/venv/lib/python3.10/site-packages/matplotlib/axes/_axes.py", line 5895, in imshow
|
47
|
+
im.set_data(X)
|
48
|
+
File "/home/ユーザー名/venv/lib/python3.10/site-packages/matplotlib/image.py", line 729, in set_data
|
49
|
+
self._A = self._normalize_image_array(A)
|
50
|
+
File "/home/ユーザー名/venv/lib/python3.10/site-packages/matplotlib/image.py", line 692, in _normalize_image_array
|
51
|
+
raise TypeError(f"Image data of dtype {A.dtype} cannot be "
|
52
|
+
TypeError: Image data of dtype object cannot be converted to float
|
53
|
+
|
54
|
+
|
38
|
-
|
55
|
+
エラー文です。
|