Skip to content

Commit aaabb07

Browse files
committed
Merge pull request opencv#8715 from berak:fix_digits_py
2 parents 06b0fe3 + 7b05d52 commit aaabb07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/python/digits.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def evaluate_model(model, digits, samples, labels):
109109

110110
confusion = np.zeros((10, 10), np.int32)
111111
for i, j in zip(labels, resp):
112-
confusion[i, j] += 1
112+
confusion[i, int(j)] += 1
113113
print('confusion matrix:')
114114
print(confusion)
115115
print()

0 commit comments

Comments
 (0)