Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add shortcuts for changing the current label #2317

Closed
cpudney opened this issue Oct 13, 2020 · 10 comments · Fixed by #3070
Closed

Add shortcuts for changing the current label #2317

cpudney opened this issue Oct 13, 2020 · 10 comments · Fixed by #3070
Assignees
Labels
enhancement New feature or request

Comments

@cpudney
Copy link

cpudney commented Oct 13, 2020

It would be useful if keyboard shortcuts existed for the labels used during an annotation task.

During the annotation process it is often necessary to change to a different label from the current one. This involves using the mouse to select the label in the annotation widgets on the left-hand side of the GUI. Providing this action via a shortcut would make annotation more facile and quicker.

The shortcuts could be keys: 0 ... 9 and would correspond to the (first 10) labels (e.g. alphabetically ordered).

@bsekachev
Copy link
Member

Hi,

One question here. Where a label should be changed? In all drawing popups? Or on the latest used? Or only for N shortcut? How do you see the feature?

Additionally I can say that 0 ... 9 isn't the best choice, because these keys used in attribute annotation mode. We can use them only with an additional modifier (like ctrl or shift). In long term view these shortcuts could be setup by a user.

@bsekachev bsekachev added the enhancement New feature or request label Oct 13, 2020
@bsekachev bsekachev added this to the Backlog milestone Oct 13, 2020
@cpudney
Copy link
Author

cpudney commented Oct 14, 2020

Thanks, Boris for your quick response.

Where a label should be changed?
In all drawing popups? Or on the latest used? Or only for N shortcut?

Ideally, apply to all drawing popups but if that's not feasible, the current drawing mode (N shortcut). So for example

  1. you select the polygon drawing method and a specific label
  2. label several objects in the image for the current label (using N shortcut in the process)
  3. now you want to start labelling a new category of object so use the new shortcut (e.g. Ctrl+2) to switch to the new label
  4. continue labelling objects in the usual fashion

We can use them only with an additional modifier (like ctrl or shift)

Understood - I think Ctrl+ (or Alt?) might be better as Shift+ produces different characters on various keyboard layouts.

@xyc2690
Copy link

xyc2690 commented Dec 14, 2020

Any update? How could I help to do it?

@bsekachev
Copy link
Member

Hi, @xyc2690

The core team isn't working on the feature. If somebody from the community could propose a PR, it would be great

@xyc2690
Copy link

xyc2690 commented Dec 28, 2020

Hi, @xyc2690

The core team isn't working on the feature. If somebody from the community could propose a PR, it would be great

Thanks for your kind notification.
I am willing to work on the feature, however, I am not familiar with TS.
Does there any examples or similar functions which I can take them as references?

@bsekachev
Copy link
Member

@xyc2690

TS is just a superset of JS, nothing really difficult if you familiar with JS. You can look how other shortcuts are implemented I suppose. I would suggest to make a search using key GlobalHotKeys in the project. We use the library https://github.com/greena13/react-hotkeys to maintain shortcuts.

@xyc2690
Copy link

xyc2690 commented Dec 28, 2020

@xyc2690

TS is just a superset of JS, nothing really difficult if you familiar with JS. You can look how other shortcuts are implemented I suppose. I would suggest to make a search using key GlobalHotKeys in the project. We use the library https://github.com/greena13/react-hotkeys to maintain shortcuts.

Thanks a lot, I will try to make it!

@vnishukov vnishukov self-assigned this Jan 18, 2021
@lisc199
Copy link

lisc199 commented Feb 2, 2021

@xyc2690 Hi~ I have the same requirement. Have you achieved this function?

@JimEverest
Copy link

Same requirement. It's a very useful shortcut for improving work efficiency.

@Serakov
Copy link

Serakov commented Mar 11, 2021

Same requirement. It's a very useful shortcut.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants