Mercurial > hg > nsaunier > traffic-intelligence
comparison scripts/play-video.py @ 1028:cc5cb04b04b0
major update using the trafficintelligence package name and install through pip
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Fri, 15 Jun 2018 11:19:10 -0400 |
| parents | 933670761a57 |
| children |
comparison
equal
deleted
inserted
replaced
| 1027:6129296848d3 | 1028:cc5cb04b04b0 |
|---|---|
| 1 #! /usr/bin/env python3 | 1 #! /usr/bin/env python3 |
| 2 | 2 |
| 3 import sys, argparse | 3 import sys, argparse |
| 4 import cvutils | |
| 5 | 4 |
| 5 from trafficintelligence import cvutils | |
| 6 | 6 |
| 7 parser = argparse.ArgumentParser(description='The program displays the video.') | 7 parser = argparse.ArgumentParser(description='The program displays the video.') |
| 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 parser.add_argument('-f', dest = 'firstFrameNum', help = 'number of first frame number to display', default = 0, type = int) | 9 parser.add_argument('-f', dest = 'firstFrameNum', help = 'number of first frame number to display', default = 0, type = int) |
| 10 parser.add_argument('--fps', dest = 'frameRate', help = 'approximate frame rate to replay', default = -1, type = float) | 10 parser.add_argument('--fps', dest = 'frameRate', help = 'approximate frame rate to replay', default = -1, type = float) |
