Page 1 of 1

Gait Analysis Code Fail

Posted: Tue Apr 09, 2024 10:41 pm
by hjlee418
Hello, when I execute the code from
https://github.com/stanfordnmbl/openca ... nalysis.py for overground gait analysis, I am getting error message like shown in the image. Do you have an idea what is going on?

Re: Gait Analysis Code Fail

Posted: Wed Apr 10, 2024 9:03 am
by antoinefalisse
You are probably not in the right conda environment (base instead of opencap-processing) or something like this.

Re: Gait Analysis Code Fail

Posted: Thu Apr 11, 2024 1:43 pm
by hjlee418
I created a conda environment called opencap-processing. Is there any packages I need to download in that environment?

Re: Gait Analysis Code Fail

Posted: Fri Apr 12, 2024 12:51 am
by hjlee418
After I created new conda environment called opencap-processing, I installed requirements.txt from my terminal. Is there anything I need to do further than this? or Is this not a right way to set this up?

Re: Gait Analysis Code Fail

Posted: Fri Apr 12, 2024 12:53 am
by hjlee418
After I created new conda environment called opencap-processing, I installed requirements.txt. Is there anything I need to do further than this? or Is this not a right way to set this up?

Re: Gait Analysis Code Fail

Posted: Fri Apr 12, 2024 9:49 am
by mpetrucc
Hi Hyejoon, you need follow the instructions here: https://github.com/stanfordnmbl/opencap ... le#general

Re: Gait Analysis Code Fail

Posted: Sun Apr 14, 2024 11:13 pm
by hjlee418
Thank you, it works now. Also, Is it possible to get a csv data for stide length over time? or is it impossible in this gait analysis system?

Re: Gait Analysis Code Fail

Posted: Tue Apr 16, 2024 1:36 pm
by mpetrucc
Hi Hyejoon, you should be able to modify the gait analysis python code to export the results to a .csv file.

Re: Gait Analysis Code Fail

Posted: Tue Apr 16, 2024 11:48 pm
by hjlee418
My question is right now when I extract csv file from it, it looks like the screenshot I am attaching. But what I want is csv file with time variables so it shows the values changing over time. (for example, like the csv file I can get from this file. https://github.com/stanfordnmbl/opencap ... example.py) Is this because of my code or the gait analysis cannot do that?

Re: Gait Analysis Code Fail

Posted: Wed Apr 17, 2024 11:04 am
by mpetrucc
Hi Hyejoon, yes the gait_analysis class is called starting here: https://github.com/stanfordnmbl/opencap ... sis.py#L72

In the gait_analysis class, the Stride lengths are calculated here: https://github.com/stanfordnmbl/opencap ... is.py#L140

You'll have to modify the code to export those values.