Mercurial > hg > nsaunier > traffic-intelligence
comparison python/ubc_utils.py @ 329:a70c205ebdd9
added sqlite code, in particular to load and save road user type
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Thu, 13 Jun 2013 00:42:40 -0400 |
| parents | 93d851d0d21e |
| children | 2f39c4ed0b62 |
comparison
equal
deleted
inserted
replaced
| 328:5e43b7389c25 | 329:a70c205ebdd9 |
|---|---|
| 16 'Velocity Cosine', | 16 'Velocity Cosine', |
| 17 'Speed Differential', | 17 'Speed Differential', |
| 18 'Collision Probability', | 18 'Collision Probability', |
| 19 'Severity Index', | 19 'Severity Index', |
| 20 'TTC'] | 20 'TTC'] |
| 21 | |
| 22 userTypeNames = ['car', | |
| 23 'pedestrian', | |
| 24 'twowheels', | |
| 25 'bus', | |
| 26 'truck'] | |
| 21 | 27 |
| 22 # severityIndicator = {'Distance': 0, | 28 # severityIndicator = {'Distance': 0, |
| 23 # 'Cosine': 1, | 29 # 'Cosine': 1, |
| 24 # 'Velocity Cosine': 2, | 30 # 'Velocity Cosine': 2, |
| 25 # 'Speed Differential': 3, | 31 # 'Speed Differential': 3, |
