Git Product home page Git Product logo

workout-movement-counting's Introduction

Workout Movement Counting App using Dense Optical Flow and Convolutional Neural Networks

This repository contains my coursework as 3rd year BSc in HSE. I had to create a web app, which helps sportsmen to count their movements during the workout.
Also checkout my Medium writeup regarding this problem: Here

For this purpose I combined the Dense Optical Flow algorithm with a simple CNN network written in PyTorch. As you can see, it is pretty easy to get the idea of what one push-up is, if we look at how frames are converted to Dense Optical Flow representation in my algorithm.

Thus, Dense Optical Flow converts frames to color coded representation, and CNN solves a multiclass problem, which is to classify each frame as move down, move up or not a move.

To wrap my algorithm in something which can really work I also created a web interface using django, here is how it looks like.

To run the web app follow the instructions below.

Instructions

  1. Clone the repo and run pip -r install requirements.txt
  2. cd WorkoutApp/
  3. Run the app with python manage.py runserver
  4. Choose the predefined workout and test!

workout-movement-counting's People

Contributors

artkulak avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

workout-movement-counting's Issues

ImportError: cannot import name 'render_to_response'

Any idea on how to solve this error? I tried on both windows and linux but same results. Went online and some suggested that it may be the version of django installed. FYI: I wasn't able to install the requirements through the command line so I did it manually via pip install. Any help is appreciated, I am currently working on a similar project.

File "/home/jy/workout-movement-counting/WorkoutApp/workout_page/views.py", line 1, in <module>
    from django.shortcuts import render, render_to_response, redirect
ImportError: cannot import name 'render_to_response'

Can't start app...

I keep getting this:
(newenv) aluken@MacBook-Pro WorkoutApp % python3 manage.py runserver
Traceback (most recent call last):
File "manage.py", line 10, in
from django.core.management import execute_from_command_line
ModuleNotFoundError: No module named 'django'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "manage.py", line 16, in
) from exc
ImportError: Couldn't import Django. Are you sure it's installed and available on your PYTHONPATH environment variable? Did you forget to activate a virtual environment?

Any help? I've tried everything... Really want to try this out!

Adding new workout

Hi,

Are you able to provide the details to log into the admin page? When clicking add workout it directs to admin login.

Cheers!

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.