Browse Source

fix bug in ai/video z4

张许妍 4 years ago
parent
commit
f420e35f26
1 changed files with 3 additions and 3 deletions
  1. 3 3
      backend_refactor/service/ai/video/inner_analyze.py

+ 3 - 3
backend_refactor/service/ai/video/inner_analyze.py

@@ -55,7 +55,7 @@ def cal_angle(point_a, point_b, point_c):
 def analyse_npy_side_juanfu(data):
     result = {}
 
-    if len(data) != 25:
+    if len(data) == 0:
         #     logging.warning("Data len is not 25, skipping.")
         return False
     data = data[0]
@@ -135,7 +135,7 @@ def analyse_npy_side_gaotaitui(data):
 def analyse_npy_side_shendun(data):
     result = {}
 
-    if len(data) != 25:
+    if len(data) == 0:
         #     logging.warning("Data len is not 25, skipping.")
         return False
     data = data[0]
@@ -179,7 +179,7 @@ def analyse_npy_side_shendun(data):
 
 def analyse_npy_side_jump(data):
     result = {}
-    if len(data) != 25:
+    if len(data) == 0:
         # logging.warning("Data len is not 25, skipping.")
         return False