Browse Source

add: standing points

amanda 3 years ago
parent
commit
a0ab84dd91
1 changed files with 2 additions and 2 deletions
  1. 2 2
      backend_refactor/service/photo_analyzer.py

+ 2 - 2
backend_refactor/service/photo_analyzer.py

@@ -48,8 +48,8 @@ class StandingPhotoAnalyzer(BasePhotoAnalyzer):
                 cv2.imwrite(UPLOAD_DIR + 'result/{}.result.jpg'.format(i), canvas)
                 photos.append(FILE_URL + '{}.result.jpg'.format(i))
 
-            callback("FINISHED", result={"data": {"front": {"file": photos[0]}, "right": {"file": photos[1]},"points":poses},
-                                         "advice": {"front": npys[0], "right": npys[1]}})
+            callback("FINISHED", result={"data": {"front": {"file": photos[0]}, "right": {"file": photos[1]}},
+                                         "advice": {"front": npys[0], "right": npys[1]},"points":poses},)
         except Exception as e:
             callback("ERROR", error=e)
             raise e