comparison scripts/create-bounding-boxes.py @ 614:5e09583275a4

Merged Nicolas/trafficintelligence into default
author Mohamed Gomaa <eng.m.gom3a@gmail.com>
date Fri, 05 Dec 2014 12:13:53 -0500
parents 6551a3cf1750
children 3058e00887bc
comparison
equal deleted inserted replaced
598:11f96bd08552 614:5e09583275a4
1 #! /usr/bin/env python
2
3 import argparse
4
5 import storage
6
7 from numpy.linalg.linalg import inv
8 from numpy import loadtxt
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.')
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')
13
14 args = parser.parse_args()
15
16 homography = None
17 if args.homography != None:
18 homography = inv(loadtxt(args.homography))
19
20 storage.createBoundingBoxTable(args.databaseFilename, homography)
21