Skip to content
/ watchme Public

Learn a new habit with the aid of this helpful web app!

Notifications You must be signed in to change notification settings

billba/watchme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Watch Me

A helpful webapp that helps you develop better habits. It watches you through your webcam, and sends image frames at the specified interval to the web service of your choice (presumably some kind of computer vision model). If that call returns a specified label, a sound is played.

Setup

  1. Clone this repo
  2. yarn start
  3. In your browser, allow autoplay for localhost (in Safari this is under Preferences/Websites/Auto-Play)
  4. Aim your browser at http:localhost:8888
  5. Accept the request to access your webcam (Safari will ask every time)
  6. Enter in the URL of your web service (must return a JSON object of the form { "outputs": { "Prediction": LABEL } })
  7. Enter the label that should play the sound
  8. Enter in a polling interval in milliseconds (currently no less than 100)

Credits

The code that grabs images from video is from the MDN sample at https://github.com/mdn/samples-server

About

Learn a new habit with the aid of this helpful web app!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published