Skip to content

SaraOlsson/yoga-map-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yogaCam: Live map

projectGif

The yogaCam Live Map is a web application for users to keep on while practicing yoga that will recognize and visualize all ongoing activity of a certain yoga pose in real-time. On a map, each individual sees a bright spot for all other people who do the same pose at that moment. Change pose and marvel at the new group of people you share the moment with around the world.

Repo Details

High level directory structure for this repository:

├── frontend                  <- Web app built with React.js
├── azure_resources           <- Azure related code
│   ├── AzureResourceGroup    <- ARM template for the solution in Azure.
├── images                    <- Images used in the documentation

System architecture

projectGif

Frontend

Apart from a set of more general packages as typescript and react, the following Node packages were used:

react-azure-maps
react-webcam
@azure/storage-blob
@azure/service-bus
microsoft-cognitiveservices-speech-sdk

Reproduce

Azure Requirements

First, create an Azure Account and a resource group. Then, create the following resources in Azure portal or use the provided ARM template.

Resources:

  1. Azure Maps
  2. Custom Vision Service
  3. Speech API (text-to-speech)
  4. Azure Storage Account with Blob containers
  5. Service Bus Topic

Local dev envrioment

  1. Code edidor (Visual Studio Code recommended)
  2. Node.js
  3. Azure SDK for JavaScript

Some app settings and tokens are needed for the client to authenticate towards the services. Create a file named .env and specify then. To find the keys, enter repective resource in the Azure portal.

REACT_APP_CUSTOMVISION_KEY=<yourValue>
REACT_APP_SPEECH_KEY=<yourValue>
REACT_APP_SPEECH_REGION=<yourValue>
REACT_APP_SERVICE_BUS_CONNECTION=<yourValue>
REACT_APP_STORAGE_TOKEN=<yourValue>
REACT_APP_STORAGE_NAME=<yourValue>
REACT_APP_AZURE_MAP_KEY=<yourValue>
REACT_APP_AZURE_STORAGE_BUS=<yourValue>

Demo

Video demo Client application demo

Next up

  • refactoring code, App.js is pretty large .. :)
  • Running inference locally
  • Finalize the flow of real-time data between clients
  • Being able to extend classes for the model (seamless! If the model doesn't recognize a certain pose, use the Azure AI speech-to-text to tell the application to start saving new training data for the specified pose while performing it)

Credits

  • open source packages listed in the Frontend section
  • dataset provided by Anastasia Marchenkova (however I both filtered and extented the dataset)
  • yoga illustrations created by monik

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published