Escで終了します。 関節の座標取得 各関節には下記のような番号が割り振られています。 例えば、右肩(2)を取得したい場合はこうなります。 複数人の取得もありうるため、humansをforで回しています。 humans = e.inference(image, resize_to_default=(w > 0 and h > 0), upsample_size=args.resize_out_ratio) height,width = image.shape[0],image.shape[1] for human in humans: body_part = human.body_parts[2] x = int(body_part.x * width + 0.5) y = int(body_part.y * height + 0.5) debug_info = 'x:' + str(x)
