Giter VIP home page Giter VIP logo

modelv's Introduction

ModelV.

webカメラとブラウザでバーチャルモデルになれるwebアプリです。

demo

このwebアプリでは2つのタブ(もしくはブラウザ)を使います。

1つ目のタブは、webカメラで撮影した映像からフェイストラッキングを行うために使われます。現在は顔の向きと口の開閉動作に対応しています。ここで取得・処理されたデータは2つ目のタブに送信されます。

2つ目のタブでは、1つ目のタブから送信されたトラッキングデータをもとにヴァーチャルモデルを描画するために使われます。

Usage

  1. モデルの読み込み

「モデル」ページに移動して、モデルデータを読み込みます。現在対応しているモデルはMMDのみです。

  1. 接続設定

新規タブ(もしくは別ブラウザ)を開いて「操作パネル」ページに移動します。「コネクトキーを生成する」ボタンからコネクトキーを取得します。

取得したコネクトキーを「モデル」ページのフォームに入力すると、リターンキーが生成されます。このリターンキーは「操作パネル」ページのフォームに入力します。

「操作パネル」ページを開いているタブと「モデル」ページを開いているタブの接続が確立されると、接続ステータスが「接続中」になります。

  1. webカメラ起動

「操作パネル」ページの「カメラ起動」ボタンからカメラを起動します。トラッキングデータに連動してモデルが動きます。

Development

# clone this repository
git clone https://github.com/shooontan/modelv.git
cd modelv

Download static files

bash scripts/dlfl.sh

Build OpenCV.js

git clone https://github.com/opencv/opencv.git
# git rev-parse HEAD
# f19d0ae41d112de1e8aba11717462dd1b118342f

bash scripts/build-opencv.sh

Develop app

# install
npm install

# develop localhost:3000
npm run dev

# production build
npm run build

# start localhost:3000
npm start

modelv's People

Contributors

shooontan 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.