Mercurial Hosting > traffic-intelligence
view scripts/info-video.py @ 1018:d7afc59f6966
work in progress
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Mon, 04 Jun 2018 17:46:52 -0400 |
parents | 933670761a57 |
children | 16932cefabc1 |
line wrap: on
line source
#! /usr/bin/env python3 import sys, argparse 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.iteritems(): print('Video {}: {}'.format(k, v))