Mercurial > hg > nsaunier > traffic-intelligence
comparison trafficintelligence/metadata.py @ 1086:8734742c08c0
major refactoring of curvilinear trajectory projections
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Tue, 16 Oct 2018 12:46:29 -0400 |
| parents | 8ab92ee3cbef |
| children | 9cc51a2d3c46 |
comparison
equal
deleted
inserted
replaced
| 1085:7853106677b7 | 1086:8734742c08c0 |
|---|---|
| 421 videoSequences.append(VideoSequence(directoryName+sep+name, startTime, duration, cameraView, directoryName+sep+prefix+'.sqlite')) | 421 videoSequences.append(VideoSequence(directoryName+sep+name, startTime, duration, cameraView, directoryName+sep+prefix+'.sqlite')) |
| 422 startTime += duration | 422 startTime += duration |
| 423 session.add_all(videoSequences) | 423 session.add_all(videoSequences) |
| 424 session.commit() | 424 session.commit() |
| 425 | 425 |
| 426 def generateTimeIntervals(videoSequences, maxTimeGap): | |
| 427 '' | |
| 428 | |
| 426 # management | 429 # management |
| 427 # TODO need to be able to copy everything from a site from one sqlite to another, and delete everything attached to a site | 430 # TODO need to be able to copy everything from a site from one sqlite to another, and delete everything attached to a site |
