Commit 923f497c9e908459b7466e9ede8d4e4d5a7884ca

Authored by Austin Van Blanton
1 parent 11ea4c85

Add KTH to the downloadDatasets script

data/KTH/README.md 0 → 100644
  1 +## KTH Human Action Database
  2 +Grayscale human action videos. Six actions performed by 25 subjects in four scenarios, for a total of 600 160x120 videos.
  3 +* [Website](http://www.nada.kth.se/cvap/actions/)
... ...
data/README.md
... ... @@ -9,6 +9,7 @@
9 9 * [MEDS](MEDS/README.md)
10 10 * [MNIST](MNIST/README.md)
11 11 * [PCSO](PCSO/README.md)
  12 +* [KTH](KTH/README.md)
12 13  
13 14 For both practical and legal reasons we only include images for some of the datasets in this repository.
14 15 Researchers should contact the respective owners of the other datasets in order to obtain a copy.
... ...
scripts/downloadDatasets.sh
... ... @@ -48,3 +48,19 @@ if [ ! -d ../data/MEDS/img ]; then
48 48 mv data/*/*.jpg ../data/MEDS/img
49 49 rm -r data NIST_SD32_MEDS-II_face.zip
50 50 fi
  51 +
  52 +# KTH
  53 +if [ ! -d ../data/KTH/vid ]; then
  54 + echo "Downloading KTH..."
  55 + mkdir ../data/KTH/vid
  56 + for vidclass in {'boxing','handclapping','handwaving','jogging','running','walking'}; do
  57 + if hash curl 2>/dev/null; then
  58 + curl -OL http://www.nada.kth.se/cvap/actions/${vidclass}.zip
  59 + else
  60 + wget http://www.nada.kth.se/cvap/actions/${vidclass}.zip
  61 + fi
  62 + mkdir ../data/KTH/vid/${vidclass}
  63 + unzip ${vidclass}.zip -d ../data/KTH/vid/${vidclass}
  64 + rm ${vidclass}.zip
  65 + done
  66 +fi
... ...