Mercurial Hosting > traffic-intelligence
comparison scripts/compute-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 | 671426ce0f3e |
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, utils, storage | 9 from trafficintelligence import cvutils, utils, storage |
10 | 10 |
11 # TODO add option to use RANSAC or other robust homography estimation method? | 11 # TODO add option to use RANSAC or other robust homography estimation method? |
12 | 12 |
13 parser = argparse.ArgumentParser(description='The program computes the homography matrix from at least 4 non-colinear point correspondences inputed in the same order in a video frame and a aerial photo/ground map, or from the list of corresponding points in the two planes.', epilog = '''The point correspondence file contains at least 4 non-colinear point coordinates | 13 parser = argparse.ArgumentParser(description='The program computes the homography matrix from at least 4 non-colinear point correspondences inputed in the same order in a video frame and a aerial photo/ground map, or from the list of corresponding points in the two planes.', epilog = '''The point correspondence file contains at least 4 non-colinear point coordinates |
14 with the following format: | 14 with the following format: |