samples: fix digits_video.py

pull/13076/head
berak 6 years ago
parent d9b8a9d90e
commit f30eafc9ac
  1. 2
      samples/python/digits_video.py

@ -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)

Loading…
Cancel
Save