Mercurial > hg > nsaunier > traffic-intelligence
comparison scripts/learn-poi.py @ 844:5a68779d7777
added capability to save prototypes
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Thu, 14 Jul 2016 00:34:59 -0400 |
| parents | 181bcb6dad3a |
| children | 6db83beb5350 |
comparison
equal
deleted
inserted
replaced
| 843:5dc7a507353e | 844:5a68779d7777 |
|---|---|
| 57 # save | 57 # save |
| 58 storage.savePOIs(args.databaseFilename, model, gmmType, gmmId) | 58 storage.savePOIs(args.databaseFilename, model, gmmType, gmmId) |
| 59 gmmId += 1 | 59 gmmId += 1 |
| 60 | 60 |
| 61 if args.display: | 61 if args.display: |
| 62 plt.axis('equal') | |
| 62 plt.show() | 63 plt.show() |
| 63 | 64 |
| 64 # fig = plt.figure() | 65 # fig = plt.figure() |
| 65 # if args.worldImageFilename is not None and args.pixelsPerUnit is not None: | 66 # if args.worldImageFilename is not None and args.pixelsPerUnit is not None: |
| 66 # img = plt.imread(args.worldImageFilename) | 67 # img = plt.imread(args.worldImageFilename) |
