def correctPoints(self, pts):
if not self._homography_is_fixed:
self._homography = None
h = self._homography
if pts.ndim == 2:
pts = pts.reshape(1, *pts.shape)
return cv2.perspectiveTransform(pts.astype(np.float32), h)
评论列表
文章目录