JARVIS-MoCap / JARVIS-AnnotationTool

AnnotationTool to create multi-view annotations for the JARVIS 3D Markerless Pose Estimation Toolbox
https://jarvis-mocap.github.io/jarvis-docs/
GNU Lesser General Public License v2.1
24 stars 6 forks source link

Add hotkeys for keypoint suppression and skipping #21

Closed jonahpearl closed 8 months ago

jonahpearl commented 1 year ago

Hi there -- thanks for creating and maintaining this tool, I've been enjoying using it. We sometimes have long lists of keypoints, only some of which are visible in a given frame, and so I've been wanting a keyboard shortcut to suppress keypoints, instead of having to click through the context menu on each one. Here's my first shot. (ChatGPT was a big help in writing the code for this!) It compiles and seems to work well for me.

There are two changes: Cmd-R will toggle suppress / unsuppress for the selected keypoint, and move to the next keypoint in the list. Cmd-E wills simply move to the next keypoint without changing anything.

I believe I was able to do this in such a way that this doesn't interact with anything else in the code (other than updating the viewer when necessary), so hopefully it's a straightforward review.