grmchn Claude commited on
Commit
d4e215e
·
1 Parent(s): d137fc4

fix: 画像ダウンロード時のつま先接続線左右順番を統一修正

Browse files

- export_utils.pyの接続定義をJavaScript側と統一
- [13, 18], [10, 19] に修正(右足首→右つま先、左足首→左つま先)
- issue_042での修正がPython側に反映されていなかった問題を解決
- 画像ダウンロード時につま先線がクロスしていた問題を完全修正

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

Files changed (1) hide show
  1. utils/export_utils.py +2 -2
utils/export_utils.py CHANGED
@@ -117,11 +117,11 @@ def draw_body_on_image(draw, pose_data, canvas_size):
117
  print(f"[DEBUG] ⚠️ people が空のため描画スキップ")
118
  return
119
 
120
- # refs準拠:接続定義
121
  connections = [
122
  [1, 2], [1, 5], [2, 3], [3, 4], [5, 6], [6, 7], [1, 8], [8, 9],
123
  [9, 10], [1, 11], [11, 12], [12, 13], [1, 0], [0, 14], [14, 16],
124
- [0, 15], [15, 17], [10, 18], [13, 19] # つま先まで含む
125
  ]
126
 
127
  # refs準拠:色定義(BGR→RGB変換)
 
117
  print(f"[DEBUG] ⚠️ people が空のため描画スキップ")
118
  return
119
 
120
+ # refs準拠:接続定義(issue_042修正版 - JavaScript側と統一)
121
  connections = [
122
  [1, 2], [1, 5], [2, 3], [3, 4], [5, 6], [6, 7], [1, 8], [8, 9],
123
  [9, 10], [1, 11], [11, 12], [12, 13], [1, 0], [0, 14], [14, 16],
124
+ [0, 15], [15, 17], [13, 18], [10, 19] # 修正:右足首→右つま先、左足首→左つま先
125
  ]
126
 
127
  # refs準拠:色定義(BGR→RGB変換)