Mercurial Hosting > traffic-intelligence
view scripts/create-bounding-boxes.py @ 411:31604ef1cad4
added hog functions and the display of road user types if known
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Wed, 21 Aug 2013 00:00:23 -0400 |
parents | eaf7765221d9 |
children | 6551a3cf1750 |
line wrap: on
line source
#! /usr/bin/env python import argparse import storage from numpy.linalg.linalg import inv from numpy import loadtxt 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.') parser.add_argument('-d', dest = 'databaseFilename', help = 'name of the Sqlite database file', required = True) parser.add_argument('-o', dest = 'homography', help = 'name of the image to world homography') args = parser.parse_args() homography = None if args.homography != None: homography = inv(loadtxt(args.homography)) storage.createBoundingBoxTable(args.databaseFilename, homography)