Degrees and 1 gait cycle for gait processing

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
Chad Morrison
Posts: 3
Joined: Mon Jul 01, 2024 9:42 am

Degrees and 1 gait cycle for gait processing

Post by Chad Morrison » Tue Aug 13, 2024 10:47 am

Hi,

I have collected opencap data and have it processed in google colab using the Example.ipynb in github. Everything has ran smoothly and I have received kinematic plots. However, the code plots for values, speed, and acceleration for coordinates, muscle-tendon lengths, and center of mass, over a certain time period. My end goal is to have kinematic plots of hip, knee, and ankle, plotting the DEGREE of flexion/extension, adduction/abduction, and rotation over 1 gait cycle. How would I go about changing the code to create these plots?

Thank you

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

Re: Degrees and 1 gait cycle for gait processing

Post by Matt Petrucci » Tue Aug 13, 2024 12:30 pm

Hi Chad,

Instead of plotting the "speeds", you can change the code to plot the "values" of each coordinate. For example, change "coordinates['speeds']" to "coordinates['values']" where applicable.

User avatar
Chad Morrison
Posts: 3
Joined: Mon Jul 01, 2024 9:42 am

Re: Degrees and 1 gait cycle for gait processing

Post by Chad Morrison » Tue Aug 13, 2024 2:58 pm

Thank you Matt! I wasn't sure if 'values' corresponded to degrees in any way, but it seems to be right.

Would you have any info on how to create the plots for only 1 gait cycle? Right now they are for 3.5 seconds.

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

Re: Degrees and 1 gait cycle for gait processing

Post by Matt Petrucci » Thu Aug 15, 2024 2:11 pm

Hi Chad,

Have you tried the gait analysis tool in the web app? You can click the triple lines to the right of the trial and click analysis. It will give you this and other gait metrics. Note this wont work if the participant tursn during the trial.

You can also run the analysis locally to get the gait events you need to segment into gait cycles. See this post for more details: viewtopicPhpbb.php?f=2385&t=18227&p=0&s ... 6cc7ce2a88

Hope this helps,

POST REPLY