Giter VIP home page Giter VIP logo

physiotherapy_video_analysis's Introduction

Screenshot 2024-05-05 at 01 28 13 Screenshot 2024-05-03 at 03 47 20

Installation

pip install -r requirement.txt

Make sure to download ffmpeg on your device

Import Video Data

python videos/get_videos.py

After importing video data completes, you can then extract different actions with the command below

python data_preparation/create_action.py --input "Brief screenning.MOV" --action "moving backwards" --start "00:00:39" --end "00:00:49"

Where --input should be a video already in the videos folder --action should be the action discovered in the input video --start is the time the action begins --end is the time the action ends

Building Actions Dataset

python data_preparation/action_dataset.py

Train Actions Dataset

python train_slowfast.py

You'd get results like this

# 500 epochs

# Testing DataLoader 0: 100%|███████████████████████████████████████████████████████████████████████████| 3/3 [00:12<00:00,  0.23it/s]
# ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
#        Test metric             DataLoader 0
# ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
#         test_acc             0.800000011920929
#         test_loss           0.6259332895278931
# ──────────────────────────────────────────────────────────────

Test Action Dataset

video_path = 'videos/Postural Analysis Lateral.mp4'
all_actions = generate_actions_from_video(video_path)
print(all_actions)

python3 test_slowfast.py

physiotherapy_video_analysis's People

Contributors

vicksemmanuel avatar victor-hammond avatar vicksemmanuel-msc avatar

Stargazers

 avatar  avatar

Watchers

 avatar

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.