Giter Site home page Giter Site logo

motion-ui's Introduction

motion-ui

Realtime motion capture and motion control UI using webcam in browser.

Overview

Motion Virtual Capture is a prototype framework for defining user interfaces in VR through facial and hand tracking. This open-source project aims to bridge the existing gap in the market, facilitating a wider and more effective use of VR technologies, enhancing user immersion and interaction within the virtual environment.

The project's primary objective is to explore the potential of using face and hand tracking to enhance the UI definition in VR. We have developed a prototype framework that accurately captures and tracks facial expressions and hand gestures, and it establishes a standard interface for some common user interactions.

Our prototype has been deployed in a VR game titled "Draw the Joker". You can find the game project here

Live Demo

See the live demo here: https://motion-virutal-capture-prototype.glitch.me/

Features

Our prototype framework captures and tracks facial expressions and hand gestures via a webcam. It features seamlessly interaction between existing VR hardware, phones, PCs and web applications through JavaScript. The framework integrated MediaPipe for realtime gesture recognition feature, utilizing a two-step neural network pipeline:

  1. An Embedding model - The "landmark model" is responsible for the detection of hands and outlining their geometric configurations.
  2. A Classification model - The "gesture recognition model" discerns various gestures based on the outlined hand geometry.

The prototype includes UI controls for three gesture interfaces which can be extended to suit your applications:

  1. Open Palm
  2. Thumb Up
  3. Pointing Up

API Usage

// Open Palm function 
function openPalm(results, nowInMs) {
  if (lastGesture !== 'Open_Palm' || nowInMs - lastGestureTime > 300) {
    console.log(nowInMs + ": Open Palm");
  }
  // Your code here
}

// Thumb Up function
function thumbUp(results, nowInMs) {
  // Your code here
}

// Pointing Up function
function pointingUp(results, nowInMs) {
  // Your code here
}

These functions are called when the respective gesture is detected. You can modify and extend these functions to suit your own applications.

Getting Started

  1. Clone this repo
git clone https://github.com/YAQIMIAO/motion-ui.git
  1. In script.js add your UI logic to the event listeners
  2. Build your next web app with VR controls!

Contributing

We welcome contributions! Please feel free to contact us at [email protected] if you have feature requests, questions or suggestions, or are interested in contributing to this project.

motion-ui's People

Contributors

yaqimiao avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.