H = cv.getPerspectiveTransform(impts_undist, modelpts) In each pair, one point is defined in the one perspective (side of the field), and the other point is defined in the other perspective (top-down/"model"). Perspective transform requires at least four pairs of points. Now you have image and points without lens distortion.
0 Comments
Leave a Reply. |