# HG changeset patch # User Nicolas Saunier # Date 1423836629 18000 # Node ID 9202628a41305b3126a9d207d055bae026810160 # Parent bac66bd536c51c533d1a6ef4a189e787e79df928 saving image when playing video diff -r bac66bd536c5 -r 9202628a4130 python/cvutils.py --- a/python/cvutils.py Fri Jan 09 00:14:13 2015 -0500 +++ b/python/cvutils.py Fri Feb 13 09:10:29 2015 -0500 @@ -144,6 +144,8 @@ cv2.putText(img, text, (10,50), cv2.cv.CV_FONT_HERSHEY_PLAIN, 1, cvRed) cvImshow(windowName, img, rescale) key = cv2.waitKey(wait) + if saveKey(key): + cv2.imwrite('image-{}.png'.format(frameNum), img) cv2.destroyAllWindows() else: print('Video capture for {} failed'.format(filename)) diff -r bac66bd536c5 -r 9202628a4130 tracking.cfg --- a/tracking.cfg Fri Jan 09 00:14:13 2015 -0500 +++ b/tracking.cfg Fri Feb 13 09:10:29 2015 -0500 @@ -4,7 +4,7 @@ database-filename = laurier.sqlite # filename of the homography matrix homography-filename = laurier-homography.txt -# filename of the homography matrix +# filename of the camera intrinsic matrix intrinsic-camera-filename = intrinsic-camera.txt # -0.11759321 0.0148536 0.00030756 -0.00020578 -0.00091816 distortion-coefficients = -0.11759321