Mercurial Hosting > traffic-intelligence
comparison scripts/info-video.py @ 1021:16932cefabc1
work on paths in line with new configurations from tracker
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Tue, 05 Jun 2018 17:02:28 -0400 |
parents | 933670761a57 |
children | cc5cb04b04b0 |
comparison
equal
deleted
inserted
replaced
1020:9fb82fe0156f | 1021:16932cefabc1 |
---|---|
8 parser.add_argument('-i', dest = 'videoFilename', help = 'name of the video file', required = True) | 8 parser.add_argument('-i', dest = 'videoFilename', help = 'name of the video file', required = True) |
9 | 9 |
10 args = parser.parse_args() | 10 args = parser.parse_args() |
11 | 11 |
12 videoProperties = cvutils.infoVideo(args.videoFilename) | 12 videoProperties = cvutils.infoVideo(args.videoFilename) |
13 for k,v in videoProperties.iteritems(): | 13 for k,v in videoProperties.items(): |
14 print('Video {}: {}'.format(k, v)) | 14 print('Video {}: {}'.format(k, v)) |