Tool for annotating keypoints in images
- Run program
In terminal, specify the following command with images to annotate placed in images
:
python .\annotate.py --image-folder images
- Training
In order to guide the user of how the annotation task should be ideally performed, there are some training examples to begin with. The training examples is completed before the real annotation work can begin. For each training example the following steps must be performed:
-
- Click on the next body part according to the help text and the guideline in the bottom left corner.
-
- A marker with a grey color indicates that the marker is not correctly placed. Drag the marker to adjust its location.
-
- When the correct location is assigned to a marker, the marker is displayed in the color corresponding with the guideline. Accordingly, the next body part can be placed by repeating the procedure.
-
- When all body part markers have been correctly placed, CONFIRM ANNOTATION should be pressed and the next training example will pop up
-
- After completing all training examples the user is displayed a message and should press the button START TO ANNOTATE to start annotating.
- Annotate images
After completing training, the user starts annotation images:
-
- Similarily to during training, the body parts are clicked in a specific sequence indicated by the help text and the guideline of the bottom left corner of the annotation GUI.
-
- At any time body parts can be clicked and dragged to adjust the placement of markers.
-
- When all markers have been placed and the user is satisfied with the placement of markers the annotation is saved by pressing CONFIRM ANNOTATION. The next image is then displayed to the user and the process of annotating an image is repeated.
-
- If the user at any time wants to change a previously annotated image the button LAST IMAGE can be pressed and adjustments made accordingly. The updated locations of markers will replace the ones that already exist.
A more thorough description of the functionality of the annotation GUI as well as of how to annotate correctly is given below.
- Close program
The program can be closed at any time by pressing the ESCAPE key and restored by running the program as described above.
All body parts should be annotated in all images. If a body part overlaps another or the body part is not visible in the image, the marker should be placed where the user believes the body part to reside in the 2D-plane. Although this can result in markers being placed on top of each other, this is consistent with the guidelines of annotation.
The final coordinates is recorded from the center of the body part markers. Hence it is important to be precise when placing the markers.
- Top of the forehead
- Tip of the nose
- Center of the right ear
- Center of the left ear
- Center of the larynx
- Center of the right shoulder joint
- Center of the right elbow joint
- Center of the right wrist joint
- Midway between the center of the left and right shoulder
- Center of the left shoulder joint
- Center of the left elbow joint
- Center of the left wrist joint
- Midway between the left and right pelvis (see definition of left and right pelvis below)
- Right spina iliaca anterior superior
- Center of the right knee joint
- Center of the right ankle joint
- Left spina iliaca anterior superior
- Center of the left knee joint
- Center of the left ankle joint
- GUIDELINE: displays the order of how the body parts should be clicked and which colors that belong to which body parts
-
LAST IMAGE: button to move to the last image that was annotated
-
CONFIRM ANNOTATION: button to confirm annotation and move to the next image
-
CLICK on image: Place marker on the next body part to annotate
-
DRAG existing marker: Adjust location of existing marker
-
RIGHT CLICK on image: Same as CONFIRM ANNOTATION
-
RIGHT ARROW: Same as CONFIRM ANNOTATION
-
ENTER: Same as CONFIRM ANNOTATION
-
SPACE BAR: Same as CONFIRM ANNOTATION
-
LEFT ARROW: Same as LAST IMAGE
-
BACKSPACE: Same as LAST IMAGE
-
ESCAPE: Close the program