Skip to content
Snippets Groups Projects
Name Last commit Last update
docs
src
.gitignore
README.md
requirements.txt

handwashing_detector

Master Thesis Project of Robin Burchard

Topic:

Detecting hand-washing and obsessive (ocd) hand-washing in timeseries accelerometer sensor data of wristmotion.

Installation:

create a virtual environment for the running of the code in this repo (currently python 3.8.8 is used). Proceed with the activated environment to install the python packages needed:

Install requirements.txt:

pip install -r requirements.txt

###Install PyAV-fork by @pscholl (from source, additional instructions):

instructions are for ubuntu 18.04.

# General dependencies
sudo apt-get install -y python-dev pkg-config

# Library components
sudo apt-get install -y \
    libavformat-dev libavcodec-dev libavdevice-dev \
    libavutil-dev libswscale-dev libswresample-dev libavfilter-dev


git clone https://github.com/pscholl/PyAV.git
cd PyAV

# Install basic requirements.
pip install -r tests/requirements.txt

# Optionally build FFmpeg.
./scripts/build-deps

# Build PyAV.
make
# or
python setup.py build_ext --inplace

python setup.py install

Activating the handwashing package:

In order to allow "relative" imports, install the handwashing package with setuptools.

run python setup.py in src folder.

Now you should be able to run all notebooks / sources in this repo