Mercurial > hg > nsaunier > traffic-intelligence
view scripts/info-video.py @ 1161:b968c33f8c2f
work on producing figures and collision maps for large datasets with multiple sites
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Thu, 04 Mar 2021 23:12:34 -0500 |
| parents | cc5cb04b04b0 |
| children |
line wrap: on
line source
#! /usr/bin/env python3 import sys, argparse from trafficintelligence import cvutils parser = argparse.ArgumentParser(description='The program displays the video.') parser.add_argument('-i', dest = 'videoFilename', help = 'name of the video file', required = True) args = parser.parse_args() videoProperties = cvutils.infoVideo(args.videoFilename) for k,v in videoProperties.items(): print('Video {}: {}'.format(k, v))
