Git Product home page Git Product logo

metabow_mediapipe's Introduction

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap

About MetaBow-MediaPipe

MetaBow Postural analysis provides a computer-vision-based tool to assist violin learning. This project detects and tracks angles between key body points in real time.

Built With

Getting Started

Prerequisites

Move to installation if already have Conda in your system

For MacOS users please follow this detailed installation process https://developers.google.com/earth-engine/guides/python_install-conda#mac

  1. Download Miniconda installer to your Home directory and run the following terminal commands:

    curl https://repo.anaconda.com/miniconda/Miniconda3-py37_4.11.0-MacOSX-x86_64.sh -o ~/miniconda.sh
  2. Install Miniconda quietly, accepting defaults, to your Home directory:

    bash ~/miniconda.sh -b -p
  3. Remove Miniconda installer from your Home directory:

    rm ~/miniconda.sh
  4. Test Miniconda install:

    source $HOME/miniconda3/bin/activate
    conda --help

    You should get conda's help text, if "command is not found" then the installation has not been successful.

  5. Restart Terminal

  6. Add Conda to path

    printf '\n# add path to conda\nexport PATH="$HOME/miniconda3/bin:$PATH"\n' >> ~/.bashrc
  7. Restart open command line interface for environmental variable changes to take effect.

  8. Create environment. The environment separates certain files from the system. For example, if a file needs Python 2.7, you can create an environment to run it independetly of your current installed Python version.

    you may replace "metabow" with any other term

    conda create --name "metabow"
  9. Activate environment

    conda activate "metabow"

Installation

How to set up your app:

  1. Clone the repo

    git clone https://github.com/robertoalonsotrillo/MetaBow_MediaPipe.git
  2. Change your terminal path to repo folder

    cd MetaBow_MediaPipe
  3. Activate enviornment

    conda activate "metabow"
  4. Install Requirements

    Make sure that the environment is activated before running it

    pip install -r requirement.txt

Usage

How to use the tool:

  1. Open your code folder in the terminal

    cd PATH/to/your/folder
  2. Activate the environment

    source ~/miniconda3/bin/activate
    conda activate metabow
  3. Start the server and make sure that the environment is activated before running it. The new terminal line will now start with (environment's name).

    python app.py
  4. Open the browser and go to localhost.com:5000:

    HomePage

  5. Inferencing

    There are two approaches to inferencing

    3.1. Video Upload

    You may upload and analyze any video, just make sure that the quality is at least 480p for better results

    Inferencing

    3.2. Webcam

     You may use your webcam instead.
    

    You will find two further inferencing options:

    A. FileName TextBox

    Add the filename for the json file containing the extracted angle data per frame.

    B. Download Button

    This button downloads the created json file, allowing you to store it on any selected folder.

    You may choose between two inferencing models:

    A. Basic Posture

    A basic model analyzing elbow and shoulder angles.

    B. Comprehensive Posture

    A more comprehensive approach including hand, wrist, and transversal angles.

  6. Error page

    If you select file inferencing but do not upload a file you will be redirected to the error page.

    ERROR

Roadmap

  • Detect Pose and calculate angles
  • Detect Bow and Violen
  • Find Apropiate angles i.e. recommended ranges
  • Multi-Reports support
    • JSON
    • BVH

metabow_mediapipe's People

Contributors

robertoalonsotrillo avatar itsmeabby avatar

Watchers

Paulo Chiliguano avatar Travis West avatar  avatar

Forkers

itsmeabby

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.