Mercurial Hosting > traffic-intelligence
comparison python/tests/moving.txt @ 959:4f32d82ca390
corrected error due to change in Hog (scikit image)
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Thu, 24 Aug 2017 17:22:24 -0400 |
parents | d8ab183a7351 |
children | f026ce2af637 |
comparison
equal
deleted
inserted
replaced
958:747a5c68bd3c | 959:4f32d82ca390 |
---|---|
201 | 201 |
202 >>> o1 = MovingObject.generate(1, Point(0.,0.), Point(1.,0.), TimeInterval(0,10)) | 202 >>> o1 = MovingObject.generate(1, Point(0.,0.), Point(1.,0.), TimeInterval(0,10)) |
203 >>> 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))) | 203 >>> 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))) |
204 >>> gt1.computeCentroidTrajectory() | 204 >>> gt1.computeCentroidTrajectory() |
205 >>> computeClearMOT([gt1], [], 0.2, 0, 10) | 205 >>> computeClearMOT([gt1], [], 0.2, 0, 10) |
206 (None, 0.0, 11, 0, 0, 11) | 206 (None, 0.0, 11, 0, 0, 11, None, None) |
207 >>> computeClearMOT([], [o1], 0.2, 0, 10) | 207 >>> computeClearMOT([], [o1], 0.2, 0, 10) |
208 (None, None, 0, 0, 11, 0) | 208 (None, None, 0, 0, 11, 0, None, None) |
209 >>> computeClearMOT([gt1], [o1], 0.2, 0, 10) # doctest:+ELLIPSIS | 209 >>> computeClearMOT([gt1], [o1], 0.2, 0, 10) # doctest:+ELLIPSIS |
210 (0.0999..., 1.0, 0, 0, 0, 11) | 210 (0.0999..., 1.0, 0, 0, 0, 11, None, None) |
211 >>> computeClearMOT([gt1], [o1], 0.05, 0, 10) | 211 >>> computeClearMOT([gt1], [o1], 0.05, 0, 10) |
212 (None, -1.0, 11, 0, 11, 11) | 212 (None, -1.0, 11, 0, 11, 11, None, None) |
213 | 213 |
214 >>> o1 = MovingObject(1, TimeInterval(0,3), positions = Trajectory([range(4), [0.1, 0.1, 1.1, 1.1]])) | 214 >>> o1 = MovingObject(1, TimeInterval(0,3), positions = Trajectory([range(4), [0.1, 0.1, 1.1, 1.1]])) |
215 >>> o2 = MovingObject(2, TimeInterval(0,3), positions = Trajectory([range(4), [0.9, 0.9, -0.1, -0.1]])) | 215 >>> o2 = MovingObject(2, TimeInterval(0,3), positions = Trajectory([range(4), [0.9, 0.9, -0.1, -0.1]])) |
216 >>> gt1 = BBMovingObject(1, TimeInterval(0,3), MovingObject(positions = Trajectory([range(4), [0.]*4])), MovingObject(positions = Trajectory([range(4), [0.]*4]))) | 216 >>> gt1 = BBMovingObject(1, TimeInterval(0,3), MovingObject(positions = Trajectory([range(4), [0.]*4])), MovingObject(positions = Trajectory([range(4), [0.]*4]))) |
217 >>> gt1.computeCentroidTrajectory() | 217 >>> gt1.computeCentroidTrajectory() |
218 >>> gt2 = BBMovingObject(2, TimeInterval(0,3), MovingObject(positions = Trajectory([range(4), [1.]*4])), MovingObject(positions = Trajectory([range(4), [1.]*4]))) | 218 >>> gt2 = BBMovingObject(2, TimeInterval(0,3), MovingObject(positions = Trajectory([range(4), [1.]*4])), MovingObject(positions = Trajectory([range(4), [1.]*4]))) |
219 >>> gt2.computeCentroidTrajectory() | 219 >>> gt2.computeCentroidTrajectory() |
220 >>> computeClearMOT([gt1, gt2], [o1, o2], 0.2, 0, 3) # doctest:+ELLIPSIS | 220 >>> computeClearMOT([gt1, gt2], [o1, o2], 0.2, 0, 3) # doctest:+ELLIPSIS |
221 (0.1..., 0.75, 0, 2, 0, 8) | 221 (0.1..., 0.75, 0, 2, 0, 8, None, None) |
222 >>> computeClearMOT([gt2, gt1], [o2, o1], 0.2, 0, 3) # doctest:+ELLIPSIS | 222 >>> computeClearMOT([gt2, gt1], [o2, o1], 0.2, 0, 3) # doctest:+ELLIPSIS |
223 (0.1..., 0.75, 0, 2, 0, 8) | 223 (0.1..., 0.75, 0, 2, 0, 8, None, None) |
224 >>> computeClearMOT([gt1], [o1, o2], 0.2, 0, 3) | 224 >>> computeClearMOT([gt1], [o1, o2], 0.2, 0, 3) |
225 (0.1, -0.25, 0, 1, 4, 4) | 225 (0.1, -0.25, 0, 1, 4, 4, None, None) |
226 >>> computeClearMOT([gt1], [o2, o1], 0.2, 0, 3) # symmetry | 226 >>> computeClearMOT([gt1], [o2, o1], 0.2, 0, 3) # symmetry |
227 (0.1, -0.25, 0, 1, 4, 4) | 227 (0.1, -0.25, 0, 1, 4, 4, None, None) |
228 >>> computeClearMOT([gt1, gt2], [o1], 0.2, 0, 3) # doctest:+ELLIPSIS | 228 >>> computeClearMOT([gt1, gt2], [o1], 0.2, 0, 3) # doctest:+ELLIPSIS |
229 (0.100..., 0.375, 4, 1, 0, 8) | 229 (0.100..., 0.375, 4, 1, 0, 8, None, None) |
230 >>> computeClearMOT([gt2, gt1], [o1], 0.2, 0, 3) # doctest:+ELLIPSIS | 230 >>> computeClearMOT([gt2, gt1], [o1], 0.2, 0, 3) # doctest:+ELLIPSIS |
231 (0.100..., 0.375, 4, 1, 0, 8) | 231 (0.100..., 0.375, 4, 1, 0, 8, None, None) |
232 >>> computeClearMOT([gt1, gt2], [o1, o2], 0.08, 0, 3) | 232 >>> computeClearMOT([gt1, gt2], [o1, o2], 0.08, 0, 3) |
233 (None, -1.0, 8, 0, 8, 8) | 233 (None, -1.0, 8, 0, 8, 8, None, None) |