COCO Pose Explained: Keypoint Estimation for Driver-Facing AR

COCO keypoints are a 17-point 2D image convention. Here is the format and the confidence, smoothing and calibration a driver-facing AR overlay needs on…

COCO Pose Explained: Keypoint Estimation for Driver-Facing AR
Written by TechnoLynx Published on 11 Jul 2026

COCO keypoints are 17 body landmarks, running in a fixed order from the nose to the right ankle. Each person’s annotation stores them as one flat list of (x, y, v) triplets, 51 numbers in all, and the v flag records whether each point was labelled and whether it was visible. In short, “COCO pose” is a 17-keypoint convention for locating each keypoint in a single RGB image. A COCO-trained model gives you where a body part is in a frame, not its temporal stability, camera calibration or the confidence handling a driver-facing system needs.

That gap is what this explainer is about. Our automotive AR overview places head-up displays and driver-assist overlays where safety certification, sensor fusion and a sub-20 ms latency design threshold meet. A keypoint model joins that stack as one sensor among several, and it has to fit inside the same budget as everything else.

What Are the 17 COCO Keypoints, and How Is the Format Structured?

The 17 COCO keypoint types are the nose, eyes, ears, shoulders, elbows, wrists, hips, knees and ankles, and each one is stored as an (x, y, visibility) triplet. In array order they group like this:

Indices Keypoints
0-4 (head) nose, left eye, right eye, left ear, right ear
5-10 (arms) left shoulder, right shoulder, left elbow, right elbow, left wrist, right wrist
11-16 (legs) left hip, right hip, left knee, right knee, left ankle, right ankle

The third value of each triplet is the visibility flag:

v Meaning Coordinates
0 Not labelled x and y are 0; the point was never annotated
1 Labelled, not visible Has coordinates but is occluded, such as a hip under a coat
2 Labelled and visible Annotated and visible in the image

The annotation’s num_keypoints field counts only the labelled points, meaning those with v > 0. Keep in mind that v belongs to the ground-truth annotation. A model outputs a confidence score instead, and thresholding that score as visibility introduces a bias (more on that below).

Two more details of the format cause trouble during integration. The skeleton, meaning the list of limbs drawn between keypoints, is 19 pairs of keypoint indices counted from 1. Code that indexes a 0-based keypoint array with those pairs will draw every bone one joint out. “Left” always means the subject’s left, which appears on the viewer’s right in a front-facing image. In our view, any cabin pipeline that mirrors the camera feed for display needs to swap left and right labels explicitly, or it will report the wrong wrist on the wheel.

On scale: the COCO 2017 keypoints challenge covered 58,945 images, 156,165 annotated people and 1,710,498 keypoints. Those images average about two annotated people each, with up to 13 in one image. This was a multi-person dataset of everyday scenes, which is a long way from one driver framed by a steering wheel. The JSON layout became the standard interchange format for 2D pose, and libraries from pycocotools to OpenPose, Detectron2, MMPose and YOLO read or write it. The bounding-box side of the annotation format is covered in our explainer on COCO labels and the bounding-box annotation format.

How Does COCO Pose Work, and What Does It Mean in Practice?

A pose model localises a person’s keypoints, such as the nose, shoulders and wrists, from a single RGB image. Models do this in one of two ways. Top-down methods first find each person with a separate detector and then run a single-person pose estimator on each box. Bottom-up methods predict every joint in the image first and then group the joints into people. Bottom-up methods use information from the whole scene, but they struggle when people appear at very different scales. OpenPose is a bottom-up system that uses Part Affinity Fields to associate body parts with individuals.

Heatmap-based models produce one heatmap per keypoint. The keypoint’s position is the argmax of its heatmap, and its confidence is the maximum value. A minimum confidence threshold is then applied to that maximum to separate real predictions from noise.

COCO’s standardized evaluation uses Object Keypoint Similarity (OKS). For each keypoint, OKS takes the distance between prediction and ground truth, scales it by the person’s area and a per-keypoint constant, and passes it through an exponential. Only keypoints whose ground truth is labelled are counted. COCO AP is then averaged over OKS thresholds from 0.50 to 0.95 in steps of 0.05. How that threshold sweep behaves as a detection metric is the subject of our page on the [email protected]:0.95 detection metric.

Two consequences matter in practice. First, mAP depends on the model’s confidences ranking predictions in the same order as their OKS, so the confidence score is part of the benchmark result, not an afterthought. Second, OKS ignores false positives on keypoints that were never annotated, and COCO’s metric scores precision and recall per person rather than per keypoint. A high COCO AP therefore tells you little about whether a model knows a wrist is hidden behind the steering wheel.

How Does COCO Differ from MPII or OpenPose’s 25-Point Model?

Pose datasets do not all use the same keypoints. Some mark the head only with the top of the head and the base of the neck, while COCO uses finer points: eyes, nose and ears. The main conventions compare as follows:

Convention Points Coverage Visibility or confidence
COCO 17 Baseline: face points, limbs, no neck, mid-hip or feet Visibility label in annotations
MPII – Single-person benchmark with joint positions, 3D torso and head orientation, per-joint occlusion labels, activity labels and adjacent video frames Evaluated with PCK
OpenPose BODY_25 25 COCO plus foot points, with Neck and MidHip added Confidence score per point
COCO-WholeBody 133 23 body and feet, 68 face, 42 hand landmarks Scored with mAP
OpenPose full output 137 Body, foot, hand and face combined Confidence score

In BODY_25, index 1 is Neck and index 2 is RShoulder, while in COCO index 1 is the left eye. Swapping between these models therefore needs an explicit index mapping layer.

MPII’s per-joint occlusion labels and adjacent video frames make it closer in spirit to what a cabin system cares about than COCO’s still photographs. Dense formats bring their own costs. Across estimators, hand landmarks show substantially higher jitter than full-body or face keypoints. For driver state monitoring, Euro NCAP’s 2023 direct monitoring requirements are based on eye gaze and head posture. On that basis, dense face coverage serves those monitoring requirements directly.

What Limits a COCO-Trained 2D Pose Model Inside a Moving Cabin?

Inside a cabin, a 2D pose model meets difficulties that general datasets under-represent. The DriPE dataset paper (ICCV workshops, 2021) lists the main ones:

  • Viewing angle and occlusion. The camera’s position gives a strong side view, so the body is hidden by itself and by the dashboard and wheel, and the side away from the camera becomes harder to detect.
  • Illumination. Strong light can make the network miss parts that are fully visible, and outside light can visually split the upper body into two halves.
  • Low contrast. Depending on the colour of the driver’s clothes, the car interior can make body parts such as a forearm hard to pick out.

A 2026 study on in-vehicle 3D pose reports the same occlusion problem. The steering wheel, seat backrests and centre console hide the driver’s trunk and lower body, and public pose datasets do not reflect real driving postures and backgrounds. Ankles show the problem most clearly: in DriPE, models scored very low precision and recall on ankles, because the dashboard almost completely hides the lower limbs.

The more serious finding concerns confidence. On DriPE, networks were overconfident and could not tell when a keypoint was absent from the image. For head keypoints, false positives outnumbered true positives almost two to one, partly because COCO’s annotation policy does not label occluded head keypoints. COCO’s annotation policy gives a model little training signal for reporting “not there” on the very head points a monitoring system leans on. The DriPE authors also found that fine-tuning existing methods on their dataset was not enough on its own to solve driver monitoring.

Generalising across vehicles is a separate question. The DFKI SVIRO benchmark trains on one car and evaluates COCO AP on cabins the model has not seen, which measures how a model holds up in vehicles it has not seen. Euro NCAP’s assessment also repeats scenarios with occlusions such as caps, hats, sunglasses and face masks, and it splits them into cases the system must detect and cases where it must tell the driver its performance has degraded. If your pipeline cannot report when its own confidence has dropped, it cannot meet the second category.

What Extra Work Do COCO Keypoints Need Before They Drive an Overlay?

Before COCO keypoints can drive a driver-facing overlay, three layers have to be added: confidence handling you can actually trust, temporal smoothing with a known lag, and camera calibration that ties pixels to the cabin, all within the latency budget.

Keypoint Confidence Is a Heuristic, Not a Probability

According to a 2023 arXiv study on calibrating human pose estimation, most 2D pose frameworks set keypoint confidence by a heuristic such as the heatmap maximum, and existing methods are poorly calibrated. The same study shows how much that matters. For one baseline model, randomising the confidence dropped mAP from 72.4 to 67.5, while setting the confidence to the true OKS raised it to 75.6. The authors’ fix, a calibration branch called CCNet, sits on the frozen model’s features and predicts both a calibrated confidence and a visibility value. Training it is cheap: one fully connected layer, usually trained for a couple of epochs. It also removes the bias that comes from treating thresholded confidence as visibility.

The 2026 in-vehicle study used a 0.65 confidence threshold, with a defined fallback to another model’s result when that threshold is missed. Set any such threshold against validation footage from the target cabin, and decide in advance what the overlay does when a keypoint drops below it: hold the last position, fade out, or hand over to another signal.

Smoothing Trades Jitter for Lag, so Pick the Lag

Every low-pass filter used for pose (moving averages, Savitzky-Golay, Gaussian filters, the One Euro filter) faces a trade-off between jitter and lag. Sudden jitters are easy to remove with low-pass filters. Long jitter that lasts many frames gets entangled with genuine position error and is much harder to remove. The One Euro filter adapts its smoothing to how fast the signal is changing, because people notice jitter more at low speeds and lag more at high speeds. It has two parameters: lower the minimum cutoff to cut jitter at slow speeds, and raise the speed coefficient to cut lag.

Learned smoothing goes further, but at a price. Zeng et al. (2022) report that SmoothNet reduced acceleration error by 86.88% and position error by 8.82% compared with the raw pose output. They found a 64-frame window balanced smoothness against precision. They also note that a sliding-window model needs future frames, which limits its use in real-time systems. For a live overlay, a smoother that uses future frames adds latency equal to however many frames it looks ahead.

The 2026 in-vehicle system combined a 30-frame sliding window with an exponential moving average (smoothing factor 0.8), running at 27-28 FPS. At those rates, 30 frames covers about 1.1 seconds (30 / 28 ≈ 1.07 s, 30 / 27 ≈ 1.11 s). That suits a behaviour classifier whose first intervention level only starts after 5 seconds of dangerous posture. For an overlay that has to stay locked to a moving body, a lag of that size is useless.

Following people between frames also needs consistent identities. Assigning those identities is the job of multiple object tracking, which is outside the scope of this page.

Camera Calibration and the Latency Budget

Calibration relates a keypoint’s pixels to real-world units. Camera calibration uses the camera matrix (focal lengths fx and fy, optical centre cx and cy) and distortion coefficients. Together they relate the camera’s pixels to real-world units such as millimetres. The distortion coefficients stay the same at any resolution, but the camera matrix must be rescaled from the resolution it was calibrated at. If a cabin pipeline downscales frames for inference and never rescales the matrix, every back-projected keypoint will be wrong. Placing the camera relative to the vehicle (extrinsics) is a further step, covered in our piece on how extrinsic calibration feeds camera pose.

Then comes the latency budget. The parent overlay stack works to a sub-20 ms design threshold. Even the lean depth-based model in the 2026 study, a different sensor and model from a COCO RGB pipeline, takes 37.5 ms per sample on an automotive embedded platform, above that design threshold. A model that performs in a training environment is a different artefact from one that performs on the deployment target, and the gap between them is engineering work.

Pre-Integration Checklist for an In-Cabin Keypoint Pipeline

  1. Keypoint index mapping is explicit, and the skeleton’s 1-based pairs are converted to your array convention.
  2. Left and right labels are checked against any image mirroring in the display path.
  3. Confidence is calibrated or validated against OKS on footage from the target cabin, not just COCO val.
  4. Every keypoint has a defined behaviour when it drops below threshold.
  5. The smoother’s lag in milliseconds is measured and fits the overlay’s budget, with no use of future frames on the live path.
  6. Camera intrinsics are rescaled to the inference resolution, and extrinsics are recorded per vehicle.
  7. Accuracy is tested on cabins the model was not trained on.
  8. Detection works under the occlusions the assessment protocol uses (caps, hats, sunglasses, masks), and the system reports when performance degrades.

Where Does COCO Pose Fit in an Automotive Perception Pipeline, and Where Should 3D Pose or Depth Take Over?

COCO pose fits where an image-space position of the upper body is enough and a lost keypoint can be tolerated. When the system needs 3D posture, must work in poor light, or must handle heavy occlusion, depth sensing or 3D pose should take over. Driver posture is a safety signal, not just a display input: leaning forward, sideways or too far back can weaken seat belt effectiveness and affect airbag deployment.

Need COCO-style 2D keypoints Depth or 3D pose
Upper-body position for a coarse display cue Fits, with calibrated confidence and smoothing More than the task needs
Gaze and head posture for monitoring Euro NCAP’s 2023 requirements rest on eye gaze and head posture Useful where head orientation in 3D is required
Torso lean relevant to restraints Lacks the third dimension Fits: depth-based 3D pose of 16 upper-body joints
Strong sun, night, low contrast Sensitive to lighting ToF is resilient to bright light and works in low light
Heavy occlusion by wheel and console Overconfident about absent points Dual-view depth fusion with confidence weighting reduces occlusion
Privacy of cabin imagery RGB carries identifiable texture Depth maps carry no identifiable texture

The depth route has measured results behind it. The 2026 study reports 96.02% accuracy in 3D pose estimation and 98.0% in behaviour recognition, at 1.49 GFLOPs and 27-28 FPS on an automotive embedded platform. Its two depth cameras are synchronised to within 10 ms.

Lifting 2D keypoints to 3D is an alternative to depth sensing. Martinez et al. (2017) found that lifting ground-truth 2D joints to 3D can be done with a remarkably low error rate, and that much of the remaining error in 3D systems comes from visual analysis. For a cabin, we read that result the other way round. If the 2D detector is wrong about a wrist behind the wheel, the lifting step inherits the mistake and cannot fix it. What a COCO keypoint output actually proves during validation is covered in COCO pose in automotive perception validation.

Much of the work in this decision happens around the model: confidence calibration, measured smoothing lag, calibration at the inference resolution and latency on the in-vehicle target. That is the engineering TechnoLynx’s computer vision R&D practice takes on for pose pipelines.

Two Consumers, Two Budgets

The decision to settle early is which consumer the keypoints are for. A monitoring classifier can smooth over a second of frames and act after several seconds, as the 2026 cabin system does. An overlay locked to the driver or the road frame has a budget in milliseconds. The same COCO model, fed into those two consumers, needs opposite smoothing settings, different confidence policies and possibly a different sensor. Settle which one you are building before choosing a model.