view scripts/create-bounding-boxes.py @ 1010:c90c4682c67e

concatenateWith,addFeatures,delFeatures,updatePosition, (new functions) ; concatenate (update) : from line 1145 to 1320
author Wendlasida
date Fri, 25 May 2018 15:14:27 -0400
parents 3058e00887bc
children 933670761a57
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 is not None:
    homography = inv(loadtxt(args.homography))

storage.createBoundingBoxTable(args.databaseFilename, homography)