DEV Community

Cover image for SailorMoon pose recognition signup/login: part 1
Kauress
Kauress

Posted on β€’ Edited on

20 9

SailorMoon pose recognition signup/login: part 1

Introduction

I've been working on a small side project called "Sailormoon Pose Signup/Login". It is a signup/login strategy using a machine learning implementation in javascript. Using posenet and ml5.js. The project for now is at here

SailorMoon Homepage

Phase 1 involves the following steps:

Alt Text

Took me a day to finish the above + read on posenet and have it running on a local server. My webcam on my laptop isn’t all that great but should suffice for the time being. Below are steps for the project so far:

  1. Use the getUserMedia method of the web media API to detect a webcam and get permission from the user to stream video from the webcam
  2. Use the setInterval() method to countdown from 3 till 0
  3. On the count of 0 trigger drawing of current video frame on the canvas using context.drawImage()
  4. Do this 3 times as there are 3 separate poses or images of poses clearInterval() between each count and disable the start button after the countdown begins, because the setInterval() method messes up the global window object

Result

sailormoon gif

Check it out

The project for now is at here

Image of Datadog

The Essential Toolkit for Front-end Developers

Take a user-centric approach to front-end monitoring that evolves alongside increasingly complex frameworks and single-page applications.

Get The Kit

Top comments (6)

Collapse
 
jenc profile image
Jen Chan β€’

YES

Collapse
 
jhsu profile image
Joe Hsu β€’

this is awesome, great job =)

Collapse
 
kauresss profile image
Kauress β€’

thanks Joe!

Collapse
 
cat profile image
Cat β€’

omg I love this. This is so good. Great job!!

Collapse
 
kauresss profile image
Kauress β€’

thanks glad you like it!

Collapse
 
kauresss profile image
Kauress β€’

thanks!πŸŒ™

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay