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