Mercurial Hosting > traffic-intelligence
changeset 1026:73b124160911 v0.2
more plumbing
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Wed, 13 Jun 2018 14:55:22 -0400 |
parents | 6ba30b259525 |
children | 6129296848d3 |
files | python/storage.py scripts/process.py |
diffstat | 2 files changed, 7 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/python/storage.py Mon Jun 11 17:07:53 2018 -0400 +++ b/python/storage.py Wed Jun 13 14:55:22 2018 -0400 @@ -1427,11 +1427,11 @@ # override video and database filenames if present on command line # if not absolute, make all filenames relative to the location of the configuration filename if args.videoFilename is not None: - videoFilename = utils.getRelativeFilename(parentPath, args.videoFilename) + videoFilename = args.videoFilename else: videoFilename = params.videoFilename if args.databaseFilename is not None: - databaseFilename = utils.getRelativeFilename(parentPath, args.databaseFilename) + databaseFilename = args.databaseFilename else: databaseFilename = params.databaseFilename
--- a/scripts/process.py Mon Jun 11 17:07:53 2018 -0400 +++ b/scripts/process.py Wed Jun 13 14:55:22 2018 -0400 @@ -77,7 +77,11 @@ ################################# if args.delete is not None: if args.delete == 'feature': - pass + response = input('Are you sure you want to delete the tracking results (SQLite files) of all these sites (y/n)?') + if response == 'y': + for vs in videoSequences: + p = parentPath.absolute()/vs.getDatabaseFilename() + p.unlink() elif args.delete in ['object', 'interaction']: #parser.add_argument('-t', dest = 'dataType', help = 'type of the data to remove', required = True, choices = ['object','interaction', 'bb', 'pois', 'prototype']) for vs in videoSequences: