gregruthenbeck / danceSkeleton

It creates pose estimation skeleton from video stored on the desktop based on posenet tensorflow.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dance Skeleton

This repository has been forked from here.It has been modified to create pose estimation skeleton from video stored on the desktop.
webM pose detection skelton video can be downloaded.
It uses captureStream method and MediaStream Recording API to capture canvas and record media.

Demo

Alt Text

Steps

Youtube video Tutorial

  1. Clone the repository
  2. Place the video for which you want to create dance Skeleton in same directory
  3. Navigate to that folder on commandline and run "python -m http.server 1337" to create local server on port 1337 on your machine
  4. Navigate to "localhost:1337/index.html" on browser.
  5. Play the video to start the recording and pause the video to stop the recording.

Coding Challenge - Due Date, August 1 2018 at 12 PM PST

This is the code for this this video on Youtube by Siraj Raval as part of the #InMyFeelingsChallenge dance competition. The challenge is to create your own AI to dance to this song and submit it via Twitter, Facebook, Youtube, Instagram, or LinkedIn (or all of them) using the #InMyFeelingsChallenge hashtag. There are 3 methods to do this

Method 1 (Hacky way)

  1. Run the real-time pose detection model in your browser.
  2. Hold up your phone or another screen to the webcam, while a video of a human dancing plays.
  3. Record your screen while the real-time pose estimate follows the human dance.
  4. In Final Cut Pro, or a video editing program of your choice, apply a color mask so all colors except the color of the pose estimate model are made not visible.
  5. Export the video and upload!

Method 2 (Cleaner programmatic way)

  1. Modify the code in this repository so instead of the demo applying pose estimation to webcam video, it applies it to a video on your desktop, records, and saves it.
  2. Use a javascript library like chroma.js to apply a color mask programmatically to the video, making all colors except for the pose estimate model color not visible.
  3. Upload the final result!

Method 3 (For the realest Wizards)

  1. Train an LSTM Neural network on a dataset of Shiggy dance videos similar to what carykh did for trancey dance videos.
  2. Upload the result!

Rewards

I'll definitely give a social media shoutout to some of the best submissions! Good luck Wizards, lets light up this challenge and show the world what AI can do.

Run real-time pose estimation in the browser using TensorFlow.js.

Try it here!

cameraDemo

PoseNet can be used to estimate either a single pose or multiple poses, meaning there is a version of the algorithm that can detect only one person in an image/video and one version that can detect multiple persons in an image/video.

This is a Pure Javascript implementation of PoseNet. Thank you TensorFlow.js for your flexible and intuitive APIs.

Refer to this blog post for a high-level description of PoseNet running on Tensorflow.js.

Credits

Credits for this code go to the Tensorflow team at Google

About

It creates pose estimation skeleton from video stored on the desktop based on posenet tensorflow.


Languages

Language:JavaScript 91.7%Language:HTML 8.3%