To run the program on primary camera change line 4 to :
cap = cv2.VideoCapture(0)
run the code on command line :
python main.py
"project_ppt.pptx" shows how the program works
Detect Hand and count number of fingers using Convex Hull algorithm in OpenCV lib in Python
Python