Analysis Overground and Treadmill Gait Run

New project for OpenCap, which is a new software package to estimate 3D human movement dynamics from smartphone videos. OpenCap strongly relies on OpenSim.
POST REPLY
User avatar
Motion Analysis
Posts: 6
Joined: Tue Nov 12, 2024 4:28 pm

Analysis Overground and Treadmill Gait Run

Post by Motion Analysis » Wed Jan 15, 2025 10:54 am

The program has only analyzed 1 second of data, is it capable of analyzing more than 1 second? If it can analyze a duration greater than 1 second, could you please explain how to do so? Also how we can get previous data already collected to analyze more than 1 second?

User avatar
Matt Petrucci
Posts: 250
Joined: Fri Feb 24, 2012 11:49 am

Re: Analysis Overground and Treadmill Gait Run

Post by Matt Petrucci » Tue Jan 21, 2025 1:19 pm

Hello,

The default is to analyze one gait cycle.

If you run the code locally, it will run the analysis on all gait cycles that are detected. https://github.com/stanfordnmbl/opencap ... sis.py#L56

You can also adjust that variable to be fewer gait cycles if you wish.

Hope this helps,
Matt

User avatar
Motion Analysis
Posts: 6
Joined: Tue Nov 12, 2024 4:28 pm

Re: Analysis Overground and Treadmill Gait Run

Post by Motion Analysis » Tue Jan 21, 2025 6:32 pm

How do we change the code to analyze the data locally since the code states read-only?

User avatar
Matt Petrucci
Posts: 250
Joined: Fri Feb 24, 2012 11:49 am

Re: Analysis Overground and Treadmill Gait Run

Post by Matt Petrucci » Tue Jan 28, 2025 1:15 pm

Hello,

First step is to clone the repo to your computer. https://docs.github.com/en/desktop/addi ... ub-desktop. I highly recommend using Github desktop if you are using Github for the first time.

Then, you will need to setup a python environment using the general steps in the readme here: https://github.com/stanfordnmbl/opencap ... quirements.

Once that is setup, you should be able to make any changes and run the code locally. You'll need to update the code with your session ID as well here: https://github.com/stanfordnmbl/opencap ... sis.py#L48

Hope this helps,
Matt

POST REPLY