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