pyCGM2 : python Conventional Gait Model
  • Home
  • Github
  • Team
changelog Contribute
changelog Contribute
  • Background
    • History and Nomenclature
    • Definitions
      • Kinematic chain
      • Segments
      • Marker placement
      • Model outputs
      • Variants
    • Strengths
    • Weaknesses
    • Updating the CGM
      • Design criteria
      • Issues to be addressed
  • CGM #i
    • CGM1.0
    • CGM 1.1
    • CGM 2.1
    • CGM 2.2
    • CGM 2.3
    • CGM 2.4
    • CGM 2.5
    • CGM 2.6
  • Installation
    • Set-up python
    • Install pyCGM2
    • Known issues
  • Vicon and QTM Commands
    • Nexus
      • The pre-configured pyCGM2 pipeline
      • Commmand-lines
        • CGM
        • Events
        • Gaps filling
        • Gait Plots
        • EMG
      • Input argument references
    • QTM
  • Work with the API
    • Gait applications
      • Application of a conventional Gait model
      • Process your gait data
      • Detect gait events
      • Work with emg
  • Resources
    • Palpation
    • Clinical Gait analysis courses
    • Programming
      • Btk
      • Learn python
  • Blog
    • Kalman gap filling theory
  • Frequently asked Questions
    • How to cite pyCGM2
    • How to find my conda path
    • Integrate a pyCGM2 command as a nexus pipeline operation
    • Change default CGM settings temporarly or permanantly
    • Modify the default EMG configuration

Detect gait events

Currently, only the kinematic-based event detector stated by Zeni et al, was implemented

Contributions are welcome

import pyCGM2
from pyCGM2.Lib import eventDetector
from pyCGM2.Tools import btkTools

DATA_PATH = "C:\\myPATH\\"

# data
trialName = "03367_05136_20200604-GBNNN-VDEF-01.c3d"
acqGait = btkTools.smartReader(DATA_PATH+trialName)

# function
eventDetector.zeni(acqGait)
btkTools.smartWriter(acqGait, DATA_PATH+trialName[:-4]+"-event.c3d")

just load your trial name as a btk.Acquisition instance then run the function Zeni from the eventDetector module

Process your gait data Work with emg
Instigator sponsors
Vicon Salford Univ
sponsors
Qualisys Trinoma unige
  • contact
pyCGM2 : python Conventional Gait Model
CC-BY - Content licensed under a Creative Commons Attribution 4.0 International License, except where indicated otherwise.