feat 更新响应模板

fix
This commit is contained in:
zhouchengrong
2024-06-17 10:45:45 +08:00
parent b3081359b7
commit 756894baff
5 changed files with 326 additions and 9 deletions

View File

@@ -25,7 +25,7 @@ class Scaling(object):
#
# distance_bdy = math.sqrt((int(result['body_point_test'][result['keypoint'] + '_left'][0]) - int(result['body_point_test'][result['keypoint'] + '_right'][0])) ** 2 + 1)
if distance_clo == 0:
result['scale'] = 10
result['scale'] = 1
else:
result['scale'] = distance_bdy / distance_clo
elif result['keypoint'] == 'toe':