As Python was updated to version 3, "xrange" disappeared and integrated into "range".
also, "BackgroundSubtractorMOG2" has been changed to "createBackgroundSubtractorMOG2" on openCV.
If the above two changes, the execution will be normal. However, there seems to be a problem with hand and gesture recognition.
Attached is a photo that I have executed myself. Please check and improve if it can be improved.
As Python was updated to version 3, "xrange" disappeared and integrated into "range". also, "BackgroundSubtractorMOG2" has been changed to "createBackgroundSubtractorMOG2" on openCV.
If the above two changes, the execution will be normal. However, there seems to be a problem with hand and gesture recognition.
Attached is a photo that I have executed myself. Please check and improve if it can be improved.