First the Model file which used to detect the Digits need to be trained on Python Notebook and then the model file can be used in Python Script.
Pre requisites for the before getting started:
-
Learn Python for Beginners , Intermediate. PS: For faster learning ๐ just increase the speed and that will make you lengthy video to get over in shorter as per speed chosen. 1
-
After learning python jump on to OpenCV form here OpenCV Course - Full Tutorial with Python, after going through this you will get the context whats written in the python script or you can simply refer the documentation OpenCV Documentation