Mercurial > hg > nsaunier > traffic-intelligence
comparison scripts/create-bounding-boxes.py @ 636:3058e00887bc
removed all issues because of tests with None, using is instead of == or !=
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Tue, 24 Mar 2015 18:11:28 +0100 |
| parents | 6551a3cf1750 |
| children | 933670761a57 |
comparison
equal
deleted
inserted
replaced
| 635:6ae68383071e | 636:3058e00887bc |
|---|---|
| 12 parser.add_argument('-o', dest = 'homography', help = 'name of the image to world homography') | 12 parser.add_argument('-o', dest = 'homography', help = 'name of the image to world homography') |
| 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 is not 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 |
