Mercurial > hg > nsaunier > traffic-intelligence
comparison python/compute-homography.py @ 237:6774bdce03f1
corrected typo
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Fri, 06 Jul 2012 01:08:38 -0400 |
| parents | eb4525853030 |
| children | be3761a09b20 |
comparison
equal
deleted
inserted
replaced
| 236:eb4525853030 | 237:6774bdce03f1 |
|---|---|
| 50 # H = cvCreateMat(3, 3, CV_64FC1); | 50 # H = cvCreateMat(3, 3, CV_64FC1); |
| 51 | 51 |
| 52 # cvFindHomography(imagePoints, worldPoints, H); | 52 # cvFindHomography(imagePoints, worldPoints, H); |
| 53 | 53 |
| 54 | 54 |
| 55 if '--help' in options.keys() or '-h' in options.keys() or len(args) == 0:: | 55 if '--help' in options.keys() or '-h' in options.keys() or len(args) == 0: |
| 56 print('Usage: {0} --help|-h [--video_frame <video frame filename>] [<point_correspondences.txt>]'.format(sys.argv[0])) | 56 print('Usage: {0} --help|-h [--video_frame <video frame filename>] [<point_correspondences.txt>]'.format(sys.argv[0])) |
| 57 print('''The positional argument should be the name | 57 print('''The positional argument should be the name |
| 58 of a file containing at least 4 non-colinear point coordinates (point correspondences: | 58 of a file containing at least 4 non-colinear point coordinates (point correspondences: |
| 59 - the first two lines are the x and y coordinates in the projected space (usually world space) | 59 - the first two lines are the x and y coordinates in the projected space (usually world space) |
| 60 - the last two lines are the x and y coordinates in the origin space (usually image space) | 60 - the last two lines are the x and y coordinates in the origin space (usually image space) |
