Mercurial Hosting > traffic-intelligence
comparison python/tests/moving.txt @ 998:933670761a57
updated code to python 3 (tests pass and scripts run, but non-executed parts of code are probably still not correct)
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Sun, 27 May 2018 23:22:48 -0400 |
parents | f026ce2af637 |
children | d7afc59f6966 |
comparison
equal
deleted
inserted
replaced
997:4f3387a242a1 | 998:933670761a57 |
---|---|
217 >>> computeClearMOT([gt1], [o1], 0.2, 0, 10) # doctest:+ELLIPSIS | 217 >>> computeClearMOT([gt1], [o1], 0.2, 0, 10) # doctest:+ELLIPSIS |
218 (0.0999..., 1.0, 0, 0, 0, 11, None, None) | 218 (0.0999..., 1.0, 0, 0, 0, 11, None, None) |
219 >>> computeClearMOT([gt1], [o1], 0.05, 0, 10) | 219 >>> computeClearMOT([gt1], [o1], 0.05, 0, 10) |
220 (None, -1.0, 11, 0, 11, 11, None, None) | 220 (None, -1.0, 11, 0, 11, 11, None, None) |
221 | 221 |
222 >>> o1 = MovingObject(1, TimeInterval(0,3), positions = Trajectory([range(4), [0.1, 0.1, 1.1, 1.1]])) | 222 >>> o1 = MovingObject(1, TimeInterval(0,3), positions = Trajectory([list(range(4)), [0.1, 0.1, 1.1, 1.1]])) |
223 >>> o2 = MovingObject(2, TimeInterval(0,3), positions = Trajectory([range(4), [0.9, 0.9, -0.1, -0.1]])) | 223 >>> o2 = MovingObject(2, TimeInterval(0,3), positions = Trajectory([list(range(4)), [0.9, 0.9, -0.1, -0.1]])) |
224 >>> gt1 = BBMovingObject(1, TimeInterval(0,3), MovingObject(positions = Trajectory([range(4), [0.]*4])), MovingObject(positions = Trajectory([range(4), [0.]*4]))) | 224 >>> gt1 = BBMovingObject(1, TimeInterval(0,3), MovingObject(positions = Trajectory([list(range(4)), [0.]*4])), MovingObject(positions = Trajectory([list(range(4)), [0.]*4]))) |
225 >>> gt1.computeCentroidTrajectory() | 225 >>> gt1.computeCentroidTrajectory() |
226 >>> gt2 = BBMovingObject(2, TimeInterval(0,3), MovingObject(positions = Trajectory([range(4), [1.]*4])), MovingObject(positions = Trajectory([range(4), [1.]*4]))) | 226 >>> gt2 = BBMovingObject(2, TimeInterval(0,3), MovingObject(positions = Trajectory([list(range(4)), [1.]*4])), MovingObject(positions = Trajectory([list(range(4)), [1.]*4]))) |
227 >>> gt2.computeCentroidTrajectory() | 227 >>> gt2.computeCentroidTrajectory() |
228 >>> computeClearMOT([gt1, gt2], [o1, o2], 0.2, 0, 3) # doctest:+ELLIPSIS | 228 >>> computeClearMOT([gt1, gt2], [o1, o2], 0.2, 0, 3) # doctest:+ELLIPSIS |
229 (0.1..., 0.75, 0, 2, 0, 8, None, None) | 229 (0.1..., 0.75, 0, 2, 0, 8, None, None) |
230 >>> computeClearMOT([gt2, gt1], [o2, o1], 0.2, 0, 3) # doctest:+ELLIPSIS | 230 >>> computeClearMOT([gt2, gt1], [o2, o1], 0.2, 0, 3) # doctest:+ELLIPSIS |
231 (0.1..., 0.75, 0, 2, 0, 8, None, None) | 231 (0.1..., 0.75, 0, 2, 0, 8, None, None) |