IBM / MAX-Human-Pose-Estimator

Detect humans in an image and estimate the pose for each person

Home Page:https://developer.ibm.com/exchanges/models/all/max-human-pose-estimator/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

include body parts detail in response

vabarbosa opened this issue · comments

commented

currently the /predict API returns only line segments, but it would be more useful if it also included position and detail for the various body parts detected (i.e., part_id, score, x, y, part_name). for example:

{
  "status": "ok",
  "predictions": [
    {
      "human_id": 0,
      "pose_lines": [
        {
          "line": [
            308,
            417,
            479,
            359
          ]
        }
      ],
      "body_parts": [
        {
          "part_id": 5,
          "part_name": "LShoulder",
          "score": 0.1944918930530548,
          "x": 479,
          "y": 359
        }
      ]
    }
  ]
}