Coder Social home page Coder Social logo

mganeko / bodypix_ayame Goto Github PK

View Code? Open in Web Editor NEW
13.0 2.0 4.0 1.2 MB

WebRTC P2P video conference example, with person body segmentation and mask

Home Page: https://mganeko.github.io/bodypix_ayame/

License: Apache License 2.0

HTML 93.14% JavaScript 6.86%

bodypix_ayame's Introduction

bodypix_ayame

WebRTC P2P video conference example, with person body segmentation and mask.

人物を検出し、背景や人物をマスクして、WebRTCのP2P通信を行うサンプル。次のライブラリ、サービスを利用。

Repo / レポジトリ

GitHub Pages

Screen shot / 画面

screen shot

Hot to use / 利用方法

  • start with 2 browser windows

    • open video_mask_ayame.html with desktop Chrome 78
    • click [Start Video] button
      • local video will be shown in top left video
      • Plase wait few seconds to initialize BodyPix, then masked video will be shown in top right video
    • choose mask type
      • mask background surrounding a person
      • mask person
      • no mask
    • choose voice type for video_mask_voice_ayame.html
      • mute ... voice mute
      • low pitch ... low pitch voice
      • high pitch ... high pitch voice
      • normal ... normal voice
    • type room-id for Ayame Lite service
    • click [connect] button
  • stop

    • click [disconnect] button
    • click [Stop Video] button
  • 開始 (ブラウザの2つのウィンドウでそれぞれ実施)

    • デスクトップ Chrome 78で、 video_mask_ayame.html を開く
    • [Start Video] ボタンをクリック
      • 自分の映像が、左上にビデオ要素に表示
      • 数秒待つとBodyPixが初期化され、右上のビデオ要素にマスクされた映像が表示
    • マスクの種類は選択可能
      • mask background ... 人物の周囲の部屋の様子をマスク
      • mask person ... 人物をマスク
      • no mask ... マスク無し
    • video_mask_voice_ayame.htmlの場合は音声の種類を選択可能
      • mute ... 音声ミュート
      • low pitch ... 低いピッチの声
      • high pitch ... 高いピッチの声
      • normal ... 通常の声
    • Ayame Lite サービスに接続する room-id を指定
    • [connect] ボタンをクリック
  • 停止

    • [disconnect] ボタンをクリック
    • [Stop Video] ボタンをクリック

License

  • Apache License 2.0

Thanks

bodypix_ayame is using service / repogitory bellow.

bodypix_ayame は、次のレポジトリ/サービスを利用しています。ありがとうございます。

bodypix_ayame's People

Contributors

mganeko avatar

Stargazers

 avatar  avatar MinhPN avatar  avatar Zi Yun avatar  avatar Nam Nguyen avatar  avatar wangmingming avatar Sashko avatar  avatar voluntas avatar Zenichi Amano avatar

Watchers

James Cloos avatar  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.