Mercurial Hosting > traffic-intelligence
comparison trafficintelligence/moving.py @ 1029:c6cf75a2ed08
reorganization of imports
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Mon, 18 Jun 2018 22:50:59 -0400 |
parents | cc5cb04b04b0 |
children | aafbc0bab925 |
comparison
equal
deleted
inserted
replaced
1028:cc5cb04b04b0 | 1029:c6cf75a2ed08 |
---|---|
1 #! /usr/bin/env python | 1 #! /usr/bin/env python |
2 '''Libraries for moving objects, trajectories...''' | 2 '''Libraries for moving objects, trajectories...''' |
3 | 3 |
4 from trafficintelligence import utils, cvutils | 4 import copy |
5 from trafficintelligence.base import VideoFilenameAddable | |
6 | |
7 from math import sqrt, atan2, cos, sin | 5 from math import sqrt, atan2, cos, sin |
6 | |
8 from numpy import median, mean, array, arange, zeros, ones, hypot, NaN, std, floor, float32, argwhere, minimum | 7 from numpy import median, mean, array, arange, zeros, ones, hypot, NaN, std, floor, float32, argwhere, minimum |
9 from matplotlib.pyplot import plot, text | 8 from matplotlib.pyplot import plot, text |
10 from scipy.stats import scoreatpercentile | 9 from scipy.stats import scoreatpercentile |
11 from scipy.spatial.distance import cdist | 10 from scipy.spatial.distance import cdist |
12 from scipy.signal import savgol_filter | 11 from scipy.signal import savgol_filter |
13 import copy | 12 |
13 from trafficintelligence import utils, cvutils | |
14 from trafficintelligence.base import VideoFilenameAddable | |
14 | 15 |
15 try: | 16 try: |
16 from shapely.geometry import Polygon, Point as shapelyPoint | 17 from shapely.geometry import Polygon, Point as shapelyPoint |
17 from shapely.prepared import prep, PreparedGeometry | 18 from shapely.prepared import prep, PreparedGeometry |
18 shapelyAvailable = True | 19 shapelyAvailable = True |