Mercurial Hosting > traffic-intelligence
changeset 1082:706034a4c6cd
more info in progress
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Sun, 22 Jul 2018 08:50:28 -0400 |
parents | 346b41cbc81a |
children | 5b597b021aed |
files | scripts/process.py |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/process.py Sat Jul 21 22:36:47 2018 -0400 +++ b/scripts/process.py Sun Jul 22 08:50:28 2018 -0400 @@ -111,7 +111,7 @@ # Report progress in the processing ################################# if args.progress: # TODO find video sequences that have null camera view, to work with them - print('Providing information on data progress') + print('Providing information on progress of data processing') headers = ['site', 'vs', 'features', 'objects', 'interactions'] # todo add prototypes and object classification data = [] for site in sites: @@ -125,6 +125,7 @@ data.append([site.name, vs.idx, False, False, False]) #if len(unprocessedVideoSequences): # print('Site {} ({}) has {} completely unprocessed video sequences'.format (site.name, site.idx, len(unprocessedVideoSequences))) + videoSequences = session.query(VideoSequence).filter(VideoSequence.cameraViewIdx.is_(None)).all() data = pd.DataFrame(data, columns = headers) print('-'*80) print('\t'+' '.join(headers[2:])) @@ -133,6 +134,10 @@ n = group.vs.count() print('{}: {} % / {} % / {} % ({})'.format(name, 100*group.features.sum()/float(n), 100*group.objects.sum()/float(n), 100*group.interactions.sum()/float(n), n)) print('-'*80) + if len(videoSequences) > 0: + print('{} video sequences without a camera view:'.format(len(videoSequences))) + print([vs.idx for vs in videoSequences]) + print('-'*80) print(data) #################################