]> rtime.felk.cvut.cz Git - hercules2020/kcf.git/blobdiff - print-test-results
Do not allow creation of ComplexMat with unknown size
[hercules2020/kcf.git] / print-test-results
index 50027de80754b53ffeab100aa434105917ebeb51..73c36380bdccc2201a9b70359488abde92821ef4 100755 (executable)
@@ -1,7 +1,10 @@
 #!/bin/bash
 set -e
 
-expected_accuracy=([bag]=0.53 [ball1]=0.70 [car1]=0.35 [book]=0.19)
+declare -A expected_accuracy
+
+expected_accuracy=([bag]=0.53 [ball1-correct]=0.70 [ball1]=0.35 [car1]=0.35 [book]=0.19
+                  [bmx]=0.45 [crossing]=0.72 [racing]=0.52)
 
 for i in "$@"; do
     [[ "$i" =~ build-(.*)/kcf_vot-(.*)-(.*).log ]]
@@ -11,13 +14,13 @@ for i in "$@"; do
 
     result=$(grep 'Average accuracy:' $i || :)
     if [[ "$result" =~ Average\ accuracy:\ ([0-9.]+) ]]; then
-       if [[ $(echo "${BASH_REMATCH[1]} >= ${expected_accuracy[$seq]}"|bc) -eq 1 ]]; then
+       if [[ $(echo "${BASH_REMATCH[1]} >= ${expected_accuracy[$seq]:-0}"|bc) -eq 1 ]]; then
            status=ok
        else
-           status=BAD
+           status=ACCURACY
        fi
     else
        status=FAILED
     fi
-    echo ! "$seq;$flags;$build;$result;$status"
+    echo ! "$seq;$flags;$build;$result >= ${expected_accuracy[$seq]};$status"
 done | sort | column -t -s";"