Mercurial Hosting > traffic-intelligence
comparison 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 |
comparison
equal
deleted
inserted
replaced
955:a15e843af55a | 956:196a1fd498ba |
---|---|
55 | 55 |
56 if args.nFramesOffsetAnnotations is not None: | 56 if args.nFramesOffsetAnnotations is not None: |
57 for a in annotations: | 57 for a in annotations: |
58 a.shiftTimeInterval(args.nFramesOffsetAnnotations) | 58 a.shiftTimeInterval(args.nFramesOffsetAnnotations) |
59 | 59 |
60 if args.display: | 60 motp, mota, mt, mme, fpt, gt, gtMatches, toMatches = moving.computeClearMOT(annotations, objects, args.matchingDistance, args.firstInstant, args.lastInstant, args.display) |
61 motp, mota, mt, mme, fpt, gt, gtMatches, toMatches = moving.computeClearMOT(annotations, objects, args.matchingDistance, args.firstInstant, args.lastInstant, True) | |
62 else: | |
63 motp, mota, mt, mme, fpt, gt = moving.computeClearMOT(annotations, objects, args.matchingDistance, args.firstInstant, args.lastInstant) | |
64 | 61 |
65 if args.csvOutput: | 62 if args.csvOutput: |
66 print('{},{},{},{},{}'.format(motp, mota, mt, mme, fpt)) | 63 print('{},{},{},{},{}'.format(motp, mota, mt, mme, fpt)) |
67 else: | 64 else: |
68 print 'MOTP: {}'.format(motp) | 65 print 'MOTP: {}'.format(motp) |