Browse Source

fix: vpu RotateImage remove debugging info

micha 1 year ago
parent
commit
e06b68c008
1 changed files with 3 additions and 2 deletions
  1. 3 2
      vpu/vpu_live.py

+ 3 - 2
vpu/vpu_live.py

@@ -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) # exception ... if angle 0 no tuple !
+
+            bg_shape = tuple(bg_shape) # exception ... if angle 0 no tuple !!!
             rot_mat = self.cv2.getRotationMatrix2D(center,angle,1.0) 
             #print("wrapAffine:", image, rot_mat, bg_shape) #,flags=self.cv2.INTER_LINEAR)
-            print("wrapAffine:", type(image), type(rot_mat), type(bg_shape) ) #,flags=self.cv2.INTER_LINEAR)
+            #print("wrapAffine:", type(image), type(rot_mat), type(bg_shape) ) #,flags=self.cv2.INTER_LINEAR)
             frame   = self.cv2.warpAffine(image, rot_mat,  bg_shape  ) #,flags=self.cv2.INTER_LINEAR)
             return frame
         except Exception as e: