Mercurial > hg > nsaunier > traffic-intelligence
comparison scripts/process.py @ 1047:0b62e37991ab
minor
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Thu, 05 Jul 2018 23:17:12 -0400 |
| parents | f2ba9858e6c6 |
| children | 27a822922cb0 |
comparison
equal
deleted
inserted
replaced
| 1046:f2ba9858e6c6 | 1047:0b62e37991ab |
|---|---|
| 147 | 147 |
| 148 elif args.process == 'prototype': # motion pattern learning | 148 elif args.process == 'prototype': # motion pattern learning |
| 149 # learn by site by default -> group videos by site (or by camera view? TODO add cameraviews) | 149 # learn by site by default -> group videos by site (or by camera view? TODO add cameraviews) |
| 150 # by default, load all objects, learn and then assign (BUT not save the assignments) | 150 # by default, load all objects, learn and then assign (BUT not save the assignments) |
| 151 for site in sites: | 151 for site in sites: |
| 152 print('Learning motion patterns for site {}'.format(site.name)) | |
| 152 objects = {} | 153 objects = {} |
| 153 object2VideoSequences = {} | 154 object2VideoSequences = {} |
| 154 for cv in site.cameraViews: | 155 for cv in site.cameraViews: |
| 155 for vs in cv.videoSequences: | 156 for vs in cv.videoSequences: |
| 156 print('Loading '+vs.getDatabaseFilename()) | 157 print('Loading '+vs.getDatabaseFilename()) |
