What Is a Bounding Box? What a Pedestrian Detection Asserts

What is a bounding box? A detector's claim of extent, class and confidence. Why a human box and its score cannot stand alone as ASIL D perception evidence.

What Is a Bounding Box? What a Pedestrian Detection Asserts
Written by TechnoLynx Published on 11 Jul 2026

In object detection, a bounding box is the detector’s claim about one object: a rectangle saying where the object sits in the image, a class label such as “person”, and a confidence score. When a detector draws a box around a person, it is saying where that person is: the rectangle delineates their location. It says nothing about the person’s shape or pose, or how certain each edge is. That is the precise answer to “what is a bounding box”, and it is why a box and its score cannot serve as ASIL D perception evidence on their own: a detection becomes evidence only when it is tied to the safety requirement it exercises and to the rule that judged it correct.

The “human” box that a doorbell or security camera draws over its video is the same kind of output: a person-class detection. The difference in a vehicle is what rides on that box being right.

Three Claims in One Detection: Extent, Class and Score

Each detection combines a box, a class label and a score, and the class can be right while the box is wrong. In a 2021 remote-sensing study published in IEEE Transactions on Geoscience and Remote Sensing, for example, the class labels were correct while some boxes split in two or picked up small artefact boxes.

The first assertion is extent. In the classic definition, a box is the tightest axis-aligned rectangle around an object’s shape, so each of its four edges touches the object. The second is class. YOLO (Redmon et al., CVPR 2016) predicts class probabilities conditioned on the grid cell containing an object, so the “person” label is a conditional statement rather than a standalone fact. The third is the score. YOLO defines confidence as Pr(Object) multiplied by the IoU between the predicted box and the ground truth, so the score combines “something is here” with “this box fits it”. Faster R-CNN’s region proposal network attaches an objectness score instead, estimating object versus not-object for each proposal.

The upshot is that a score of 0.8 from two different detectors is not the same claim. What the number means depends on how the architecture defined it and what it was trained against. Our explainer on how machine learning perception works in an autonomous vehicle covers how a network produces these outputs. This page is about what they claim.

Object Detection Bounding Box Coordinates: The Formats You Will Meet

The same rectangle can be written in several formats, and the numbers cannot be read without knowing which.

Format Fields Where it appears
xyxy x1, y1 top-left; x2, y2 bottom-right torchvision’s expected format; KITTI labels as [xmin, ymin, xmax, ymax]
xywh top-left corner, width, height torchvision; COCO’s bbox field as [x, y, width, height]
cxcywh centre, width, height torchvision
YOLO text label class, x_center, y_center, width, height, normalised 0 to 1 Ultralytics; pixel values are divided by image width and height
xywhr / cxcywhr corner or centre, width, height, rotation angle counter-clockwise in degrees torchvision rotated boxes
xyxyxyxy four corner points torchvision; YOLO OBB labels as normalised corners

Fields beyond the box matter too. A KITTI label can carry an occlusion state from 0 (fully visible) to 3 (unknown), yet NVIDIA’s TAO Toolkit documentation says detection training only needs the class and box fields filled in, and the rest may be set to 0.

When a Box Counts as Correct: IoU and the Matching Rule

A predicted box counts as a detection when its intersection over union (IoU) with the ground-truth box exceeds a predefined threshold, such as 0.5. Below that, the object counts as missed. Since MS-COCO, average precision is commonly averaged over IoU thresholds from 0.5 to 0.95 to reward tighter localisation. Training uses separate thresholds: Faster R-CNN labels an anchor positive above 0.7 IoU with a ground-truth box and negative below 0.3. Detections with no match count as false positives, and ground-truth boxes with no match count as false negatives.

At 0.5 a loosely placed box passes, while at 0.95 the detector needs near-exact localisation to score a true positive. Dollár et al. (TPAMI 2012) found pedestrian results insensitive to the threshold up to about 0.6, after which every detector they evaluated degraded rapidly. For small objects, IoU can stop working altogether. nuScenes (Caesar et al., CVPR 2020) matches detections by a 2 m centre distance on the ground plane, because a pedestrian detected with a small translation error can get an IoU of zero.

A pedestrian detection rate quoted without its matching rule is a number a safety reviewer cannot interpret.

Types of Bounding Boxes, and the One That Matters Most for People

Standard object detection labels ground truth with axis-aligned boxes. Oriented boxes rotate to fit objects that do not line up with the image axes, which is why they are common in aerial and satellite imagery. Ultralytics YOLO processes oriented boxes internally as centre, width, height and rotation, the xywhr format. The trade-offs of a rotating bounding box vs a standard bounding box in driving scenes have their own page.

A 3D cuboid extends the box into space. A common parameterisation has seven degrees of freedom (x, y, z, length, width, height, yaw), extended to nine when pitch and roll matter. nuScenes annotates each object with such a cuboid, plus attributes for visibility, activity and pose. Axis-aligned IoU underweights orientation, so a cuboid can score a high IoU while pointing the wrong way. For a pedestrian near the kerb, heading is half the point, so overlap alone is the wrong test.

For people, annotators must choose between full extent and visible extent. Caltech Pedestrian annotators drew one box for the full extent of each pedestrian, which for occluded pedestrians meant estimating where the hidden parts were, and a second box for the visible region. CrowdHuman-style protocols add a head box to the visible-region and full-body boxes. The Caltech evaluation always matched on the full box, even for partly occluded pedestrians. So a full-extent ground-truth box partly records an annotator’s estimate of where the hidden legs are, and your requirement has to say which of the two boxes it means.

Why Can’t a High Confidence Score Vouch for a Pedestrian Detection?

The score is a learned estimate, not a measured property, and the research on detectors shows it goes wrong in ways that matter for safety. Hall et al. (WACV 2020) found conventional object detectors spatially overconfident. The “Object Detection in 20 Years” survey (2019) notes that conventional box regression gives no confidence for localisation at all. Küppers et al. (CVPRW 2020) argued that unbiased confidence is crucial for safety-critical applications, and calibrated detector confidence with respect to image location and box scale. In other words, how trustworthy a score is can vary across the frame and across object sizes.

The more serious problem is silent failure: confident outputs that are wrong and raise no crash, exception or error code. In the “Taming Silent Failures” framework paper, a network failed to detect a pedestrian and instead labelled it as a different object, such as a statue, with high confidence. The authors’ rule on detection confidence and consistency did not cover that case, and they record it as a gap in the specification. An earlier analysis (2017) notes that even a representative training set may under-represent safety-critical cases, because those cases are rarer.

A score threshold is a sensible runtime filter. As a safety argument, it is weak.

How Annotation Quality Caps What a Human Box Can Mean

A model’s boxes are learned from human boxes, so the precision of the ground truth limits the precision any detector can show against it. Humans draw boxes by implicitly segmenting the shape, and annotators do not fully agree with each other. The Rapid Object Annotation paper cites roughly 0.88 IoU, from Papadopoulos et al. (2017), as the approximate limit of average inter-annotator agreement on Pascal VOC, and says average IoU above that should not be expected. The upper end of the 0.5 to 0.95 IoU range used in COCO-style averaging lies above that 0.88 limit.

Noise in the ground truth degrades detection performance. The DISCO paper (2023) reports that noisy bounding boxes corrupt the supervision signal and weaken localisation precision. Its authors also note that classification accuracy is less affected, though noisy boxes still bias category features. They note that box ambiguities are often caused by occlusion or unclear boundaries. Dollár et al. found that Caltech annotators had difficulty identifying pedestrians reliably below 30 pixels in height. They also flagged variability in ground-truth box width as distorting evaluation and proposed standardising aspect ratio.

For spatial labels, agreement is measured geometrically as IoU between annotators’ boxes. We would put that agreement figure next to any model metric in a validation pack. We would also version the labelling protocol with the dataset: full or visible box, minimum pedestrian height, occlusion convention.

When Is a Bounding Box Too Little to Describe a Person?

A box says where an object is. A segmentation mask gives its exact shape pixel by pixel, and keypoints capture specific points and the structure between them, which for a person means pose. Masks cost more to label than boxes, often by roughly an order of magnitude. Keypoints capture the difference between “a person is here” and “this is what they are doing”. Because the same box can be produced by many different shapes, a box alone cannot tell different outlines apart.

Boxes can also be easier to get right than masks. In a 2020 Mask R-CNN study on road-surface defect classes such as cracks and joints, bounding-box AP and AR were consistently higher than the mask metrics, and masks did worst on elongated, irregularly shaped objects.

Output What it asserts Fits a requirement about
2D box presence and rectangular image extent whether a person is in a region of the image
3D cuboid position, size and heading in space distance, footprint and direction of travel
Segmentation mask exact pixel-level shape boundaries, such as free space or exact overlap with a path
Keypoints joint positions and pose intent, such as stepping off a kerb or turning

The table is our judgement of fit, not a rule. The test is whether the requirement’s wording can be checked against the output at all. If it cannot, the box is too little.

Occlusion, Crowds and Small Pedestrians: Where Human Boxes Break on the Road

In pedestrian data, occlusion is very frequent. In the Caltech Pedestrian Dataset, 70% of pedestrians were occluded in at least one frame. The lower body, especially the feet, was most often hidden, while the head usually stayed visible. A rectangle cannot always describe what is left: Caltech used a 0% occlusion label where a box could not represent the visible region, for example behind a diagonal occluder.

Pedestrian height matters too. Dollár et al. reported that pedestrians 30 to 80 pixels tall were the most numerous and the most relevant in automotive settings, yet the best detectors of the time missed around 80% of them at one false alarm per ten images. Under heavy occlusion (over 35%) or at far scale (under 30 pixels), nearly all pedestrians were missed, even at high false-positive rates. What carries over is the lesson: performance depends on pedestrian height and occlusion band, and an average hides that.

Crowds trip up the post-processing as well as the detector. Greedy non-maximum suppression handles isolated objects well but suppresses harshly in crowded scenes, causing many missed detections (Learning Pairwise Relationship for Multi-object Detection in Crowded Scenes, 2019). The PedHunter authors (2019) describe the opposite error too: proposals between overlapping pedestrians get matched as positives in training and are then predicted with high scores as false positives. Architecture adds its own limits. Each original YOLO grid cell predicts only two boxes and one class, which limits how many nearby objects it can detect. In default YOLOv3, two objects whose centroids are less than 32 pixels apart cannot be told apart.

A 2018 assessment of ISO 26262 for machine learning gives invariance to snow, lighting level, season and clutter as examples of invariants in a classification requirement. The “Taming Silent Failures” paper notes that learned components can degrade under distribution shift, sensor faults or occlusion without tripping conventional diagnostics. A Patsnap overview of ISO 26262 and ISO 21448 draws the boundary like this: a lidar that fails to detect a pedestrian in heavy rain, while working as designed, is a SOTIF performance limitation rather than an ISO 26262 malfunction.

Tracing a Pedestrian Bounding Box to the Safety Requirement It Exercises

ISO 26262 sets rigour by ASIL, with ASIL D the highest. Its safety case documents a traceability path from hazards to safety goals to refined requirements, and then to the verification results showing each requirement is met. The ASIL D traceability matrix from hazard to test to dataset has its own page. The question here is narrower: what has to be true of a single box for it to count as a test result in that chain.

The difficulty starts with the requirement itself. The 2018 ISO 26262 assessment points out that “detect all pedestrians within 10 meters” cannot be completely specified, because no complete set of necessary and sufficient conditions defines a pedestrian. It proposes instead that software safety requirements for ML have two parts: the strongest partial behavioural specification available, and a requirements specification for the training, validation and test data. The same report notes that a detector’s box output can be safety-critical while its classification is not, in which case the two need not be developed to the same rigour. That only works if the evidence keeps the box claim and the class claim separate.

Worked Example: One Requirement, Followed Down to a Box

Assumptions: the requirement wording is the illustrative one from the “Taming Silent Failures” paper, and the steps show the mapping, not a complete safety case.

  1. State the requirement as written. “Any object classified as a pedestrian within a 30-meter forward cone must be consistently detected with a confidence score above 0.8 for at least 90% of frames while it remains in” that cone.
  2. Name the box. Decide whether “detected” means a match against the full-extent box or the visible-region box, and record the labelling protocol that produced it.
  3. Name the matching rule. Fix an IoU threshold, or centre-distance matching, which nuScenes uses because small pedestrian footprints can give zero IoU.
  4. Translate range into image terms. For a given camera, range sets pedestrian pixel height. Caltech found performance degraded catastrophically for smaller pedestrians, so we would break the test set down by height band.
  5. Condition the data on risk. The dataset should cover the input domain and represent higher-risk inputs better, so the error rate is lower where it matters most.
  6. Assess every failure, and every pass. For all ASIL levels, each failure on the test set is serious and must be assessed, and the reason a test passed or failed should be analysed and confirmed.
  7. Record what the rule cannot see. A confidence-and-consistency rule did not catch a pedestrian labelled with high confidence as a statue, and any such monitor is only as good as its specifications.

High-ASIL arguments also need fault tolerance beyond the detector, because training alone is unlikely to bring the error rate low enough. The 2017 ISO 26262 analysis suggests fault tolerance such as redundant pedestrian recognisers using different models and training sets. The “Taming Silent Failures” paper describes ASIL decomposition, in which an AI component serving an ASIL D function is paired with a simpler monitor verifiable to a lower level, such as ASIL B, plus a verified safe state. That monitor observes the classification labels, confidence scores and bounding box coordinates. Each of those fields therefore needs a defined meaning before it can be checked.

TechnoLynx’s computer vision R&D team builds this mapping as an engineering output: evidence an assessor can read, defend and sign against. It is not certification, regulatory sign-off or a promise of audit readiness. What a reviewer looks for in the resulting pack is covered in what validation evidence a safety-critical release reviewer expects. That pack is engineering evidence, and our page on what a perception validation pack is not: it is not a regulatory safety case explains why the distinction matters.

The question a perception team still has to settle is the requirement’s wording, not the detector’s architecture. That means which box (full or visible), which matching rule, which height and occlusion bands, and which failure modes sit outside the rule. Once those are written down, every bounding box in the test set either supports a safety goal or shows where the argument has a gap. Until then, a detection metric is just a number.