comparison scripts/undistort-video.py @ 1090:97247e44b827

module import bug corrected
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Tue, 22 Jan 2019 09:55:13 -0500
parents acb4f6f6545d
children b684135d817f
comparison
equal deleted inserted replaced
1089:10205bd0e0b7 1090:97247e44b827
3 import sys, argparse 3 import sys, argparse
4 4
5 import numpy as np 5 import numpy as np
6 import cv2 6 import cv2
7 7
8 import cvutils 8 from trafficintelligence import cvutils
9 from math import ceil, log10 9 from math import ceil, log10
10 from pathlib import Path 10 from pathlib import Path
11 11
12 parser = argparse.ArgumentParser(description='''The program converts a video into a series of images corrected for distortion. One can then use mencoder to generate a movie, eg 12 parser = argparse.ArgumentParser(description='''The program converts a video into a series of images corrected for distortion. One can then use mencoder to generate a movie, eg
13 $ mencoder 'mf://./*.png' -mf fps=[framerate]:type=png -ovc xvid -xvidencopts bitrate=[bitrate] -nosound -o [output.avi]''') 13 $ mencoder 'mf://./*.png' -mf fps=[framerate]:type=png -ovc xvid -xvidencopts bitrate=[bitrate] -nosound -o [output.avi]''')