README.md 1.35 KB
Newer Older
burcharr's avatar
burcharr committed
1
2
# handwashing_detector

burcharr's avatar
burcharr committed
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
```

burcharr's avatar
burcharr committed
18
###Install PyAV-fork by @pscholl (from source, [additional instructions](https://pyav.org/docs/develop/overview/installation.html)):
burcharr's avatar
burcharr committed
19
20
21

instructions are for ubuntu 18.04.

burcharr's avatar
burcharr committed
22
```bash
burcharr's avatar
burcharr committed
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# 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

```

burcharr's avatar
burcharr committed
50
51
52
### Activating the handwashing package:
In order to allow "relative" imports, install the handwashing package with setuptools.

burcharr's avatar
burcharr committed
53
run `python setup.py install` in `src` folder.
burcharr's avatar
burcharr committed
54
55


burcharr's avatar
burcharr committed
56
Now you should be able to run all notebooks / sources in this repo