Mercurial > hg > nsaunier > traffic-intelligence
comparison scripts/learn-motion-patterns.py @ 951:2a4f174879dd
corrected bug
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Mon, 24 Jul 2017 00:28:52 -0400 |
| parents | d6c1c05d11f5 |
| children | a9b2beef0db4 |
comparison
equal
deleted
inserted
replaced
| 950:c03d2c0a4c04 | 951:2a4f174879dd |
|---|---|
| 84 else: | 84 else: |
| 85 if args.inputPrototypeDatabaseFilename is None: | 85 if args.inputPrototypeDatabaseFilename is None: |
| 86 nmatchings = clusterSizes[i] | 86 nmatchings = clusterSizes[i] |
| 87 else: | 87 else: |
| 88 nmatchings = 0 | 88 nmatchings = 0 |
| 89 prototypes.append(moving.Prototype(args.databaseFilename, objects[i].getNum(), prototypeType, nmatchings) | 89 prototypes.append(moving.Prototype(args.databaseFilename, objects[i].getNum(), prototypeType, nmatchings)) |
| 90 | |
| 90 if args.outputPrototypeDatabaseFilename is None: | 91 if args.outputPrototypeDatabaseFilename is None: |
| 91 outputPrototypeDatabaseFilename = args.databaseFilename | 92 outputPrototypeDatabaseFilename = args.databaseFilename |
| 92 else: | 93 else: |
| 93 outputPrototypeDatabaseFilename = args.outputPrototypeDatabaseFilename | 94 outputPrototypeDatabaseFilename = args.outputPrototypeDatabaseFilename |
| 94 storage.savePrototypesToSqlite(outputPrototypeDatabaseFilename, prototypes) | 95 storage.savePrototypesToSqlite(outputPrototypeDatabaseFilename, prototypes) |
