]> rtime.felk.cvut.cz Git - hercules2020/kcf.git/commitdiff
test: Add expected results for new sequences
authorMichal Sojka <michal.sojka@cvut.cz>
Tue, 25 Sep 2018 21:30:04 +0000 (23:30 +0200)
committerMichal Sojka <michal.sojka@cvut.cz>
Tue, 25 Sep 2018 21:30:28 +0000 (23:30 +0200)
Also print expected accuracy in test results.

print-test-results

index 4bfd54ec222faa788fd3da97da59cf37a868519c..57aefbc59d8a5c5bfc3149d76f99ec516a964e55 100755 (executable)
@@ -2,7 +2,9 @@
 set -e
 
 declare -A expected_accuracy
-expected_accuracy=([bag]=0.53 [ball1]=0.70 [car1]=0.35 [book]=0.19)
+
+expected_accuracy=([bag]=0.53 [ball1]=0.70 [car1]=0.35 [book]=0.19
+                  [bmx]=0.45 [crossing]=0.72 [racing]=0.52)
 
 for i in "$@"; do
     [[ "$i" =~ build-(.*)/kcf_vot-(.*)-(.*).log ]]
@@ -20,5 +22,5 @@ for i in "$@"; do
     else
        status=FAILED
     fi
-    echo ! "$seq;$flags;$build;$result;$status"
+    echo ! "$seq;$flags;$build;$result >= ${expected_accuracy[$seq]};$status"
 done | sort | column -t -s";"