|
@@ -377,11 +377,11 @@ class Vopen():
|
|
|
|
|
|
center = (shape[0]/2+delta_x,shape[1]/2+delta_y)
|
|
center = (shape[0]/2+delta_x,shape[1]/2+delta_y)
|
|
image = self.moveImage(image,x=delta_x,y=delta_y,shape=bg_shape)
|
|
image = self.moveImage(image,x=delta_x,y=delta_y,shape=bg_shape)
|
|
-
|
|
+ bg_shape = tuple(bg_shape)
|
|
rot_mat = self.cv2.getRotationMatrix2D(center,angle,1.0)
|
|
rot_mat = self.cv2.getRotationMatrix2D(center,angle,1.0)
|
|
|
|
|
|
print("wrapAffine:", type(image), type(rot_mat), type(bg_shape) )
|
|
print("wrapAffine:", type(image), type(rot_mat), type(bg_shape) )
|
|
- frame = self.cv2.warpAffine(image, rot_mat, bg_shape)
|
|
+ frame = self.cv2.warpAffine(image, rot_mat, bg_shape )
|
|
return frame
|
|
return frame
|
|
except Exception as e:
|
|
except Exception as e:
|
|
raise(e)
|
|
raise(e)
|