Commit Graph

2 Commits

Author SHA1 Message Date
56588ff5e3 [0.0.15] Segmentation phase 6: the segments overlay in the Capture window, colours to choose
- The Capture window draws a segmented image's segments over it: each class in its colour, a shade
  of it for each instance, edges darker; under the OCR boxes, at any fit and zoom. A viewer worker
  reads the segs and mask chunks (never the images); the main thread makes the texture from the
  mask when the capture, the opacity or the classes hidden change.
- Above the image: Segments on or off, the opacity, and a legend of the classes (largest first,
  with counts): untick one to hide it, right click it to search has: for it. Hovering the image
  shows the segment's class, score and share of the image.
- Colours: a class's own is a hue from its name's hash. Its legend swatch is a colour picker
  (ImGui ColorEdit3) to choose another, kept in %APPDATA%\mcap\segment-colours.config for every
  image and library; right click it to go back to its own.
- Tests: the overlay's pixels (shades, edges, hidden classes, opacity), reading a file's segments
  for it, and chosen colours.
- This completes segmentation-plan.html's six phases.
2026-10-10 04:44:05 +01:00
3e6e733a9d [0.0.13] Segmentation phase 4: per-folder opt-in, the segmentation scan, -segment
- .library-folders in the library (src/app/library_folders.jai): each library folder's options,
  starting with segment: true. Every folder starts off; unknown keys are kept when it is rewritten.
- The Segmentation window (Segments, above the grid): each folder's Segment checkbox, how many of
  its images are segmented, and Erase per folder; a button to segment the folders set to segment.
- The segmentation scan (src/app/segment_ui.jai) runs on the OCR thread as its own task, with the
  OCR scan's progress, pause and cancel: images only (never videos), not yet segmented, in folders
  set to segment. The engine loads with the first scan (2.4 GB of GPU memory). Each image's segs and
  mask are stored in one rewrite and its catalog entry loaded again.
- Importing into a folder set to segment segments the new images; the Import window's checkbox is
  the folder's setting.
- -segment segments and exits; -erase segments, and -erase all now includes segments.
- The catalog reads each capture's segs (class list hash, segment count). The exit overlay names the
  segmentation scan and model. segment_mcap_chunks moved into modules/Segment, shared with
  segment-probe. The quoting helpers of Capture_File's text formats are public.
- Tests: .library-folders read and written back (quoted names, unknown keys, versions).
2026-10-10 04:13:03 +01:00