Mercurial > hg > nsaunier > traffic-intelligence
comparison scripts/play-video.py @ 636:3058e00887bc
removed all issues because of tests with None, using is instead of == or !=
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Tue, 24 Mar 2015 18:11:28 +0100 |
| parents | 1917db662aa7 |
| children | 51269511229b |
comparison
equal
deleted
inserted
replaced
| 635:6ae68383071e | 636:3058e00887bc |
|---|---|
| 11 parser.add_argument('-r', dest = 'rescale', help = 'rescaling factor for the displayed image', default = 1., type = float) | 11 parser.add_argument('-r', dest = 'rescale', help = 'rescaling factor for the displayed image', default = 1., type = float) |
| 12 | 12 |
| 13 args = parser.parse_args() | 13 args = parser.parse_args() |
| 14 | 14 |
| 15 firstFrameNum = 0 | 15 firstFrameNum = 0 |
| 16 if args.firstFrameNum != None: | 16 if args.firstFrameNum is not None: |
| 17 firstFrameNum = args.firstFrameNum | 17 firstFrameNum = args.firstFrameNum |
| 18 | 18 |
| 19 frameRate = -1 | 19 frameRate = -1 |
| 20 if args.frameRate != None: | 20 if args.frameRate is not None: |
| 21 frameRate = args.frameRate | 21 frameRate = args.frameRate |
| 22 | 22 |
| 23 cvutils.playVideo(args.videoFilename, firstFrameNum, frameRate, rescale = args.rescale) | 23 cvutils.playVideo(args.videoFilename, firstFrameNum, frameRate, rescale = args.rescale) |
