Mercurial > hg > nsaunier > traffic-intelligence
comparison scripts/create-bounding-boxes.py @ 1028:cc5cb04b04b0
major update using the trafficintelligence package name and install through pip
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Fri, 15 Jun 2018 11:19:10 -0400 |
| parents | 933670761a57 |
| children |
comparison
equal
deleted
inserted
replaced
| 1027:6129296848d3 | 1028:cc5cb04b04b0 |
|---|---|
| 1 #! /usr/bin/env python3 | 1 #! /usr/bin/env python3 |
| 2 | 2 |
| 3 import argparse | 3 import argparse |
| 4 | 4 |
| 5 import storage | |
| 6 | |
| 7 from numpy.linalg.linalg import inv | 5 from numpy.linalg.linalg import inv |
| 8 from numpy import loadtxt | 6 from numpy import loadtxt |
| 7 | |
| 8 from trafficintelligence import storage | |
| 9 | 9 |
| 10 parser = argparse.ArgumentParser(description='The program creates bounding boxes in image space around all features (for display and for comparison to ground truth in the form of bouding boxes.') | 10 parser = argparse.ArgumentParser(description='The program creates bounding boxes in image space around all features (for display and for comparison to ground truth in the form of bouding boxes.') |
| 11 parser.add_argument('-d', dest = 'databaseFilename', help = 'name of the Sqlite database file', required = True) | 11 parser.add_argument('-d', dest = 'databaseFilename', help = 'name of the Sqlite database file', required = True) |
| 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 |
