From 10d6fd414e9c4cd06aee93b1ae228ec1c121c0df Mon Sep 17 00:00:00 2001 From: Austin Van Blanton Date: Fri, 23 Aug 2013 13:44:06 -0400 Subject: [PATCH] Add comments to INRIAPerson sigset generator script --- scripts/writeINRIAPersonSigset.sh | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/scripts/writeINRIAPersonSigset.sh b/scripts/writeINRIAPersonSigset.sh index cf72936..a32a861 100755 --- a/scripts/writeINRIAPersonSigset.sh +++ b/scripts/writeINRIAPersonSigset.sh @@ -1,5 +1,9 @@ #!/bin/bash +# prints out a element +# additional arguments after the first two are rectangle coordinates +# from that, it will create a nested element (from the ViPER standard) +# http://viper-toolkit.sourceforge.net/docs/file/ writePresentation() { pres="\t\t' echo '' + +# print out the positive image sigs for fullpath in INRIAPerson/$1/pos/*; do + # get just the filename, minus the path filename=$(basename "$fullpath") echo -e "\t" + + # if this folder has annotations, add bounding boxes if [ -d INRIAPerson/$1/annotations ]; then annotation="INRIAPerson/$1/annotations/${filename%.*}.txt" grep 'Bounding box' $annotation | sed "$SEDREGEX" | xargs -n 5 bash -c "writePresentation $1 $filename \$@" + # otherwise, just the normal presentation else writePresentation $1 $filename fi + echo -e '\t' done + +# print out the negative image sigs for fullpath in INRIAPerson/$1/neg/*; do filename=$(basename "$fullpath") echo -e "\t" echo -e "\t\t" echo -e '\t' done + echo '' -- libgit2 0.21.4