Mercurial Hosting > traffic-intelligence
diff scripts/merge-features.py @ 829:0ddcc41663f5
renaming
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Wed, 29 Jun 2016 13:50:21 -0400 |
parents | 14e4ad7c7420 |
children | 2a5856961933 |
line wrap: on
line diff
--- a/scripts/merge-features.py Tue Jun 28 17:18:45 2016 -0400 +++ b/scripts/merge-features.py Wed Jun 29 13:50:21 2016 -0400 @@ -40,6 +40,12 @@ commonTimeInterval = moving.TimeInterval.intersection(commonTimeInterval, inter) commonTimeInterval = moving.TimeInterval.intersection(commonTimeInterval, processInterval) +if len(set([cv.cameraType.frameRate for cv in cameraViews])) > 1: + print('Different framerates of the cameras ({}) are not handled yet. Exiting'.format([cv.cameraType.frameRate for cv in cameraViews])) + +for cv, v in videoSequences.iteritems(): + + # for all camera view, for all video, select from positions and velocities where frame_number is in the right range and insert in new database # should we save the information of the new "sequence" in the metadata?