def __init__(self, src, dst):
"""Perspective and Inverse perspective transformer
Args:
src: Source coordinates for perspective transformation
dst: Destination coordinates for perspective transformation
"""
self.src = src
self.dst = dst
self.M = cv2.getPerspectiveTransform(src, dst)
self.M_inv = cv2.getPerspectiveTransform(dst, src)
评论列表
文章目录