comparison scripts/rescale-homography.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
4 4
5 import matplotlib.pyplot as plt 5 import matplotlib.pyplot as plt
6 import numpy as np 6 import numpy as np
7 import cv2 7 import cv2
8 8
9 import cvutils 9 from trafficintelligence import cvutils, utils
10 import utils
11 10
12 if len(sys.argv) < 4: 11 if len(sys.argv) < 4:
13 print('Usage: {} homography_filename original_size new_size (size can be width or height)'.format(sys.argv[0])) 12 print('Usage: {} homography_filename original_size new_size (size can be width or height)'.format(sys.argv[0]))
14 sys.exit() 13 sys.exit()
15 14