pip install opencv-python
On line 114, in the mousemove(mousex,mousey) function change the mousex
multiplier to your (screenwidth divided by 500). Change the mousey
multiplier is your (screen height divided by 500).
python controlmouse.py
wait a few seconds for the camera to load...
Press b
when you're out of the frame to set the background
Press r
to reset the background
Background subtraction method: Gaussian Mixture-based Background/Foreground Segmentation Algorithm