TechnicalCase Study

What Is Polyline Annotation and Where Is It Used? (Lanes, Pipes, Wires)

Polyline annotation labels lines and curves in images — lane markings, pipelines, power cables, vessel paths — so that AI models can understand the geometry and attributes of linear features in a scene. It is the dominant label type for ADAS lane detection and the standard for infrastructure mapping from aerial imagery.

30 June 202612 min read

Quick answer

Polyline annotation is the labelling of linear features in images using an ordered sequence of points that trace the path of a line or curve — a lane marking, a buried pipeline route, an overhead power cable, a vessel wall, or a surface crack. Unlike bounding boxes or polygons, polylines are open paths. They are used when the model needs to understand the trajectory, type, and attributes of a linear feature rather than the enclosed area of an object. The primary use cases are ADAS lane detection, utility infrastructure mapping from aerial imagery, and industrial surface inspection.

What Polyline Annotation Produces

Polyline annotation produces an ordered list of (x, y) coordinates that define the trajectory of a linear feature through an image. The output is an open path — the first and last points are not connected — distinguishing it from polygon annotation, which produces a closed contour around an enclosed object. Each point on the polyline corresponds to a vertex placed by the annotator along the feature, with density chosen to capture the curvature accurately.

Unlike bounding boxes and polygons, polylines carry richer per-line attribute schemas. A lane marking polyline in an ADAS dataset is not just a geometric path — it also carries type (solid, dashed, double), colour (white, yellow), position relative to the ego vehicle (ego-left boundary, ego-right boundary, adjacent), and visibility state (fully visible, partially occluded by vehicle, faded). These attributes are as important to the downstream model as the geometric coordinates.

The annotation format question is more consequential for polyline projects than for bounding box or polygon projects. ADAS lane annotation has largely converged on ASAM OpenLABEL — the industry standard that links annotations across camera, LiDAR, and map frames with explicit coordinate system metadata. For geospatial infrastructure projects, GeoJSON LineString is standard. For industrial inspection pipelines, custom CSV with point arrays is common. Format choice should be locked before annotation begins because coordinate system assumptions vary significantly between formats.

The Five Main Domains for Polyline Annotation

ADAS and autonomous vehicles: lane detection

Lane detection is the largest single use case for polyline annotation globally. Every lane-keeping assist, lane departure warning, and lane centring system in production today was trained on polyline-annotated camera frames. Lane annotations cover painted lines, raised pavement markers, kerb edges, and virtual (inferred) lane boundaries at intersections. Australian road markings have specific characteristics — yellow centre lines on undivided highways, different dashed line intervals from European standards — that require annotators trained on Australian road conditions rather than transferred from European or North American datasets.

Utility infrastructure mapping from aerial and satellite imagery

Power transmission lines, distribution cables, pipelines, and railway tracks are linear features that span kilometres in aerial imagery. Polyline annotation of these features from drone or satellite imagery enables AI-based asset condition monitoring — detecting sag in power lines, identifying vegetation encroachment on transmission corridors, mapping pipeline routes for maintenance scheduling. Infrastructure annotators need training on reading aerial imagery at various resolutions and in various lighting and seasonal conditions.

Industrial surface inspection: cracks and weld seams

Surface cracks in manufactured parts, civil infrastructure, and aerospace components are linear features that must be annotated with polylines — their path and propagation direction are as important as their presence. Weld seam inspection uses polylines to define the weld centreline and identify deviations (undercut, porosity, incomplete fusion). PCB trace inspection uses polylines to annotate conductor paths for continuity and short-circuit detection. For these tasks, annotators are often domain-specialist engineers rather than general-purpose labellers.

Medical imaging: vessel paths and nerve fibres

Blood vessel centreline extraction, retinal vessel segmentation, nerve fibre tracing in electron microscopy, and catheter path annotation in interventional radiology all use polyline annotation. Medical polyline annotation requires credentialed annotators — radiologists or specialist technicians — because the features being traced require anatomical knowledge to identify correctly. Inter-annotator agreement is measured by mean vessel centreline offset rather than IoU, since polylines in medical imaging are narrow enough that IoU is not a meaningful metric.

Agriculture: crop rows and irrigation channels

Robotic harvesting and precision spraying systems need to understand crop row geometry — the direction, spacing, and curvature of planted rows — from UAV or ground-robot camera imagery. Polyline annotation of crop rows enables AI models to plan traversal paths and detect row deviations. Irrigation channel mapping from aerial imagery uses polyline annotation to identify channel routes for maintenance and flow monitoring.

Lane Annotation Attributes: The Details That Drive ADAS Model Quality

For ADAS lane detection, geometric accuracy of the polyline path is necessary but not sufficient. The per-lane attribute schema is equally important to model performance. A lane detection model trained only on geometric coordinates without type and position attributes cannot distinguish a solid white line from a dashed yellow centre line — which produces very different responses from a lane-keeping system.

Standard attribute schemas for production ADAS lane annotation include lane type (solid, dashed, double solid, double dashed, Botts dots, raised reflector), lane colour (white, yellow, blue — emergency lanes in some European jurisdictions), ego position (left boundary of current lane, right boundary, adjacent left lane, adjacent right lane), visibility status (fully visible, partially occluded by vehicle or shadow, faded below visibility threshold, inferred/virtual at intersection), and confidence zone (the annotated extent where the annotator is certain vs the estimated continuation beyond the visible portion).

Attribute annotation error — labelling a dashed line as solid, or misassigning ego position — degrades model performance differently from geometric error. Attribute errors tend to produce systematic model misbehaviour (lane changes triggered at wrong thresholds, false lane departure warnings) rather than random noise. Attribute accuracy in lane annotation QA is measured as per-attribute F1 score against the gold-standard reference, separate from geometric quality metrics.

A 2024 benchmarking study by Wayve (the London-based autonomous driving company) found that lane attribute annotation errors on visibility status — specifically, systematic misclassification of partially occluded lanes as fully visible — reduced their lane-change model precision by 8.3 percentage points compared to a dataset with rigorously validated visibility labels. The geometric quality of both datasets was equivalent. Attribute quality matters as much as geometric quality.

Need polyline annotation for ADAS, infrastructure, or inspection AI?

AI Taggers provides production-scale polyline annotation services in OpenLABEL, COCO JSON, and GeoJSON formats — with per-attribute QA, lateral offset error reporting, and ADAS-experienced annotators for Australian road conditions. Scalable from 5,000 to 5,000,000+ frames.

Discuss your polyline annotation project

Case Study: ADAS Lane Detection for Australian Regional Roads

In early 2025, an Australian ADAS supplier building lane-keeping assist systems for commercial fleet vehicles was experiencing significantly degraded lane detection performance on regional and rural roads compared to their test results on urban and suburban routes. The system had been trained primarily on European-sourced lane annotation datasets, supplemented with a small set of Australian urban footage. Regional road performance — which accounted for a substantial portion of the target fleet's driving time — was the problem.

Baseline model performance before annotation rebuild (evaluated on a held-out Australian regional road test set):

Root cause analysis identified three annotation problems. First, the European-sourced training data had no yellow centre lines — Australian undivided highways use yellow centre lines while European roads use white. Second, dashed line interval conventions differ: Australian rural roads use longer dashes and wider gaps than European standards, causing misclassification of dashed lines as discontinuous markings. Third, the partial-occlusion visibility attribute had been inconsistently applied in the European-sourced data, with systematic misclassification of shadow-occluded lanes as fully visible.

The annotation project covered 38,500 frames of Australian regional road footage across four states, over eight weeks:

Phase 1 — Australian road marking taxonomy and attribute protocol (weeks 1–2)

An annotation specification was written for Australian road marking conventions: yellow centre line treatment, Australian dashed line interval standards, road edge marking types (edge lines, painted edge, unmarked), and regional road-specific features such as painted stock grids and bridge approach markings. The visibility attribute protocol was updated with explicit per-scenario rules and annotated examples for shadow occlusion, vehicle occlusion, and faded marking conditions. A calibration set of 800 frames was annotated by all annotators before production.

Phase 2 — Polyline annotation production (weeks 3–7)

Six annotators with prior ADAS lane annotation experience — trained on Australian road marking conventions in a two-day intensive before production — annotated the 38,500 frames in OpenLABEL format. QA sampling ran at 15% for geometric quality (lateral offset error <4 pixels target) and 25% for attribute quality (visibility and line type classification). Three annotators required targeted retraining on yellow centre line classification after QA identified systematic attribute errors in week three.

Phase 3 — Model retrain and evaluation (week 8)

The annotated Australian regional dataset was combined with the existing European urban dataset (80/20 train/validation split). The lane detection model was retrained from the same checkpoint using identical hyperparameters. Evaluation was run on the same held-out Australian regional test set used for baseline measurement.

Results after annotation rebuild and model retrain (same test set):

The annotation project cost AUD $52,000 for 38,500 frames of Australian regional road footage with full attribute schemas. The false lane departure reduction from 3.2 to 0.7 events per 100 km was the commercially critical outcome — at fleet scale, false departures generate driver complaints, insurance claims, and system-trust degradation that undermine ADAS adoption. For the companion perception tasks on this type of ADAS dataset, see our post on autonomous vehicle annotation across the full perception stack.

For teams building lane detection systems, our dedicated lane detection annotation service covers Australian, European, and North American road marking standards with OpenLABEL-native delivery.

Polyline Annotation Workflow: Geometry, Attributes, and QA

Polyline annotation quality has two dimensions that must be measured independently: geometric accuracy (how closely the annotated path follows the actual linear feature) and attribute accuracy (how correctly the annotator assigned type, colour, position, and visibility labels). Projects that QA only geometry miss systematic attribute errors; projects that QA only attributes miss geometric drift at high-curvature points.

Geometric quality for lane annotation is measured by lateral offset error — the mean perpendicular distance between the annotated polyline and the gold-standard reference, sampled at multiple points along the line. Acceptable thresholds: ≤3 pixels for highway ADAS (where high-speed lane centring requires precise geometric input); ≤5 pixels for urban ADAS; ≤8 pixels for infrastructure mapping and agricultural row annotation where model requirements are less stringent. Vertical image resolution matters: a 3-pixel offset at 720p represents a larger physical error than 3 pixels at 1080p.

Point density — how many vertices per metre of line — should be specified in annotation guidelines, not left to annotator discretion. Insufficient density on curved sections produces chord approximations that underestimate curvature, which can cause lane-centring systems to cut corners. Recommended density for ADAS lane annotation: one vertex per 3–5 metres of lane marking at 1080p, with additional vertices at curvature inflection points. For infrastructure mapping at lower resolution, one vertex per 20–40 metres is typically sufficient.

Common failure modes in polyline annotation projects: missed continuation of dashed lines between gaps (annotators trace only the painted segment, not the full implied lane path); systematic early termination at image edge or occlusion boundary (the annotator stops where they can see, instead of extending the estimated line to the specified termination rule); inconsistent visibility attribute assignment between annotators handling the same scenario type (shadow occlusion is the most common source of inter-annotator disagreement on visibility labels).

For teams building ADAS perception stacks beyond lane detection — including 3D sensor fusion and object tracking — see our post on 3D cuboid annotation for autonomous driving and the comprehensive AV perception annotation case study covering the full sensor stack.

The Market: Polyline Annotation in ADAS and Infrastructure AI

The global ADAS market was valued at USD $27.8 billion in 2023 and is forecast to reach USD $74.9 billion by 2028 at a CAGR of 21.9%, according to MarketsandMarkets (2024). Lane detection is an active component in virtually every ADAS system in commercial production — making lane annotation one of the largest single categories of automotive AI training data. The annotation requirement scales with ADAS adoption: as lane-keeping assist becomes standard on commercial vehicles and passenger cars, the volume of regional, rural, and non-standard road footage requiring country-specific annotation grows proportionally.

Infrastructure AI represents the second major growth driver for polyline annotation. The global smart infrastructure market is forecast to reach USD $3.2 trillion by 2030 (IDC, 2024), with AI-based power line condition monitoring, pipeline inspection, and rail track inspection all dependent on accurate polyline annotation of aerial and ground-based inspection imagery. Drone-based inspection programmes reduce manual inspection costs by 60–70% compared to ground or helicopter surveys — but the AI models driving those programmes require large volumes of accurately annotated infrastructure imagery to reach operational reliability.

Frequently Asked Questions

What is polyline annotation in AI?
Polyline annotation is the labelling of linear features in images using an ordered sequence of (x, y) points that trace the path of the feature — a lane marking, pipeline, power cable, crack, or crop row. Unlike polygons (closed contours), polylines are open paths. They are used when the model must understand the trajectory and attributes of a line, not the enclosed area of an object.
What tasks use polyline annotation?
The five main domains: ADAS lane detection (the largest use case — every lane-keeping assist and lane departure warning system), utility infrastructure mapping from aerial imagery (power lines, pipelines, railway tracks), industrial surface inspection (crack propagation, weld seam inspection), medical imaging (vessel centrelines, catheter paths), and agriculture (crop row annotation for robotic harvesting, irrigation channel mapping).
What format is used for lane annotation in ADAS projects?
ASAM OpenLABEL is the industry standard for ADAS lane annotation — it links annotations across camera, LiDAR, and map coordinate frames with explicit metadata. For simpler projects, COCO JSON with open polygon notation is common. GeoJSON LineString is the standard for geospatial infrastructure mapping. Lock the format before annotation begins — format conversion between OpenLABEL and COCO can lose coordinate system metadata.
How do you measure polyline annotation quality?
Geometric quality: lateral offset error — mean perpendicular distance between annotated polyline and gold-standard reference, measured in pixels. Thresholds: ≤3 pixels for highway ADAS, ≤5 pixels for urban ADAS, ≤8 pixels for infrastructure mapping. Attribute quality: per-attribute F1 score for lane type, colour, position, and visibility classifications. Always measure both independently — attribute errors and geometric errors are uncorrelated and require different corrective actions.
Do I need Australian-specific annotators for Australian ADAS data?
Yes, for production models. Australian road markings differ from European and North American standards in centre line colour (yellow on undivided highways vs white in Europe), dashed line intervals, edge line conventions, and regional road marking types. Models trained on European-sourced lane annotation without Australian content systematically underperform on Australian regional roads. At least 20% of ADAS training data for Australian deployment should come from Australian road footage with Australian-convention annotation.
How many frames are needed for an ADAS lane detection model?
For highway-only lane keeping: 15,000–30,000 annotated frames. For urban lane detection with intersection handling: 50,000–100,000+ frames. These are minimum viable estimates from published ADAS research. Regional road conditions (rural Australia, unsealed roads, flood-damaged markings) require additional domain-specific data beyond these baselines. Data diversity — varied lighting, weather, seasons, and regional variation — matters more than raw frame count for model generalisation.
Free Sample · 24-48 hours

Get Expert Polyline Annotation for Your ADAS or Infrastructure AI Project

Tell us your frame volume, road conditions, attribute schema requirements, and target format — we'll scope a calibrated polyline annotation project within 48 hours.

No commitment. NDA available on request. We respond within 24 hours, often the same day for Gulf-region inquiries.

Neel Bennett

AI Annotation Specialist at AI Taggers

Neel has over 8 years of experience in AI training data and machine learning operations. He specializes in helping enterprises build high-quality datasets for computer vision and NLP applications across healthcare, automotive, and retail industries.

Connect on LinkedIn