Mercurial Hosting > traffic-intelligence
view scripts/info-video.py @ 976:7f5cbdc107c5
corrected bug in converting time horizon to frames for internal computations (results for TTC, pPET and PET will be in frames)
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Mon, 05 Feb 2018 16:41:36 -0500 |
parents | 373e8ef6ee25 |
children | 933670761a57 |
line wrap: on
line source
#! /usr/bin/env python 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))