This is a JUMP detection using optical flow.
Summary
Calculate the momentum using the optical flow. Momentum above the threshold, it is judged to be a jump.
Threshold is the average of the previous 50 frame momentum.
- Chrominm address bar
chrome://dino/
- Excute python
python Game.py
- Focus Chrome dino game page
python3
OpenCV
pynput
Chorme