Clientside Image Segmentation with onnxruntime-web and Meta's SAM2

Quick Guide:

  1. Enable "Show Mask" and click on an object you want to add text to
  2. Hold Shift and click multiple times to merge masks
  3. Click "Add Text" button on the right
  4. Disable "Show Mask" to see your text clearly
  5. Drag text to position, use corner handles to resize
  6. Edit text content and style in the right panel

Text Layers