Chrome Gesture Control
This is an experimental Chrome extension for scrolling web pages by gesturing in front of your webcam. It's based on gesture.js, which tries to do a good job of gesture detection with the 2D camera built into most laptops these days.
Download the extension or clone this repo somewhere on your computer. Open Chrome's "extensions" screen and check the box to enable "Developer Mode". Pick "Load unpacked extension…", then select the directory with the chrome-gesture-control files.
Chrome extensions aren't allowed to constantly access the webcam for privacy reasons, so you'll be prompted for permission to use the webcam every time you load a page in the browser. A window in the top-right of the page will show what your webcam sees. Gesture up, down, left, or right to scroll 600px in that direction.
Two hands can be used to scroll up or down by 1200px, but detection is kind of flaky.
Author & Credits
This extension was written by Dave Ross (firstname.lastname@example.org), based on the following open source contributions:
- jQuery Easing by George McGinley Smith, edited to remove jQuery dependency
- gesture.js from William Wu's gesture-driven fork of reveal.js. This file was heavily modified to allow custom callbacks for gestures and to keep it from polluting the global namespace.
- jQuery Easing was released under the BSD License.
- gesture.js is part of a reveal.js fork and inherits its MIT license.
- All original code is released under the MIT license. Please use it to build cool things. Pull requests are encouraged.