Parcourir la source

fix: video rotation angle 0 and 360 return

micha il y a 1 an
Parent
commit
bf0d1feef8
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3 1
      vpu/vpu_live.py

+ 3 - 1
vpu/vpu_live.py

@@ -332,8 +332,10 @@ class Vopen():
         self.im = self.buffer[int(self.pos)]
 
     def rotateImage(self,image, angle):
+        if angle in [0,360]:
+            return image
         try:
-            print("EE",image.shape)
+            #print("EE",image.shape)
             shape = list(image.shape[1::-1])
             center  = ((shape[0])/2,(shape[1])/2)
             #center  = [(shape[0])/2,(shape[1])/2+35]