Skip to content

Navigation of OS X using hand gestures detected by webcam

Notifications You must be signed in to change notification settings

kshen0/gestures

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 

Repository files navigation

CIS 192 Final Project

##Features

  • Skin filtering used for hand detection
  • Bounding boxes used to determine direction and speed of motion
  • Smooth scrolling with speed proportional to speed of hand movement

##Dependencies

  • OpenCV and OpenCV2 must be built via MacPorts, Homebrew, or from source: http://opencv.willowgarage.com/wiki/Mac_OS_X_OpenCV_Port

  • See requirements.txt for other dependencies

  • OpenCV and OpenCV2 were used to capture webcam frames and process the images.

  • numpy was used for determining vector fields and directinon of movement

  • PyObjC and its Quartz framework were used for sending mouse events

##Library

We extended the skin filtering and contouring library to include bounding boxes which we used for our motion analysis. Some of the debugging code was also refactored so as to incorporate it into our code. Comments were also translated to English.

##Installation and usage

  • Ensure dependencies are installed
  • Clone the repo at https://github.com/kshen0/gestures and cd to src/gestures
  • run main.py
  • Move your hand up or down to scroll up or down. The scroll direction will behave according to the computer's natural scrolling setting.
  • The app can scroll any scrollable window under the cursor

##Keyboard Commands: Focus the python app first

  • 'h': toggles hand filtering debug window
  • 'o': toggles optical flow debug window
  • 'esc': quit

##Limitations

  • Skin filter detects anything flesh-colored, including the face and skin-toned objects. This is a minor issue because the app only sends a scroll event if movement speed is above a certain threshold.

##Similar Work https://flutterapp.com/

About

Navigation of OS X using hand gestures detected by webcam

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages