質問編集履歴

2

codeの使用

2019/12/06 06:21

投稿

sotetu
sotetu

スコア6

test CHANGED
File without changes
test CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
 
6
6
 
7
- OCRをpythonで自作する方法【機械学習】
7
+ https://ebi-works.com/ocr-python/
8
8
 
9
9
 
10
10
 
@@ -12,7 +12,9 @@
12
12
 
13
13
 
14
14
 
15
+ ```ここに言語を入力
16
+
15
- <code>from PIL import Image
17
+ from PIL import Image
16
18
 
17
19
  import numpy as np
18
20
 
@@ -66,13 +68,17 @@
66
68
 
67
69
  predicted = nn.sim( img_pixels_norm)
68
70
 
69
- print('結果:', orig_labels[np.argmax(predicted)]) <code>
71
+ print('結果:', orig_labels[np.argmax(predicted)])
72
+
73
+ ```
70
74
 
71
75
  エラー内容
72
76
 
73
77
 
74
78
 
79
+ ```ここに言語を入力
80
+
75
- <code>NameError Traceback (most recent call last)
81
+ NameError Traceback (most recent call last)
76
82
 
77
83
  <ipython-input-9-a6b6226034ac> in <module>
78
84
 
@@ -88,4 +94,6 @@
88
94
 
89
95
 
90
96
 
91
- NameError: name 'num_dims' is not defined<code>
97
+ NameError: name 'num_dims' is not defined
98
+
99
+ ```

1

codeの挿入

2019/12/06 06:21

投稿

sotetu
sotetu

スコア6

test CHANGED
File without changes
test CHANGED
@@ -12,7 +12,7 @@
12
12
 
13
13
 
14
14
 
15
- from PIL import Image
15
+ <code>from PIL import Image
16
16
 
17
17
  import numpy as np
18
18
 
@@ -66,13 +66,13 @@
66
66
 
67
67
  predicted = nn.sim( img_pixels_norm)
68
68
 
69
- print('結果:', orig_labels[np.argmax(predicted)])
69
+ print('結果:', orig_labels[np.argmax(predicted)]) <code>
70
70
 
71
71
  エラー内容
72
72
 
73
73
 
74
74
 
75
- NameError Traceback (most recent call last)
75
+ <code>NameError Traceback (most recent call last)
76
76
 
77
77
  <ipython-input-9-a6b6226034ac> in <module>
78
78
 
@@ -88,4 +88,4 @@
88
88
 
89
89
 
90
90
 
91
- NameError: name 'num_dims' is not defined
91
+ NameError: name 'num_dims' is not defined<code>