Mercurial Hosting > traffic-intelligence
comparison python/ubc_utils.py @ 614:5e09583275a4
Merged Nicolas/trafficintelligence into default
author | Mohamed Gomaa <eng.m.gom3a@gmail.com> |
---|---|
date | Fri, 05 Dec 2014 12:13:53 -0500 |
parents | 2f39c4ed0b62 |
children | 15e244d2a1b5 |
comparison
equal
deleted
inserted
replaced
598:11f96bd08552 | 614:5e09583275a4 |
---|---|
1 #! /usr/bin/env python | 1 #! /usr/bin/env python |
2 '''Various utilities to load data saved by the UBC tool(s)''' | 2 '''Various utilities to load data saved by the UBC tool(s)''' |
3 | 3 |
4 import utils | 4 import utils, events |
5 from moving import MovingObject, TimeInterval, Trajectory | 5 from moving import MovingObject, TimeInterval, Trajectory |
6 | 6 |
7 __metaclass__ = type | 7 __metaclass__ = type |
8 | 8 |
9 fileTypeNames = ['feature', | 9 fileTypeNames = ['feature', |
10 'object', | 10 'object', |
11 'prototype', | 11 'prototype', |
12 'contoursequence'] | 12 'contoursequence'] |
13 | 13 |
14 severityIndicatorNames = ['Distance', | 14 severityIndicatorNames = ['Distance', |
15 'Cosine', | 15 'Collision Course Cosine', |
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 'Time to Collision'] |
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, |