Mercurial Hosting > traffic-intelligence
comparison 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 |
comparison
equal
deleted
inserted
replaced
828:14e4ad7c7420 | 829:0ddcc41663f5 |
---|---|
38 commonTimeInterval = timeIntervals.values()[0] | 38 commonTimeInterval = timeIntervals.values()[0] |
39 for inter in timeIntervals.values()[1:]: | 39 for inter in timeIntervals.values()[1:]: |
40 commonTimeInterval = moving.TimeInterval.intersection(commonTimeInterval, inter) | 40 commonTimeInterval = moving.TimeInterval.intersection(commonTimeInterval, inter) |
41 commonTimeInterval = moving.TimeInterval.intersection(commonTimeInterval, processInterval) | 41 commonTimeInterval = moving.TimeInterval.intersection(commonTimeInterval, processInterval) |
42 | 42 |
43 if len(set([cv.cameraType.frameRate for cv in cameraViews])) > 1: | |
44 print('Different framerates of the cameras ({}) are not handled yet. Exiting'.format([cv.cameraType.frameRate for cv in cameraViews])) | |
45 | |
46 for cv, v in videoSequences.iteritems(): | |
47 | |
48 | |
43 # 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 | 49 # 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 |
44 | 50 |
45 # should we save the information of the new "sequence" in the metadata? | 51 # should we save the information of the new "sequence" in the metadata? |
46 #session.add(VideoSequence('merged', , timedelta(seconds = 31616./30.), laurierSite, laurierCameraViewSpot0)) | 52 #session.add(VideoSequence('merged', , timedelta(seconds = 31616./30.), laurierSite, laurierCameraViewSpot0)) |
47 | 53 |