Skip to content

Commit

Permalink
update project xml with useful hotkeys
Browse files Browse the repository at this point in the history
  • Loading branch information
themattinthehatt committed May 7, 2024
1 parent d06a097 commit d28060e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions lightning_pose_app/label_studio/create_labeling_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,13 @@ def build_xml(bodypart_names):
view_str += "\n<View>"
view_str += "\n<Header value=\"Select keypoint name with the cursor/number button, " \
"then click on the image.\"/>"
view_str += "\n<Text name=\"text1\" value=\"Important: Click Submit after you have labeled " \
"all visible keypoints in this image.\"/>"
view_str += "\n<Text name=\"text2\" value=\"Also useful: Press H for hand tool, " \
"CTRL+ to zoom in and CTRL- to zoom out\"/>"
view_str += "\n<Text name=\"text1\" value=\"Save annotations: " \
"click Submit (or CTRL+ENTER)\"/>"
view_str += "\n<Text name=\"text2\" value=\"Manipulate image: press H for hand tool, " \
"\nCTRL+ to zoom in and CTRL- to zoom out\"/>"
view_str += "\n<Text name=\"text3\" value=\"Next frame: SHIFT+DOWN, then SHIFT+RIGHT\"/>"
view_str += "\n<Text name=\"text4\" value=\"To copy keypoints to another frame: hold CTRL " \
"and select all keypoints; CTRL+c to copy; move to new frame; CTRL+v to paste\"/>"
view_str += "\n <KeyPointLabels name=\"kp-1\" toName=\"img-1\" strokeWidth=\"3\">" # indent 2
for keypoint, color in zip(bodypart_names, colors_to_use):
view_str += f"\n <Label value=\"{keypoint}\" />" # indent 4
Expand Down

0 comments on commit d28060e

Please sign in to comment.