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

Image annotator - catch click events for single point coordinates of the image #2010

Closed
lafink opened this issue Jun 6, 2023 · 1 comment · Fixed by #2026
Closed

Image annotator - catch click events for single point coordinates of the image #2010

lafink opened this issue Jun 6, 2023 · 1 comment · Fixed by #2026
Labels
feature Feature request good first issue Contributions welcome! ui Related to UI

Comments

@lafink
Copy link

lafink commented Jun 6, 2023

Requested solution

To catch click events and to have a smooth experience with the ui.image annotator, we would like to have something like a point selector that reacts on click events and acts like a trigger. This way we can prompt models given an image point coordinate to obtain the polygon vertices which we would like to use to draw the new polygon shape with the ui.image_annotator.

Describe alternatives you've considered

It's also possible to prompt models of interest with a box but this would slow down the data labeling process and would not be as smart and efficient as using the point coordinate.

@lafink lafink added the feature Feature request label Jun 6, 2023
@mturoci mturoci added the ui Related to UI label Jun 6, 2023
@mturoci
Copy link
Collaborator

mturoci commented Jun 6, 2023

Implementation notes:

  • Add a new events attribute, which would be a string array as in other components.
  • If click event is found in events emit the click event together with clicked coordinates.
  • Check if it's possible to update existing annotations with a new one after the event is fired.

@mturoci mturoci added the good first issue Contributions welcome! label Jun 6, 2023
marek-mihok added a commit that referenced this issue Jun 19, 2023
marek-mihok added a commit that referenced this issue Jun 20, 2023
marek-mihok added a commit that referenced this issue Jun 20, 2023
mturoci added a commit that referenced this issue Jun 20, 2023
mturoci added a commit that referenced this issue Jun 20, 2023
marek-mihok added a commit that referenced this issue Jun 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature request good first issue Contributions welcome! ui Related to UI
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants