diff scripts/compute-clearmot.py @ 956:196a1fd498ba

removing unnecessary complexity of varying number of return elements
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Tue, 15 Aug 2017 16:15:55 -0400
parents 45384b45e35a
children 51d8406b2489
line wrap: on
line diff
--- a/scripts/compute-clearmot.py	Tue Aug 15 16:15:27 2017 -0400
+++ b/scripts/compute-clearmot.py	Tue Aug 15 16:15:55 2017 -0400
@@ -57,10 +57,7 @@
     for a in annotations:
         a.shiftTimeInterval(args.nFramesOffsetAnnotations)
 
-if args.display:
-    motp, mota, mt, mme, fpt, gt, gtMatches, toMatches = moving.computeClearMOT(annotations, objects, args.matchingDistance, args.firstInstant, args.lastInstant, True)
-else:
-    motp, mota, mt, mme, fpt, gt = moving.computeClearMOT(annotations, objects, args.matchingDistance, args.firstInstant, args.lastInstant)
+motp, mota, mt, mme, fpt, gt, gtMatches, toMatches = moving.computeClearMOT(annotations, objects, args.matchingDistance, args.firstInstant, args.lastInstant, args.display)
 
 if args.csvOutput:
     print('{},{},{},{},{}'.format(motp, mota, mt, mme, fpt))