Computer vision for autonomous vehicles is the part of the driving stack that turns camera images, usually fused with LiDAR and radar, into a structured description of the scene: which objects are around the car, where they are, how they move, and which parts of the road can be driven on. Motion planning and control act on that description, so an error in it travels downstream. Visual perception works as a pipeline of four stages: sensing, data processing, perception and inference, and output. Treating it as one model with one accuracy score misses that. The difference matters because average metrics count a distant, irrelevant miss the same as one in front of the car, and, as the ACDC authors note, segmentation datasets are either dominated by normal conditions or small.
What Computer Vision for Autonomous Vehicles Is Used For
Every frame, the camera stream answers three questions for the planner: where the obstacles are, whether the road ahead is drivable, and where the lanes run. Object detection helps the vehicle avoid obstacles and follow traffic rules. Drivable-area and lane segmentation feed route planning. Cameras also pick out visual features such as the colour of a traffic signal or a temporary road sign. Waymo, which pairs cameras with lidar and radar, notes this matters especially at longer distances.
Seen from further back, the field covers recognition, reconstruction, motion estimation, tracking and scene understanding, with end-to-end learning as a separate line of work. That is the breakdown used by the survey by Janai, Güney, Behl and Geiger (last revised 2021).
From Camera Frame to Object List: The Four-Stage Pipeline
One survey of vision systems for connected and autonomous vehicles describes the vision system as a four-stage functional pipeline.
| Stage | What happens | What it hands on |
|---|---|---|
| 1. Sensing | Cameras, LiDAR, radar and ultrasonic sensors capture images, point clouds, range-velocity measurements and proximity data | Raw observations per sensor type |
| 2. Data processing | Raw data are filtered, synchronised, calibrated and, where applicable, fused | A consistent multi-sensor representation, often a bird’s-eye view (BEV) |
| 3. Perception and inference | Machine-learning and rule-based algorithms run detection, classification, localisation, tracking and behaviour prediction | Tracked objects with predicted motion |
| 4. Output generation | Results are exported as structured information about the environment | Object lists with positions, velocities and class labels for planning and control |
In many AV systems, stage 3 is separate modules for detection, tracking and prediction. The “How Do We Fail?” stress-testing study validated a LiDAR stack of that kind: PointPillars for detection, AB3DMOT (a Kalman-filter tracker) for multi-object tracking, and CoverNet for trajectory prediction. On the camera side, detectors such as YOLO, SSD and Faster R-CNN do image-based detection. Transformers and Siamese networks handle object matching, tracking and trajectory prediction. Feng et al. note that two-stage detectors like Faster R-CNN tend to be more accurate, while one-stage detectors are faster and easier to optimise. How these models are trained and chained in practice is covered in more depth in our piece on autonomous driving machine learning and the perception pipeline.
Which Perception Tasks Does a Self-Driving Car’s Camera Handle?
Camera frames (RGB and infrared) carry lane detection, traffic-sign and traffic-light recognition, semantic segmentation, and 2D and 3D object detection and classification. Semantic segmentation labels every pixel. Instance-level segmentation also separates individual objects, and panoptic segmentation combines the two. In driving, object detection covers traffic lights, road signs, people and vehicles. Tracking then links detections across frames, so the system knows that the cyclist in this frame is the same one as in the last.
Driving perception tasks share much related information. YOLOP is a good concrete case: one shared encoder feeds three decoders, which handle traffic object detection, drivable-area segmentation and lane detection at the same time. Its authors argue that lanes usually bound the drivable area and that drivable area usually surrounds traffic objects, so sharing features helps. In their tests the multi-task model came close to single-task performance while saving computation time. They report 41 FPS on a single NVIDIA TITAN XP and 23 FPS on a Jetson TX2.
A fault in a shared backbone can show up in three heads at once, so a drop in lane quality may really be a feature problem rather than a lane-head problem. Real-time limits push in the same direction: YOLOP’s authors call precision and real-time speed the two most critical requirements, on hardware where compute is often limited. That tension is the subject of our article on perception latency and safety constraints in autonomous cars.
Cameras, LiDAR and Radar: Why Autonomous Vehicles Fuse Them
Autonomous vehicles fuse cameras, LiDAR and radar to exploit their complementary properties.
| Sensor | Strong at | Weak at |
|---|---|---|
| Camera | Fine texture, colour, signs and signal states | No direct depth; sensitive to lighting and weather; occlusion and large scale variation |
| LiDAR | Accurate depth and 3D shape; works across lighting conditions and is less affected by fog and rain than cameras | Worse than cameras at classification; sparse points at range; degrades in heavy rain, fog or snow |
| Radar | Radial velocity via the Doppler effect; works across lighting and weather | Low resolution makes classifying objects very hard |
Waymo describes its own lidar as capturing objects up to 300 metres away in all lighting conditions, and its imaging radar as tracking speed and trajectory in snow, fog and rain. That is the vendor’s account of its own hardware, not an independent test. Its example of why fusion helps with ambiguity is a useful one: the camera sees a stop sign, and lidar helps work out that it is a reflection in a shop window or an advert on the back of a bus.
Fusion is usually described as early (raw data), mid (features) or late (decisions), and BEVFusion is an example of mid-level fusion that aligns camera and LiDAR features in a shared bird’s-eye view. Early fusion uses the raw data fully but is sensitive to misalignment in space and time caused by calibration error, different sampling rates or sensor defects. It also has to be retrained when a sensor input changes. Early and mid fusion combine sensors before each one has been checked on its own, so a disturbance in one stream can spread into the shared representation. Late fusion keeps each sensor’s decision, which makes cross-checking easier but limits what joint reasoning can add.
Feng et al. report that, among published results on KITTI, many camera-plus-LiDAR methods outperform either sensor alone. They also found no conclusive evidence that any one fusion method beats the others. Our reading is that the fusion level is also an auditability choice. Late fusion leaves separate per-sensor outputs you can compare when something goes wrong, while early fusion can hide which sensor misled the model.
Why Night, Rain, Glare and Rare Road Users Break Camera Perception
Camera performance depends on illumination, weather, occlusion and calibration. Low light, bad weather and distant objects all reduce how reliably objects are classified. Michaelis et al. (2019) found that a range of standard object detectors fall to as low as 30-60% of their original performance on corrupted versions of Pascal, COCO and Cityscapes images.
In a 2019 AAA closed-course test in the United States, four 2019 midsize sedans with automatic emergency braking and pedestrian detection were run through several scenarios. At night, none of them detected or reacted to the adult pedestrian target, and AAA notes that 75% of pedestrian fatalities happen after dark. The best result was 40% of collisions avoided, for an adult crossing in daylight at 20 mph. With a child darting out between parked cars at 20 mph, a collision occurred 89% of the time, and every vehicle hit the adult pedestrian straight after a right turn. These results come from four specific commercial systems on one closed test course. They are not a verdict on any one model or on full autonomy. The perception stack behind those features is covered in our explainer on how ADAS works.
The ACDC authors found that existing semantic segmentation datasets are either dominated by normal conditions or small, so they built 4,006 images split evenly across fog, night, rain and snow. Feng et al. point out that KITTI was recorded in one mid-sized German city, Karlsruhe, only in daytime and sunny weather. Its labels are also heavily weighted towards cars over people and cyclists.
Breitenstein et al., following Bolte et al., define a corner case as “a non-predictable relevant object/class in a relevant location” and rank corner cases by how hard they are to detect:
- Pixel level: overexposure or dead pixels.
- Domain level: a change of location, weather or time of day.
- Object level: a wild animal on the street, or walking aids such as a rollator or crutches.
- Scene level: a tree in the middle of the road, or a crowd at a demonstration.
- Scenario level: a person stepping out from behind a parked trailer, which only shows up over a sequence of frames.
Glare sits at the pixel level. Their examples include overexposure at a tunnel exit, badly adjusted oncoming headlights, and turning into a setting sun. Willers et al. (Bosch) call this the long-tail problem: there are huge numbers of low-probability but safety-critical scenarios, and capturing them by chance would take an impractical number of driving hours. They also note that standard softmax classifiers tend to be overconfident, and with ReLU activations they can give arbitrarily high confidence on data far from the training set. So a model can be wrong on data far from its training set and still report high confidence.
This is why we do not treat object detection and tracking as solved just because open-source models exist. Off-the-shelf models that work in a demo fail on the edge cases, lighting and throughput of real deployments.
Why a High Benchmark Score Doesn’t Show How the Car Will Cope on the Road
A benchmark score averages over a test set. Benchmarks such as COCO and parts of KITTI score object detection with precision, recall and mean average precision (mAP), counting a detection as correct when its bounding box overlaps the labelled box by enough (intersection over union, or IoU).
A benchmark score measures how well a perception model does on average across a test set, and a car’s safety depends on whether it sees the specific objects that could cause a collision. Willers et al. use a pedestrian-detection model behind automatic emergency braking to make the point. A pedestrian missed 500 metres away by a car travelling at 30 km/h counts the same in mAP as one standing directly in front of the bumper. Averaging penalises misses that do not matter, and it also fails to reflect how severe the misses that do matter are.
One proposed safety metric for object perception offers a safety-weighted alternative to mAP. It uses safety distances from the Responsibility-Sensitive Safety (RSS) model to mark which objects are collision-relevant. It measures perception time from the moment an object enters the safety-critical area until it is detected, and it scores collisions by road-user type and impact speed. In the authors’ example, one undetected cyclist drives the safety score to zero, a severity that existing metrics do not capture. In a rural scene where the only missed object is far away and irrelevant, the safety score comes out much better than the standard metrics. The authors are clear that the metric judges perception only, not prediction or planning.
Time is the other blind spot. Frame-based metrics only consider labelled objects in single frames and cannot evaluate tracking. The same paper cites a fatal crash in which the system classified a pedestrian as an unknown object, then a vehicle, then a bicycle. The authors argue that metrics should have paid more attention to how consistent detections and classifications stay over time.
Generalisation research points the same way:
- Recht et al. rebuilt the ImageNet test set following the original process and found accuracy drops of 11% to 14%.
- Geiger et al. (CVPR 2012) found that methods ranking high on established datasets such as Middlebury performed below average once moved to real-world driving data.
- The authors of “Partial success in closing the gap between human and machine vision” note that models now match humans on independent and identically distributed (IID) test data while exploiting shortcuts shared between training and test sets. That is why the field is moving to out-of-distribution (OOD) testing.
- Hendrycks and Dietterich’s ImageNet-C benchmark measures robustness to common corruptions separately from clean accuracy.
- Willers et al. add that consecutive video frames and repeated locations leak correlation between training and test sets, and that tuning against the test set inflates reported performance.
Feng et al. conclude that current metrics focus on accuracy and that robustness metrics still need to be developed. They also argue that, when evaluating multi-modal networks, IoU thresholds should depend on object distance, occlusion and sensor type. We treat production reliability as an engineering discipline of its own, separate from model accuracy. It produces the evaluation harnesses and regression suites that catch perception failures on rare classes before customers do. The general principle, that only measurement under the real workload and conditions settles performance, is argued in our piece on empirical, workload-bound measurement.
Why Break Autonomous-Vehicle Perception into Stages Before Designing a Robustness Audit?
Small errors in one stage, such as object detection, can be magnified downstream in stages like trajectory prediction. When the authors of the “How Do We Fail?” study stressed a LiDAR stack with simulated rain, every failure they found occurred in tracking, because poor detections made tracks hard to keep before prediction failures could even appear. They counted a tracking failure as a position error above 2 metres or a lost track. Their search found a failure caused by removing only 15 LiDAR points at a single time step, compared with 112 points for the baseline method.
In one example from the task-aware risk paper, radar detects an obstacle that the camera misses, the system trusts the camera, and the obstacle disappears from the perceived scene. A check for inconsistency between the two sensors, with spatio-temporal reasoning, can show that the radar was right. The same paper tests four classes of failure:
- Misdetection: wrong orientation, size, velocity or traffic-light state.
- Missed obstacle: an agent not detected at all, either in the vehicle’s path or not.
- Ghost obstacle: something detected that does not exist, either in the path or not.
- Mislocalisation.
The authors also argue that the same failure can be harmless or dangerous depending on how it affects the motion plan.
A Stage-by-Stage Audit Map
| Pipeline stage | Failure to look for | What the audit exercises |
|---|---|---|
| Sensing | Degraded or blinded input: overexposure, dead pixels, reduced LiDAR range and rain backscatter | Adverse-condition and corruption test sets; physics-based rain models applied to LiDAR |
| Data processing and fusion | Spatial or temporal misalignment; a disturbance in one sensor spreading through early or mid fusion | Calibration and timing offsets; disturbing one sensor stream |
| Detection and classification | Missed obstacles, ghost obstacles, misdetections, and corner cases at object and scene level | Safety-weighted scoring by RSS distance and road-user type; OOD and corner-case sets |
| Tracking | Lost tracks, position error beyond a set threshold, class flipping over time | Sequence-level tests rather than single-frame metrics |
| Prediction and output | Wrong trajectories caused by upstream noise | Inject disturbances upstream and check the downstream output |
It defines safety as the absence of unreasonable risk from hazards caused by functional insufficiencies, including performance insufficiencies of the electrical and electronic elements that implement a function. It applies where situational awareness comes from complex sensors and processing algorithms, across driving automation levels 1 to 5. It excludes faults covered by ISO 26262 and cybersecurity threats. Willers et al. explain why machine-learning perception in autonomous cars makes SOTIF hard: the standard requires understanding a system’s limits and the conditions that expose them, but deep-learning failures live at the level of pixel data and are not intuitive to humans. They separate verification, which tests known weaknesses, from validation, which looks for unknown ones. What a full audit tests before release is covered in what a perception robustness audit tests, and how the results become reviewable evidence is covered in building a perception validation evidence package.
Who Builds the Harness That Catches Perception Failures Before Release?
TechnoLynx builds the engineering side of this work for automotive teams: task-specific evaluation harnesses, regression suites, drift detection and validation packages for computer-vision and perception workloads, so that failures on rare classes or under load are caught before release. Our AI engineering for automotive is built for production, where off-the-shelf models that work in demos fail at edge cases. The reliability audit applied to a perception inference workload walks through the method on a real pipeline.
Some questions remain open, and a stage map does not answer them. There is no settled best fusion method. Rare scenarios cannot be collected just by driving more. Corner-case detectors trained on examples of known anomalies risk missing the ones nobody has seen. What a team can settle is which stage owns which failure in its own operating domain, and whether its test data and metrics would show that failure at all.
FAQ
Which Is the Best Use of Computer Vision in a Self-Driving Car: Route, Speed, Stop Sign or Tyre Pressure?
Detecting a stop sign: traffic-sign recognition is one of the core camera tasks. Route planning consumes perception outputs rather than being a perception task, and radar measures object velocity directly via the Doppler effect. Tyre pressure is measured by dedicated sensors, not by vision.
What Is the Difference Between Seeing the Driving Environment and Perceiving It?
Seeing is the sensing stage, where cameras and other sensors capture raw images and measurements. Perceiving is the later stage, where algorithms turn that data into detected, classified and tracked objects with positions and velocities that the vehicle can plan around.