Sub topic 2
Task Formulations: Single vs Multi-Person, 2D vs 3D
This chapter assumes basic Python and NumPy, familiarity with convolutional neural networks and image classification, and a basic understanding of object detection, bounding boxes, training loss, and evaluation metrics.
Pose estimation predicts named body landmarks, called keypoints, from images or video. A task formulation specifies how many people the model should handle and which coordinates it should predict. These choices affect the model design, training data, speed, and possible errors.
Single-person and multi-person pose estimation
A single-person model receives an image that contains one person, or a cropped bounding box containing one person. It predicts that person's keypoints. This setup is simpler because the model does not need to decide which joints belong together.
A multi-person model receives a full image and predicts a pose for every visible person. It must solve two problems:
- Find the keypoints.
- Group each person's keypoints into a separate skeleton.
For example, if an image contains three people and 17 keypoints are used for each person, the output contains up to 51 keypoint locations, grouped into three poses.
| Formulation | Typical input | Main challenge | Common advantage |
|---|---|---|---|
| Single-person | Person crop | Handling crop errors and unusual poses | Simpler and often more accurate |
| Multi-person | Full image | Detection and identity grouping | Produces all poses in one image |
| 2D | Image coordinates | Depth is unknown | Fast and widely supported |
| 3D | Image coordinates plus depth | Inferring hidden depth | Enables spatial and motion analysis |
2D versus 3D pose
A 2D pose represents each keypoint with image coordinates (x, y). The coordinates usually use pixels, with the origin at the top-left corner. A 2D pose can describe joint angles or screen positions, but it cannot reliably tell whether a hand is close to the camera or far behind the body.
A 3D pose adds a depth coordinate, often written (x, y, z). The meaning of z depends on the system. It may be relative depth from the camera, coordinates in a camera-centered system, or positions in a world coordinate system.
A single image does not contain enough information to determine true 3D structure in every case. This is called depth ambiguity. A model may estimate likely depth from learned body proportions and visual cues, but the estimate can fail when limbs overlap or the camera viewpoint is unusual. Multiple cameras, depth sensors, or video can provide stronger evidence.
How the choices affect the pipeline
A common multi-person design is top-down estimation. First, an object detector finds each person. Then a single-person pose model runs on every person crop. This approach is usually accurate, but its cost grows with the number of detected people. Errors from the detector also affect the pose model.
A bottom-up design detects all body keypoints first and then groups them into people. Its cost is less dependent on the number of people, but grouping becomes difficult in crowds or when limbs overlap.
Some single-stage models predict person locations and keypoints together. They can be fast and convenient, but their accuracy and output format depend strongly on the model architecture.
Exercise
You need elbow angles for every person in a crowded camera view, but you do not need physical distances from the camera. Which formulation is a reasonable starting point, and why?
Show answer
Use multi-person 2D pose estimation. It predicts a separate skeleton for each person without the added uncertainty and cost of 3D depth estimation. A top-down model may be accurate, while a bottom-up or single-stage model may scale better in a dense crowd.