Commit 4509e4ee48b0f44c8aa3050d21ab9d6d88f165f5

Authored by jklontz
2 parents 94f23550 923f497c

Merge pull request #76 from imaus10/master

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
... ...