All Projects → achillesrasquinha → spockpy

achillesrasquinha / spockpy

Licence: Apache-2.0 License
✊ ✋ ✌️ ☝️ 🖖 A Python hand gesture recognition library for Kinetic User Interface (KUI).

Programming Languages

python
139335 projects - #7 most used programming language
HTML
75241 projects
shell
77523 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to spockpy

Intel-Realsense-Hand-Toolkit-Unity
Intel Realsense Toolkit for Hand tracking and Gestural Recognition on Unity3D
Stars: ✭ 72 (+44%)
Mutual labels:  gesture, hand-gestures
gesture-recognition-for-human-robot-interaction
Gesture Recognition For Human-Robot Interaction with modelling, training, analysing and recognising gestures based on computer vision and machine learning techniques. This work was done at Distributed Artificial Intelligence Lab (DAI Labor), Berlin.
Stars: ✭ 62 (+24%)
Mutual labels:  gesture-recognition-toolkit, hand-gestures
Sensitive
Special way to work with gestures in iOS
Stars: ✭ 549 (+998%)
Mutual labels:  gesture-recognizer, gesture
simple gesture detector
Easy to use, reliable and lightweight gesture detector for Flutter apps, exposing simple API for basic gestures
Stars: ✭ 26 (-48%)
Mutual labels:  gesture
gesto
You can set up drag, pinch events in any browser.
Stars: ✭ 47 (-6%)
Mutual labels:  gesture
GestureLockView
九宫格手势解锁控件
Stars: ✭ 39 (-22%)
Mutual labels:  gesture
PDollar-Unity
PDollar algorithm Unity friendly
Stars: ✭ 99 (+98%)
Mutual labels:  gesture
GRT-iOS-HelloWorld
An example of how to integrate the Gesture Recognition Toolkit into an iPhone app
Stars: ✭ 34 (-32%)
Mutual labels:  gesture-recognition-toolkit
creviceapp
Multi purpose utility which supports gestures with mouse and keyboard.
Stars: ✭ 22 (-56%)
Mutual labels:  gesture
Handgator
✋ Navigating desktop with hand gesture
Stars: ✭ 13 (-74%)
Mutual labels:  hand-gestures
iMoney
iMoney 金融项目
Stars: ✭ 55 (+10%)
Mutual labels:  gesture
react-native-gesture-flip-card
A card flipping animation component using gesture for react-native.
Stars: ✭ 93 (+86%)
Mutual labels:  gesture
interactiveviewer gallery
Enhancements to interactiveviewer: picture and video preview, support two-finger gesture zoom, double-click to zoom, switch left and right。图片预览,视频预览,图片视频混合预览
Stars: ✭ 45 (-10%)
Mutual labels:  gesture
gestures
A library for normalized events and gesture for desktop and mobile.
Stars: ✭ 31 (-38%)
Mutual labels:  gesture
XamarinFormsGesture
Xamarin Form Gesture Effects
Stars: ✭ 85 (+70%)
Mutual labels:  gesture
liveGestureDemo
仿映客双屏直播,OpenCV 竖屏检测,人脸贴纸
Stars: ✭ 26 (-48%)
Mutual labels:  gesture
Speech driven gesture generation with autoencoder
This is the official implementation for IVA '19 paper "Analyzing Input and Output Representations for Speech-Driven Gesture Generation".
Stars: ✭ 76 (+52%)
Mutual labels:  gesture
mapbox-gestures-android
The Mapbox Gestures for Android library makes it easy to detect and handle user gestures on an Android device.
Stars: ✭ 25 (-50%)
Mutual labels:  gesture
Gestures-Samples
Project Prague Code Samples
Stars: ✭ 98 (+96%)
Mutual labels:  gesture
myo-armband-nn
Gesture recognition using myo armband via neural network (tensorflow library).
Stars: ✭ 33 (-34%)
Mutual labels:  gesture

spockpy ✌️ ☝️

"A Python hand gesture recognition library for Kinetic User Interface (KUI)."

Documentation Status

Table of Contents

Installation

1. Download the repository

Clone the base repository onto your desktop with git as follows:

$ git clone [email protected]:achillesrasquinha/spockpy
2. Install necessary dependencies

spockpy is primarily built on OpenCV for a large number of standard Computer Vision helpers and techniques. In order to install spockpy, you may have to build OpenCV (2.x or 3.x, depending on your Python version) first.

For Linux users, use our build scripts as follows:

$ chmod +x build/*
$ build/get-opencv.sh

Next, install necessary Python dependencies as follows:

$ pip install -r requirements.txt

Finally, go ahead and install spockpy onto your system.

$ python setup.py install

To check whether you've installed spockpy, simply import spockpy:

>>> import spockpy

Come this far? You have my Vulcan Salute!

Requirements

spockpy requires a robust WebCamera to get going! There are no other requirements. You are now, requirement-less.

Usage

spockpy creates a virtual trackpad (we call this, the HoverPad) for users to interact with the interface. Create a spockpy.HoverPad class as follows:

>>> import spockpy
>>> pad = spockpy.HoverPad()

To display the HoverPad, use the show class method as follows:

>>> pad.show()

That's it! spockpy.HoverPad releases a set of event objects from the get_event class method. You can now get spockpy.Event objects from frames of the current frame by simply:

>>> event = pad.get_event()
>>> event.type == spockpy.Event.SPOCK
True

Hand as a Mouse Pointer

spockpy.Event objects generate x, y coordinates of the tip of a user's index finger. 👆 To get the current coordinates of a frame, simply:

>>> event.get_tip()
(12, 40)

This retrives you a set of coordinates of the index finger relative to the screen.

Examples

How about Rock?

What about Paper?

Also, maybe Spock?

Integration

spockpy comes with a handy number of examples. To launch the app, launch it as follows:

>>> import spockpy
>>> app = spockpy.App()
>>> app.run()

OR via the command-line

$ python -m spockpy

Contribution

Keen in enhancing the API? Have better suggestions on the spockpy.detect method? Found some typos? Then go ahead and send in a Pull Request!

License

This repository has been released under the Apache License 2.0

This project had been built by Achilles Rasquinha (@achillesrasquinha, [email protected]) and Ameya Shenoy (@codingCoffee, [email protected]) in a time-frame of 30 hours for the Mumbai Hackathon 2017, held by the awesome developers at ERPNext.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].