From 923f497c9e908459b7466e9ede8d4e4d5a7884ca Mon Sep 17 00:00:00 2001 From: Austin Van Blanton Date: Thu, 25 Jul 2013 16:06:00 -0400 Subject: [PATCH] Add KTH to the downloadDatasets script --- data/KTH/README.md | 3 +++ data/README.md | 1 + scripts/downloadDatasets.sh | 16 ++++++++++++++++ 3 files changed, 20 insertions(+), 0 deletions(-) create mode 100644 data/KTH/README.md diff --git a/data/KTH/README.md b/data/KTH/README.md new file mode 100644 index 0000000..a7493e7 --- /dev/null +++ b/data/KTH/README.md @@ -0,0 +1,3 @@ +## KTH Human Action Database +Grayscale human action videos. Six actions performed by 25 subjects in four scenarios, for a total of 600 160x120 videos. +* [Website](http://www.nada.kth.se/cvap/actions/) diff --git a/data/README.md b/data/README.md index 7f6bebc..6feb9f5 100644 --- a/data/README.md +++ b/data/README.md @@ -9,6 +9,7 @@ * [MEDS](MEDS/README.md) * [MNIST](MNIST/README.md) * [PCSO](PCSO/README.md) +* [KTH](KTH/README.md) For both practical and legal reasons we only include images for some of the datasets in this repository. Researchers should contact the respective owners of the other datasets in order to obtain a copy. diff --git a/scripts/downloadDatasets.sh b/scripts/downloadDatasets.sh index b54cd5d..62020ab 100755 --- a/scripts/downloadDatasets.sh +++ b/scripts/downloadDatasets.sh @@ -48,3 +48,19 @@ if [ ! -d ../data/MEDS/img ]; then mv data/*/*.jpg ../data/MEDS/img rm -r data NIST_SD32_MEDS-II_face.zip fi + +# KTH +if [ ! -d ../data/KTH/vid ]; then + echo "Downloading KTH..." + mkdir ../data/KTH/vid + for vidclass in {'boxing','handclapping','handwaving','jogging','running','walking'}; do + if hash curl 2>/dev/null; then + curl -OL http://www.nada.kth.se/cvap/actions/${vidclass}.zip + else + wget http://www.nada.kth.se/cvap/actions/${vidclass}.zip + fi + mkdir ../data/KTH/vid/${vidclass} + unzip ${vidclass}.zip -d ../data/KTH/vid/${vidclass} + rm ${vidclass}.zip + done +fi -- libgit2 0.21.4