title: Calculate CV2 Homography by points and line
body: <p>I have a list of points in the field (like <code>upper_goal_point</code>/ <code>left_upper_outer_corner</code>, etc.</p>
  <p><a href="https://i.stack.imgur.com/x1YEW.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/x1YEW.jpg" alt="enter image description here" /></a></p>
  <p>I know their corresponding coordinates in destination image - so I can calculate the homography:</p>
  <pre><code>h, status = cv2.findHomography(pts_src, pts_dst)
  </code></pre>
  <p>I also have blue points in the upper corner line (look at image above), <strong>which I only know that their destination's <code>y</code> coordinates are 0</strong> (because they are in the upper line), but I don't know where exactly they lay in that line.</p>
  <p>Can I use those blue points in order to improve the homography?</p>
  <p>P.S.</p>
  <p>You can see that the <code>upper corner</code> line in the homography is not horizontal line, it's diagonal, which of course is not correct:</p>
  <p><a href="https://i.stack.imgur.com/bgzh0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bgzh0.png" alt="enter image description here" /></a></p>