Skip to main content
The Polyline tool draws open line segments for features like lanes, paths, curbs, and barriers. Unlike polygons, polylines remain open (they do not close into a shape).

When to Use

Use polylines when:
  • You need to annotate linear features that do not enclose an area
  • The task involves lane detection, road boundary marking, or trajectory annotation
  • Objects are inherently linear (curbs, fences, wires, cracks)
  • You are working in both 2D images and 3D point clouds
Consider a different tool when:
  • You need a closed shape around an object — use the Polygon tool
  • You need rectangular localization — use the Bounding Box tool
  • You need pixel-level masks — use the Segmentation tool

Usage

  1. Press L or select the Polyline tool from the toolbar
  2. Click to place the first point
  3. Continue clicking to add points along the line
  4. Press Enter to finish the polyline (it remains open, unlike a polygon)
  5. Assign a label

Editing

  • Move a point: Click and drag any point handle
  • Add a point: Click on a segment midpoint
  • Delete a point: Right-click a point and select Delete Point
  • Extend the line: Select the endpoint and click to add more points

Shortcuts

ShortcutAction
LActivate the Polyline tool
EnterFinish the polyline
EscapeCancel current polyline
Delete / BackspaceDelete selected polyline
Ctrl+Z / ⌘ZUndo
Ctrl+Shift+Z / ⌘⇧ZRedo

Use Cases

  • Lane markings: Trace the center or edges of lane lines on roads
  • Road boundaries: Mark curb edges and road shoulders
  • Fences and barriers: Annotate linear barriers and guardrails
  • Trajectory paths: Trace the path an object has traveled or will travel
  • Cracks and defects: Mark linear defects in industrial inspection images

Common Mistakes

  • Inconsistent point spacing: Keep points evenly spaced for smoother lines
  • Too few points on curves: Curved sections need more points to accurately represent the curvature
  • Not extending to image edges: For lanes and boundaries, extend the polyline to the edge of the visible area
  • Confusing polyline with polygon: If you need a closed shape, use the Polygon tool instead

Advanced Tips

  • Keep points consistent in spacing for smooth lines
  • Use more points on curves, fewer on straight sections
  • In video mode, polylines can be tracked across frames like any other annotation
  • For 3D point cloud lanes, polylines are placed in the 3D space and projected onto camera views for verification