Skip to content

Navigate a detection's polygons from either stereo camera - #1939

Open
mattdawkins wants to merge 2 commits into
mainfrom
dev/cross-camera-polygon-edit
Open

mattdawkins wants to merge 2 commits into
mainfrom
dev/cross-camera-polygon-edit

Conversation

@mattdawkins

@mattdawkins mattdawkins commented Sep 18, 2026

Copy link
Copy Markdown
Member

Edit handles, the mousedown camera switch and the commit routing from #1737 are already geometry-agnostic, so dragging a polygon vertex or a head/tail endpoint on the non-selected camera already commits to that camera, like boxes. What was still gated to the selected camera was polygon navigation:

  • right-click inside the editor on the other camera (polygon-edit-right-click) now selects that camera and switches to the clicked polygon there, instead of being ignored
  • the poly layer's right-click / right-click-outside handlers defer to the edit layer on any camera whose editor holds the detection, so a right-click no longer changes the selected key without switching camera
  • specs for both; the blocked-switch case (linking mode) stays ignored

Point-click segmentation keeps its own cross-camera path and is unchanged.

To try: select a detection present on both cameras, enter polygon editing, then on the other camera drag a vertex, right-click a second polygon of the same detection, and drag a head/tail point in line mode.

  • Follow-up: entering polygon editing now lands on a mask the detection already has (e.g. keyed SegmentationPolygon) instead of the empty key, so its vertices are editable at once rather than after a right-click; the stereo-segmented copy shares the source polygon's key so this holds on both cameras. Specs added.

🤖 Generated with Claude Code

Right-clicking a polygon of the selected detection on a camera that is
not selected now selects that camera and switches polygons there, the same
way box and vertex drags already do.
Entering polygon mode selected the empty key, so a keyed mask
(SegmentationPolygon) was not found and the editor started a new polygon.
The stereo-segmented copy now shares the source polygon's key.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant