--- title: "Polyline" slug: "create-polyline" updated: 2024-06-03T10:48:48Z published: 2024-06-03T10:48:48Z canonical: "docs.dataloop.ai/create-polyline" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.dataloop.ai/llms.txt > Use this file to discover all available pages before exploring further. # Polyline ## Overview This type of annotation is created by using lines. For example, it can be used in autonomous vehicles to detect and recognize lanes. The Polyline is available on image and video items. --- ## 2D Polyline The polyline annotation tool is a software feature or application designed for the manual creation and editing of polylines on digital data, typically in the context of image or spatial data annotation. A polyline is a sequence of connected line segments defined by a series of vertices, and it's commonly used to outline or mark features in an image or a spatial dataset. For example, outlining the contours of cars, pedestrians, trains, or other objects. ### Create 2D Polyline Annotations 1. Go to the Annotation Studio. 2. Select the **Polyline** tool. 3. Draw the Polyline on the canvas. 1. **Straight lines**: Click multiple points on the canvas to create a Polyline around your target object/item. 2. **Free-hand**: Click and hold the mouse button. A Polyline will be drawn as you move your mouse. Delete free-hand dots by holding shift and dragging the mouse cursor. 4. Close the Polyline to finish its creation phase: 1. Right-click anywhere to finish creating your polyline. 2. Press **Enter** to close the Polyline. 3. Press **Esc** to cancel Polyline creation. ![](https://cdn.document360.io/53f32fe9-1937-4652-8526-90c1bc78d3f8/Images/Documentation/image%28188%29.png) Free-hand sections are created as bulk operation; therefore, undo/redo operations will affect an entire series of points and not just the recently created ones. ### Polyline Editing 1. The Polyline tool must be selected in order to edit polyline annotations. 2. Click on a Polyline to have it selected. 3. Drag & drop a Polyline to move it In the canvas. 4. Hold **Shift+Arrow** key to make fine position adjustments to the Polyline position. 5. Double-click a Polyline to put it into editing mode. 6. Hold any of its points to drag & drop and change the Polyline shape. 7. Right-click on any dot to delete it. 8. Double-click anywhere on the canvas or press **Esc**, or **Enter** to exit edit mode. ### Arrowhead on Polyline Enable this feature in the [recipe](https://docs.dataloop.ai/docs/instructions#video-and-audio-transcript-studio) to use an arrowhead drawn on the polyline, serving as an indication of direction when annotating in tasks requiring this feature. ![](https://cdn.document360.io/53f32fe9-1937-4652-8526-90c1bc78d3f8/Images/Documentation/final_604f6f0ebe806a00d7b09bb5_934695%281%29.gif) ---