{% load i18n %} {% blocktrans %}
Left click on the image to create new line, Right click to add points and Left click again to finish it.
You can keep the mouse button pressed for free drawing.
Hitting escape while drawing a line cancels it.
If regions matter to you switch to region mode first (R key).
when in region mode Left click to create a new rectangular region, left click again to finish it.
lines drawn inside a region will automatically be bound to it.
When the quality of the segmentation is good, you can prompt the system to calculate masks ,
once a page already has masks new lines will automatically get a mask and updating a line will also recalculate its mask.
Note that the quality of the masks is highly dependent on the quality of the whole segmentation, not only the corresponding line,
so make sure to draw all the lines before calculating the masks.
You can also have the option to calculate the masks en masse in the Images tab -> segment -> choose 'Only masks'.
Left click on a line to selects it, then you can drag it's closest control point.
Double click on the line will create a new control point at the mouse location.
You can reverse the order of the line's points by selecting a line (or multiple) and using reverse (I key).
When in region mode, Regions can be edited the same way.
Selected lines can be linked or unlinked to regions with the corresponding buttons (Y key) (U key).
By using the cut mode (C key) you can cut through lines, splitting them in two or removing part of them.
If at least two lines are selected a option to join them becomes available (J key).
You can go through your changes history back and forth with Ctrl+Z(undo) and Ctrl+Y(redo) or by using the corresponding buttons .
Shift+click allows to add or remove a line from the selection,
Clicking on an empty space clears the selection,
shift and drag creates a lasso selection tool that allows to select control points (they then appear black).
Note: If lines are already selected the lasso will only select points in those lines.
Ctrl+drag allows to move all the selected control points at once (or the selected lines if no control points are selected).
The red trash button deletes all selected lines/regions,
The yellow trash button only deletes selected control points.