Example #1
0
 def unwarp(self, img):
     return cv2.warpPersective(
         img,
         self.Minv,
         (img.shape[1], img.shape[0]),
         flags=cv2.INTER_LINEAR
     )
Example #2
0
 def unwarp(self, img):
     return cv2.warpPersective(
         img,
         self.Minv,
         (self.w, self.h),
         flags=cv2.INTER_LINEAR
     )