| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
…l points or a tighter box
With auto compute on the other camera, the mapped shape gets the same mask and/or points pass once the transfer succeeds; a derived head/tail follows the source camera's direction.
Lets the VIAME service keep a line-prompted mask in scale with the line.
# Conflicts: # client/dive-common/use/useModeManager.spec.ts
A box warped to the other camera whose mask overlaps it by less than half its union takes the mask's bounds instead. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
|
Sorry, something went wrong.
The service's polygons list, with holes, is stored as keyed polygons on the detection; a refinement drops the components it no longer has. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
… is on A confirmed mask on a brand-new detection now takes the same keypoint pass as a drawn box, on the source camera and on the stereo copy. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
|
Sorry, something went wrong.
With auto-segmentation on, points inside the source mask are warped instead of the box corners, the other camera is segmented from them, and its box is that mask's bounds. Corner warping remains the fallback. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
|
Sorry, something went wrong.
…moves it The pass runs after each click's prediction on both cameras, replacing only a line it derived itself. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
|
Sorry, something went wrong.
The other camera's mask comes from the service, which seeds from inside the source mask and refuses an out-of-scale result, instead of DIVE warping prompts and predicting itself. Click segmentation sends every source polygon and draws every returned one.
|
Now depends on #1952 (merged into this branch): the mapped stereo copy gets its mask from VIAME's stereo_segment instead of DIVE warping prompts and predicting, so the size filter lives entirely in VIAME (VIAME 55b9684cc). |
Sorry, something went wrong.
A re-warped line only grows the other camera's box when that box was fitted to a mask, instead of refitting it around the line. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
| Back | FazBrowse Home | New Git URL |
Two new switches under New Annotation Settings (desktop only — they use the VIAME interactive segmentation service):
Either switch triggers the segmentation; only what is still missing on the detection is filled in (an existing polygon or line is left alone), so a user who keeps annotating is not overwritten. Hooked through a new onNewAnnotationGeometry callback in useModeManager that fires only for the first shape of a track being created.
Progress is shown while annotations are being populated. Empty-mask responses, service errors, and results skipped because the annotation changed are reported in the viewer. A successful mask is saved before head/tail extraction, so a point-extraction failure does not discard it. Media paths and video timestamps are resolved for the annotation’s camera independently of the currently selected camera. Regression tests cover successive annotations, empty responses, partial success, and edits during pending requests.
Needs VIAME/VIAME#299 for the polygon_keypoints command. Helper functions (prompt construction, ring closing, bounds) are unit tested; the end-to-end flow was verified against the running service but not yet clicked through in the app.
🤖 Generated with Claude Code
Multiple polygons per fish
Preserve every returned mask component and hole under one annotation, and derive head/tail from the complete mask. Line-derived bounds cover all components. Simple single-polygon responses remain supported.
Full-mask head/tail extraction requires the companion service update in VIAME/VIAME#300. Older services report extraction failure for multi-component/hole requests while retaining the saved mask, rather than silently extracting from only one component.
Validation: 18 focused DIVE tests and nine companion Python tests pass; DIVE lint and type checking pass. Model inference was not run.
Line edits keep a mask-fitted box
Re-warping a moved line only grows the other camera's box when that box was fitted to its mask; it is refit around the line only when there is no mask.