Mercurial Hosting > traffic-intelligence
comparison python/poly-utils.py @ 665:15e244d2a1b5
corrected bug with circular import for VideoFilenameAddable, moved to base module
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Wed, 20 May 2015 13:57:47 +0200 |
parents | dc2d0a0d7fe1 |
children | 933670761a57 |
comparison
equal
deleted
inserted
replaced
664:455f9b93819c | 665:15e244d2a1b5 |
---|---|
1 #! /usr/bin/env python | 1 #! /usr/bin/env python |
2 '''Various utilities to load data saved by the POLY new output(s)''' | 2 '''Various utilities to load data saved by the POLY new output(s)''' |
3 import sys | 3 |
4 import utils | |
5 from moving import TimeInterval | 4 from moving import TimeInterval |
5 from indicators import SeverityIndicator | |
6 | |
7 import sys, utils | |
6 import numpy as np | 8 import numpy as np |
7 | |
8 __metaclass__ = type | |
9 from indicators import SeverityIndicator | |
10 | 9 |
11 | 10 |
12 def loadNewInteractions(videoFilename,interactionType,dirname, extension, indicatorsNames, roaduserNum1,roaduserNum2, selectedIndicators=[]): | 11 def loadNewInteractions(videoFilename,interactionType,dirname, extension, indicatorsNames, roaduserNum1,roaduserNum2, selectedIndicators=[]): |
13 '''Loads interactions from the POLY traffic event format''' | 12 '''Loads interactions from the POLY traffic event format''' |
14 from events import Interaction | 13 from events import Interaction |