diff trafficintelligence/moving.py @ 1030:aafbc0bab925

moved method around to avoid cross-dependencies
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Tue, 19 Jun 2018 10:04:52 -0400
parents c6cf75a2ed08
children 933588568bec
line wrap: on
line diff
--- a/trafficintelligence/moving.py	Mon Jun 18 22:50:59 2018 -0400
+++ b/trafficintelligence/moving.py	Tue Jun 19 10:04:52 2018 -0400
@@ -10,9 +10,6 @@
 from scipy.spatial.distance import cdist
 from scipy.signal import savgol_filter
 
-from trafficintelligence import utils, cvutils
-from trafficintelligence.base import VideoFilenameAddable
-
 try:
     from shapely.geometry import Polygon, Point as shapelyPoint
     from shapely.prepared import prep, PreparedGeometry
@@ -21,6 +18,9 @@
     print('Shapely library could not be loaded')
     shapelyAvailable = False
 
+from trafficintelligence import utils, cvutils
+from trafficintelligence.base import VideoFilenameAddable
+
 
 class Interval(object):
     '''Generic interval: a subset of real numbers (not iterable)'''