update digits_video.py
authorMuhammad Abdullah <32646935+mabdullahrafique@users.noreply.github.com>
Wed, 8 Nov 2017 23:46:35 +0000 (15:46 -0800)
committerAlexander Alekhin <alexander.a.alekhin@gmail.com>
Thu, 23 Nov 2017 19:20:37 +0000 (19:20 +0000)
commitc180047bc1dd55af0768d0421945d8cfea87fbb6
treeabe0e853a877aa51aeab4394f2d3fa6b0336b1b9
parent51cef2651e91003e6a6760f496719dbb325cfc61
update digits_video.py

Following were the errors in the digits_video.py
     1 ) The code was not working because data type of x was float however in "cv2.rectangle" we require integer .
     2 ) After pressing the "esc" button the image windows did not destroy
So I amended following things:
     1 ) ~converted data type of x to int.~ Used Python integer division (//)
     2 ) used cv2.destroyAllWindows() to close all windows after the press of "esc" by user.
samples/python/digits_video.py