Mercurial Hosting > traffic-intelligence
comparison trafficintelligence/tests/moving.txt @ 1133:c4d9c270f999
modification for performance computation
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Wed, 26 Feb 2020 22:39:36 -0500 |
parents | a3982d591a61 |
children | 4b2a55d570c1 |
comparison
equal
deleted
inserted
replaced
1132:09ef0dc994a0 | 1133:c4d9c270f999 |
---|---|
296 >>> o1.classifyUserTypeSpeedMotorized(1.5, np.median) | 296 >>> o1.classifyUserTypeSpeedMotorized(1.5, np.median) |
297 >>> userTypeNames[o1.getUserType()] | 297 >>> userTypeNames[o1.getUserType()] |
298 'pedestrian' | 298 'pedestrian' |
299 | 299 |
300 >>> o1 = MovingObject.generate(1, Point(0.,0.), Point(1.,0.), TimeInterval(0,10)) | 300 >>> o1 = MovingObject.generate(1, Point(0.,0.), Point(1.,0.), TimeInterval(0,10)) |
301 >>> gt1 = BBMovingObject(1, TimeInterval(0,10), MovingObject.generate(1, Point(0.2,0.6), Point(1.,0.), TimeInterval(0,10)), MovingObject.generate(2, Point(-0.2,-0.4), Point(1.,0.), TimeInterval(0,10))) | 301 >>> gt1 = BBMovingObject(MovingObject.generate(1, Point(0.2,0.6), Point(1.,0.), TimeInterval(0,10)), MovingObject.generate(2, Point(-0.2,-0.4), Point(1.,0.), TimeInterval(0,10)), 1, TimeInterval(0,10), ) |
302 >>> gt1.computeCentroidTrajectory() | 302 >>> gt1.computeCentroidTrajectory() |
303 >>> computeClearMOT([gt1], [], 0.2, 0, 10) | 303 >>> computeClearMOT([gt1], [], 0.2, 0, 10) |
304 (None, 0.0, 11, 0, 0, 11, None, None) | 304 (None, 0.0, 11, 0, 0, 11, None, None) |
305 >>> computeClearMOT([], [o1], 0.2, 0, 10) | 305 >>> computeClearMOT([], [o1], 0.2, 0, 10) |
306 (None, None, 0, 0, 11, 0, None, None) | 306 (None, None, 0, 0, 11, 0, None, None) |
309 >>> computeClearMOT([gt1], [o1], 0.05, 0, 10) | 309 >>> computeClearMOT([gt1], [o1], 0.05, 0, 10) |
310 (None, -1.0, 11, 0, 11, 11, None, None) | 310 (None, -1.0, 11, 0, 11, 11, None, None) |
311 | 311 |
312 >>> o1 = MovingObject(1, TimeInterval(0,3), positions = Trajectory([list(range(4)), [0.1, 0.1, 1.1, 1.1]])) | 312 >>> o1 = MovingObject(1, TimeInterval(0,3), positions = Trajectory([list(range(4)), [0.1, 0.1, 1.1, 1.1]])) |
313 >>> o2 = MovingObject(2, TimeInterval(0,3), positions = Trajectory([list(range(4)), [0.9, 0.9, -0.1, -0.1]])) | 313 >>> o2 = MovingObject(2, TimeInterval(0,3), positions = Trajectory([list(range(4)), [0.9, 0.9, -0.1, -0.1]])) |
314 >>> gt1 = BBMovingObject(1, TimeInterval(0,3), MovingObject(positions = Trajectory([list(range(4)), [0.]*4])), MovingObject(positions = Trajectory([list(range(4)), [0.]*4]))) | 314 >>> gt1 = BBMovingObject(MovingObject(positions = Trajectory([list(range(4)), [0.]*4])), MovingObject(positions = Trajectory([list(range(4)), [0.]*4])), 1, TimeInterval(0,3)) |
315 >>> gt1.computeCentroidTrajectory() | 315 >>> gt1.computeCentroidTrajectory() |
316 >>> gt2 = BBMovingObject(2, TimeInterval(0,3), MovingObject(positions = Trajectory([list(range(4)), [1.]*4])), MovingObject(positions = Trajectory([list(range(4)), [1.]*4]))) | 316 >>> gt2 = BBMovingObject(MovingObject(positions = Trajectory([list(range(4)), [1.]*4])), MovingObject(positions = Trajectory([list(range(4)), [1.]*4])), 2, TimeInterval(0,3)) |
317 >>> gt2.computeCentroidTrajectory() | 317 >>> gt2.computeCentroidTrajectory() |
318 >>> computeClearMOT([gt1, gt2], [o1, o2], 0.2, 0, 3) # doctest:+ELLIPSIS | 318 >>> computeClearMOT([gt1, gt2], [o1, o2], 0.2, 0, 3) # doctest:+ELLIPSIS |
319 (0.1..., 0.75, 0, 2, 0, 8, None, None) | 319 (0.1..., 0.75, 0, 2, 0, 8, None, None) |
320 >>> computeClearMOT([gt2, gt1], [o2, o1], 0.2, 0, 3) # doctest:+ELLIPSIS | 320 >>> computeClearMOT([gt2, gt1], [o2, o1], 0.2, 0, 3) # doctest:+ELLIPSIS |
321 (0.1..., 0.75, 0, 2, 0, 8, None, None) | 321 (0.1..., 0.75, 0, 2, 0, 8, None, None) |