Snap screen by focusing on mouse and keyboard events.
pip install --upgrade focuscreen
In windows, you might need to run following commands to make opencv support GUI:
pip uninstall opencv-python-headless
pip uninstall opencv-python
pip install opencv-python
python -m focuscreen.app