Computer Vision in Autonomous Vehicles: How Self-Driving Cars See
How a car's cameras detect objects, read traffic lights and judge distance, with worked pixel, stereo-depth, time-to-collision and IoU examples, plus where ADAS stands in India in 2026.

Computer vision in an autonomous vehicle is the software that turns camera images into a description of the road: where the lanes are, which objects are cars, riders and pedestrians, how far away they are, how fast they are closing in, and what colour the traffic light is. Neural networks running on a chip in the car do this many times a second. Planning and control software then decide whether to brake, steer or warn the driver. Cameras are the only sensor that can read signs, signals and lane paint, so every driver-assistance system and every robotaxi uses them, even the ones that also carry radar and lidar.
Key takeaways
- Pixels set the range. With an 8-megapixel camera (3,840 px wide), a 300 mm traffic-light lens 100 m away spans 3.3 px through a 120° lens, 10.0 px through a 60° lens and 21.5 px through a 30° lens. That is why cars carry a narrow forward camera as well as a wide one. Mobileye's EyeQ6 Lite chip (April 2024) supports an 8 MP, 120° camera.
- At 100 km/h a car covers 0.93 m between two frames at 30 frames per second, and 2.78 m during a 100 ms processing delay.
- A single camera can estimate time to collision from how fast an object grows in the image. If a car ahead grows from 50.0 px to 50.5 px in one frame, impact is 3.33 s away if nothing changes.
- Stereo depth error grows with the square of distance. A 30 cm baseline is about ±1 m at 50 m and ±4 m at 100 m. Radar and lidar help most at long range for this reason.
- Where things stand in 2026: Waymo reported more than 400,000 paid rides a week in February 2026. Tesla says FSD (Supervised) still needs an attentive driver. In India, ADAS was fitted to 8.3% of new cars sold in the first half of 2025 (JATO Dynamics).
Skill-Lync worked every number on this page and checked it with a script kept alongside the article. The guide covers what a car's vision system has to recognise, how it reads traffic lights, how a camera measures distance, how the networks are trained and scored, and where the technology still struggles, including on Indian roads.
What is computer vision in an autonomous vehicle?
It is the perception layer that turns raw camera frames into a list of objects, lanes and drivable space that the rest of the car can act on. Each camera feeds an image signal processor, then neural networks. Their outputs are tracked over time, merged with radar, lidar and maps where the car has them, and passed to planning and control.
Two points matter for anyone learning this field. First, the image signal processor matters as much as the neural network. It has to handle a sunset behind a truck, a dark underpass and flickering LED signals in the same second. Second, a detection only becomes useful once it is tracked. A box in one frame tells the car what is there. The same box tracked over many frames tells it the object's speed, its heading and the time left before a collision. For how the car fuses these tracks with radar and decides to brake, read how self-driving cars detect and avoid obstacles.
What does a self-driving car's camera system have to recognise?
A production vision stack runs several tasks on every frame, often in one shared network with several output "heads". The table lists the main ones, what each produces and why the car needs it.
| Task | What it outputs | Why the car needs it |
|---|---|---|
| Object detection | Boxes and classes: car, truck, two-wheeler, pedestrian, animal | Emergency braking, adaptive cruise, path planning |
| Lane and road-edge detection | Lane lines as curves, road boundary | Lane keeping, lane change, staying on unmarked roads |
| Traffic light and sign recognition | Signal state (red, amber, green, arrow), speed limits | Stopping at signals, intelligent speed assistance |
| Semantic segmentation / free space | A class for every pixel: road, kerb, vegetation, vehicle | Where the car can physically drive |
| Depth estimation | Distance for each object or pixel | Gaps, braking distance, 3D position |
| Tracking | The same object over time, with speed and heading | Predicting where others will be in 2 to 5 s |
| Driver monitoring (inside the cabin) | Eye gaze, head pose, eyes closed | Drowsiness warnings, checking the driver at Level 2 |
Regulators now require several of these. The EU's General Safety Regulation (EU) 2019/2144 applied to new vehicle types from 6 July 2022 and to all new vehicles from 7 July 2024, with some measures phased in until 2029. It covers intelligent speed assistance, drowsiness and distraction warning and reversing detection, plus emergency braking and lane keeping on cars and vans. Most of these depend on a camera.
How do self-driving cars see traffic lights?
A forward camera finds the signal head in the image, a classifier reads which lamp is lit and its shape, and tracking over several frames confirms the state before the planner acts. The hard part is range. At 100 m a signal lens covers only a few pixels without a narrow, telephoto-style camera, so cars carry cameras with several fields of view.
Worked example: how many pixels does a traffic light get?
Use the pinhole camera model. A camera's focal length in pixels comes from the image width and the horizontal field of view (HFOV):
An object of size at distance then spans pixels. Take an 8 MP sensor (3,840 × 2,160) and a 300 mm signal lens. The US traffic-control manual (MUTCD) specifies 12-inch (about 300 mm) lenses for new signal faces.
The same lens covers 3.3 px through a 120° camera ( px) and 21.5 px through a 30° camera ( px). For a 1.7 m pedestrian at 100 m the numbers are 18.8, 56.5 and 121.8 px.
Read the chart against stopping distance. A car braking automatically from 100 km/h needs about 69 m (0.5 s system delay plus 7 m/s² braking, our assumed values). A human driver needs about 183 m using the road-design values of 2.5 s reaction time and 3.4 m/s² deceleration. With the 20 px assumption, the 60° main camera reads a signal reliably only to about 50 m, while the 30° narrow camera reaches about 107 m. A wide 120° lens is meant for cross-traffic and junctions, not for distant signals.
Why do LED traffic lights confuse cameras?
LED signals and brake lights switch on and off very fast (pulse-width modulation). A camera with a short exposure, which it needs on a bright day, can catch the LED in its off phase and record a dark signal. Automotive image sensors handle this with special exposure and HDR modes. IEEE Std 2020-2024, the IEEE standard for automotive camera image quality published in March 2025, includes flicker among the attributes it tests.
How far does the car move while the computer is thinking?
At 100 km/h a car covers 27.78 m every second: 0.93 m between two frames at 30 frames per second, and 2.78 m during a 100 ms perception delay. Every millisecond of processing therefore costs distance, which is why vision networks are cut down to fit the car's chip rather than run at full size.
This is also why detector speed made headlines. The original YOLO paper (Redmon et al., CVPR 2016) ran at 45 frames per second, fast enough for video. Ultralytics' YOLO26, released in January 2026, reports 40.9 mAP50-95 on the COCO benchmark at 1.7 ms per image for its smallest model, on an Nvidia T4 GPU with TensorRT. That is a data-centre card, not a car chip.
How does a camera measure distance?
A single camera estimates distance from where an object's base meets the road and from how big the object looks. It estimates closing speed from how quickly the object grows between frames. Two cameras a known distance apart (stereo) measure depth directly from the shift between the two images. Both methods get less accurate the further away the object is.
Worked example: time to collision from one camera
An object of height at distance appears pixels tall. If its image grows by a scale factor over a time step , then . With a steady closing speed this gives the time to collision without knowing the distance or the object's real size:
A 0.5 px change is tiny, so real systems smooth the estimate over many frames. Mobileye researchers published the bounds on single-camera range and range-rate accuracy in 2003 (Stein, Mano and Shashua, IEEE Intelligent Vehicles Symposium). That work underpins camera-only forward collision warning.
Worked example: stereo depth and its error
With baseline between the two cameras and disparity (the pixel shift of the same point between the left and right images), depth is . A small disparity error gives a depth error that grows with distance squared:
Here px is a 1,920 px wide, 50° camera, and 0.25 px is a typical sub-pixel matching error. At 50 m the disparity is 12.4 px and the error is about 1.0 m. Shrink the baseline to 12 cm, which fits behind a windscreen mirror, and the error at 100 m grows to 10.1 m.
How are vision models for self-driving cars trained and scored?
They learn from large sets of labelled frames: boxes drawn around every object, lane lines traced and every pixel classed. They are scored on test data the network never saw. The basic score is intersection over union (IoU), the overlap between a predicted box and the true box. Detection benchmarks then average precision and recall over classes and IoU thresholds into "mAP".
Worked example: is this detection a hit?
The true box runs from (100, 80) to (200, 280) in pixels, and the prediction from (120, 100) to (230, 290). The overlap is 80 × 180 = 14,400 px². The union is 20,000 + 20,900 − 14,400 = 26,500 px².
That passes the common 0.5 threshold, so it counts as a true positive. Under the stricter 0.75 threshold it is a miss. COCO-style mAP50-95 averages across thresholds from 0.50 to 0.95, which rewards tight boxes.
| Dataset | Who, when | What is in it |
|---|---|---|
| KITTI | Karlsruhe Institute of Technology and Toyota Technological Institute at Chicago, CVPR 2012 | Stereo, optical flow, odometry and 3D object benchmarks from Karlsruhe streets |
| nuScenes | nuTonomy (Aptiv), CVPR 2020 | 1,000 scenes of 20 s; 6 cameras, 5 radars, 1 lidar; 23 classes |
| Waymo Open (Perception) | Waymo, CVPR 2020 | 1,150 scenes of 20 s with camera and lidar labels |
| India Driving Dataset (IDD) | IIIT Hyderabad with Intel, WACV 2019 | 10,004 images from 182 drive sequences around Hyderabad and Bengaluru, 34 classes, built for unstructured Indian roads |
For more on why the choice of dataset decides what a model can see, read datasets in object detection. The guide to benchmarking computer vision models in Python shows the metrics in code.
Can a self-driving car work with cameras only?
Tesla is betting that it can. Driverless robotaxi operators are not. Tesla uses only cameras ("Tesla Vision") but states that FSD (Supervised) "requires active driver supervision and does not make the vehicle autonomous". Waymo, which runs cars with nobody in the driver's seat, fits its sixth-generation driver with 13 cameras, 4 lidars and 6 radars.
Tesla removed radar from the Model 3 and Model Y in 2021 and ultrasonic sensors from 2022. Waymo reported more than 400,000 rides a week across six US metro areas in February 2026, and 271.3 million rider-only miles through June 2026.
The engineering trade-off follows from the worked examples above. Cameras give the most detail per rupee and are the only way to read signals and lane paint. They measure distance indirectly, and less precisely the further away an object is, and they degrade in glare, fog and darkness. Radar measures range and closing speed directly and works in rain. Lidar gives centimetre-level 3D shape at night. More sensors cost more but fail in different ways, which helps when no safety driver is on board.
Where does computer vision fit in the levels of driving automation?
SAE J3016 defines six levels of driving automation, 0 to 5. At Level 2 the system steers and controls speed while the driver supervises continuously. At Level 3 it drives under defined conditions and the human takes over when alerted. At Level 4 no human fallback is needed. Vision is used at every level. What changes is who catches its mistakes.
SAE published a revised edition of the standard in September 2026 (J3016_202609), replacing the April 2021 version. Regulators have built rules on these levels:
- Level 3 rules: UN Regulation No. 157 on automated lane keeping, adopted in June 2020 at up to 60 km/h, was amended in June 2022 to allow up to 130 km/h and automated lane changes.
- US emergency braking: NHTSA's FMVSS No. 127, published 9 May 2024, requires automatic emergency braking for vehicles ahead and for pedestrians in daylight and darkness from 1 September 2029. In March 2026 the US Department of Transportation told a court it is preparing a proposal that would change the lead time. No proposal had been published by 20 November 2026.
Is computer vision used in cars in India?
Yes, mostly as Level 1 and Level 2 driver assistance in mid-range and premium cars, and the share is growing. JATO Dynamics counted ADAS in 8.3% of passenger-car sales in India in January to June 2025, up from 6.2% a year earlier, across 434 model versions. Most use a windscreen camera, often with a radar.
- Bharat NCAP began rating cars on 1 October 2023 (announced by the Ministry of Road Transport and Highways on 22 August 2023). It does not score ADAS yet. A draft revision, "Bharat NCAP 2.0" (AIS-197 Rev 1, November 2025), adds accident-avoidance tests and is expected from October 2027.
- Buses and trucks: in a written reply to the Lok Sabha (PIB, 12 February 2026), the government listed driver-drowsiness warning (AIS-184) and lane-departure warning (AIS-188) for heavy vehicles from 1 January 2028. Dates differ between releases, so check the final notification before relying on them.
- Cars: trade press reported in October 2026 a draft that would make emergency braking (AIS-185) mandatory on new car models from October 2030. We have not seen the draft notification itself, so treat this as reported, not confirmed.
Indian roads are harder for vision than the roads most datasets come from. Lane paint is missing or faded, two-wheelers, autorickshaws, cattle and handcarts share the road, and drivers weave across lanes. That is why the India Driving Dataset exists, and why models trained only on European or US data need Indian data before they behave well here. The ADAS explainer lists the features one by one.
What are the biggest challenges for computer vision in self-driving cars?
The main problems are small, distant objects (the pixel limit above), glare, darkness, rain and LED flicker, rare situations the training data never covered, and depth that is weak at long range. Each of these can produce a confident wrong answer, which is the dangerous kind.
- The long tail. A network that has seen a million cars may never have seen a mattress on the road or a person in a costume. Fleets collect such cases and retrain.
- Domain shift. A model tuned on one country's roads, weather or camera degrades on another's.
- Compute and power. Everything must run within milliseconds on an in-car chip, so models are pruned and quantised, and some accuracy is lost.
- Validation. Proving a vision system is safe needs huge numbers of test kilometres and simulation. Waymo's published comparisons with human drivers rest on hundreds of millions of rider-only miles.
How can you learn computer vision for autonomous vehicles?
Learn the classical geometry first, then deep learning, then the vehicle context. Start with image filtering, edges and the pinhole and stereo models above. Then move to CNN classification, object detection, segmentation, optical flow and tracking, practised on KITTI or IDD in Python with OpenCV and a deep learning framework. Last, learn how ADAS features are specified and tested.
Skill-Lync's Applying CV for Autonomous Vehicles using Python course follows that order over 12 weeks. It covers image filters and Canny/Hough edge and line detection, projective and stereo geometry with camera calibration, CNN classification, feature detectors (Harris, SIFT, ORB), optical flow, tracking with Deep SORT, segmentation, object detection and 3D object detection, using OpenCV and TensorFlow. If you are new to images, begin with Basics of Computer Vision using Python. For the control side, see Autonomous Vehicle Controls using MATLAB and Simulink. The computer science courses page lists the rest, and how to become a computer vision engineer covers the career path. To choose between them, talk to a Skill-Lync counsellor.
Frequently asked questions
How do self-driving cars see traffic lights?
A forward camera finds the signal head, a classifier reads which lamp is lit, and tracking over several frames confirms the state. Range is the limit. On an 8 MP camera a 300 mm lens 100 m away spans 10 px through a 60° lens but 21.5 px through a 30° lens, so cars add a narrow forward camera.
Can a self-driving car work with cameras only?
Tesla's FSD (Supervised) uses cameras only, but Tesla says it needs an attentive driver and does not make the car autonomous. Driverless robotaxis such as Waymo's add lidar and radar: its sixth-generation driver has 13 cameras, 4 lidars and 6 radars. Cameras alone measure distance less precisely at long range and struggle more in glare and fog.
Which algorithm is used for object detection in self-driving cars?
Production cars use proprietary convolutional or transformer-based networks, tuned to run in milliseconds on the car's chip. Students usually learn with one-stage detectors such as YOLO, whose first version ran at 45 frames per second in 2016, and two-stage detectors such as Faster R-CNN. They score them with IoU and mean average precision on datasets like KITTI and nuScenes.
What is the difference between ADAS and an autonomous vehicle?
ADAS features, such as emergency braking, lane keeping and adaptive cruise, help a human driver, who stays responsible: SAE Levels 1 and 2. An autonomous vehicle drives itself under defined conditions, at Level 3 with a human ready to take over, or at Level 4 with no human fallback. Both use the same computer vision building blocks.
Which dataset is best for Indian roads?
The India Driving Dataset (IDD), from IIIT Hyderabad with Intel (WACV 2019), has 10,004 finely labelled images in 34 classes from 182 drive sequences around Hyderabad and Bengaluru. It was built for unstructured roads where lanes and edges are unclear. Models trained only on KITTI or nuScenes usually need data like IDD for Indian traffic.
Is computer vision for autonomous vehicles a good career in India?
Demand comes from ADAS suppliers, carmakers' software centres and engineering-services firms, and India's ADAS fitment rose to 8.3% of car sales in early 2025. Roles need Python, C++, deep learning, camera geometry and an understanding of vehicle testing. Build two or three projects on KITTI or IDD to show you can do the work.
Sources and further reading
- Mobileye, Mobileye EyeQ6 Lite launches to speed ADAS upgrades worldwide, 17 Apr 2024.
- FHWA / Caltrans, MUTCD Chapter 4E, signal indication sizes (California 2026 edition of the federal MUTCD).
- IEEE SA, IEEE 2020-2024, Standard for Automotive System Image Quality, published 21 Mar 2025.
- Redmon et al., You Only Look Once: Unified, Real-Time Object Detection, CVPR 2016; Ultralytics, YOLO26 documentation.
- Stein, Mano and Shashua, Vision-based ACC with a single camera: bounds on range and range rate accuracy, IEEE IV 2003.
- Waymo, Meet the 6th-generation Waymo Driver (19 Aug 2024), funding announcement with weekly rides (2 Feb 2026) and safety impact data.
- Tesla, Transitioning to Tesla Vision and FSD (Supervised) support pages.
- SAE, J3016_202609, Taxonomy and definitions for driving automation systems, Sep 2026.
- UNECE, UN Regulation on Automated Lane Keeping Systems and the 2022 amendment to 130 km/h.
- NHTSA, FMVSS No. 127 final rule, Federal Register, 9 May 2024; Nelson Mullins, The road ahead for FMVSS 127, 22 Apr 2026.
- European Commission, Vehicle safety and automated/connected vehicles (General Safety Regulation).
- JATO Dynamics, ADAS adoption in India reaches 8.3% in H1 2025, 9 Sep 2025.
- PIB, Launch of Bharat NCAP, 22 Aug 2023, and Lok Sabha reply on safety systems for heavy vehicles, 12 Feb 2026; DriveSpark, report on the draft AEB rule for cars, 25 Oct 2026.
- Datasets: KITTI; nuScenes; Waymo Open Dataset; IDD (India Driving Dataset).
- Stopping-distance inputs: Wikipedia, Stopping sight distance (AASHTO values); TxDOT, Roadway Design Manual 4-11-1.


