Mercurial > hg > nsaunier > traffic-intelligence
comparison scripts/create-bounding-boxes.py @ 476:6551a3cf1750
modified compute-homography to work with argparse
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Tue, 25 Mar 2014 19:43:28 -0400 |
| parents | eaf7765221d9 |
| children | 3058e00887bc |
comparison
equal
deleted
inserted
replaced
| 474:59903d14d244 | 476:6551a3cf1750 |
|---|---|
| 13 | 13 |
| 14 args = parser.parse_args() | 14 args = parser.parse_args() |
| 15 | 15 |
| 16 homography = None | 16 homography = None |
| 17 if args.homography != None: | 17 if args.homography != None: |
| 18 homography = inv(loadtxt(args.homography)) | 18 homography = inv(loadtxt(args.homography)) |
| 19 | 19 |
| 20 storage.createBoundingBoxTable(args.databaseFilename, homography) | 20 storage.createBoundingBoxTable(args.databaseFilename, homography) |
| 21 | 21 |
