Skip to content

hci-unimelb/myo-datacollector-handhygiene

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Readme for myo hand washing project

Preparation for this project:

- This project depends on Python3.


  • Install VLC player:

    • MacOS users: Please install VLC library by HomeBrew, with command

      brew cask install vlc

    • Windows users: Please download and install vlc(x64 version) from VideoLan.

      Then set the environment path:

      PYTHON_VLC_MODULE_PATH
      to
      C:\Program Files\VideoLAN\VLC other installed directory.

  • Install python-vlc package, by:

    pip/pip3 install python-vlc

    Please Note:

    Not pip3 install vlc
    It is different package


  • Install myo-python, by:

    pip/pip3 install myo-python

    Please Note:

    Not pip3 install myo
    It is different package

  • Modify myo-python Library:

    please edit the myo-python library, at Event class in myo._ffi.py, by adding:

    @property
    def device_point(self):
      return libmyo.libmyo_event_get_myo(self._handle)
    

  • Install PyQt5 Library:

    pip/pip3 install PyQt5


  • Users with PyCharm:

    Please turn off the "Show plots in tool window" at Setting > Tools > Python Scientific


  • Users with MacOS in Mojave:

    Please create document of matplotlibrc at ~/.matplotlib, by adding:

      backend : Agg
    

    or, when using matplotlib,

      import matplotlib
      matplotlib.use('Agg')
    

To Run project / Collect data (4 armbands)

For Now, this project could be only functioned on Windows platform (Windows 10), because the matplotlib and PyQt5 libraries could not worked with multi-processes in MacOS platform.

Please add your armband MAC address inside collect_data.py

To start with terminal (Mac):

python/python3 interface-host.py

To start with terminal (Windows):

python/python3 interface-sub.py

Using Pycharm:

Run interface-host.py or interface-sub.py

To Run project / Collect data (3 armbands

Please switch to another branch

The collected data will locate on:

myo/data

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 77.5%
  • JavaScript 9.5%
  • C++ 7.4%
  • CSS 3.2%
  • Python 2.3%
  • C 0.1%