فهرست منبع

fix: video rotation angle 0 and 360 return

micha 1 سال پیش
والد
کامیت
bf0d1feef8
1فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  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]