pyCGM2.Lib.emg.processEMG_fromBtkAcq#

pyCGM2.Lib.emg.processEMG_fromBtkAcq(acq: btkAcquisition, emgChannels: List[str], highPassFrequencies: List[int] = [20, 200], envelopFrequency: float = 6.0)#

Process EMG data from a BTK acquisition instance.

This function applies basic and envelop processing filters to EMG data within a BTK acquisition instance.

Parameters:
  • acq (btk.btkAcquisition) – A BTK acquisition instance containing EMG data.

  • emgChannels (List[str]) – A list of EMG channel names to process.

  • highPassFrequencies (List[int]) – The high-pass filter frequencies. Defaults to [20, 200].

  • envelopFrequency (float) – The cut-off frequency for the low-pass filter. Defaults to 6.0.

Returns:

btk.btkAcquisition – The processed BTK acquisition instance.

Example

>>> processed_acq = processEMG_fromBtkAcq(acq, ["Voltage.EMG1", "Voltage.EMG2"])