def quadFromH(self):
sy, sx = self.img.shape[:2]
# image edges:
objP = np.array([[
[0, 0],
[sx, 0],
[sx, sy],
[0, sy],
]], dtype=np.float32)
return cv2.perspectiveTransform(objP, self._Hinv)