comparison trafficintelligence/tests/cvutils.txt @ 1030:aafbc0bab925

moved method around to avoid cross-dependencies
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Tue, 19 Jun 2018 10:04:52 -0400
parents cc5cb04b04b0
children
comparison
equal deleted inserted replaced
1029:c6cf75a2ed08 1030:aafbc0bab925
1 >>> import cv2, cvutils
2 >>> from numpy import array, round, ones, dot, linalg, absolute 1 >>> from numpy import array, round, ones, dot, linalg, absolute
2 >>> import cv2
3 >>> from trafficintelligence import cvutils
3 >>> img = cv2.imread("../samples/val-dor-117-111.png") 4 >>> img = cv2.imread("../samples/val-dor-117-111.png")
4 >>> width = img.shape[1] 5 >>> width = img.shape[1]
5 >>> height = img.shape[0] 6 >>> height = img.shape[0]
6 >>> intrinsicCameraMatrix = array([[ 377.42, 0. , 639.12], [ 0. , 378.43, 490.2 ], [ 0. , 0. , 1. ]]) 7 >>> intrinsicCameraMatrix = array([[ 377.42, 0. , 639.12], [ 0. , 378.43, 490.2 ], [ 0. , 0. , 1. ]])
7 >>> distortionCoefficients = array([-0.11759321, 0.0148536, 0.00030756, -0.00020578, -0.00091816])# distortionCoefficients = array([-0.11759321, 0., 0., 0., 0.]) 8 >>> distortionCoefficients = array([-0.11759321, 0.0148536, 0.00030756, -0.00020578, -0.00091816])# distortionCoefficients = array([-0.11759321, 0., 0., 0., 0.])