Skip to content

Commit

Permalink
samples: fix digits_video.py
Browse files Browse the repository at this point in the history
  • Loading branch information
berak committed Nov 8, 2018
1 parent d9b8a9d commit f30eafc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/python/digits_video.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def main():
frame[y:,x+w:][:SZ, :SZ] = bin_norm[...,np.newaxis]

sample = preprocess_hog([bin_norm])
digit = model.predict(sample)[0]
digit = model.predict(sample)[1].ravel()
cv.putText(frame, '%d'%digit, (x, y), cv.FONT_HERSHEY_PLAIN, 1.0, (200, 0, 0), thickness = 1)


Expand Down

0 comments on commit f30eafc

Please sign in to comment.