Merge pull request #10055 from mabdullahrafique:patch-1

pull/10159/merge
Alexander Alekhin 7 years ago
commit 807f5e33ad
  1. 3
      samples/python/digits_video.py

@ -55,7 +55,7 @@ def main():
if not (16 <= h <= 64 and w <= 1.2*h):
continue
pad = max(h-w, 0)
x, w = x-pad/2, w+pad
x, w = x - (pad // 2), w + pad
cv2.rectangle(frame, (x, y), (x+w, y+h), (0, 255, 0))
bin_roi = bin[y:,x:][:h,:w]
@ -98,3 +98,4 @@ def main():
if __name__ == '__main__':
main()
cv2.destroyAllWindows()

Loading…
Cancel
Save