P
3-SAM: SAM with Perceptual Parallel Prompt for Few-Shot Strip Steel Surface Defect Segmentation
P$^3$-SAM adapts Segment Anything Model (SAM) to few-shot segmentation of strip steel surface defects, which suffer from low contrast, uneven illumination, and fine-grained textures. The model introduces Perceptual-Optimized Encoding to enhance local contrast and texture detail, and a Parallel Prompt Generator that produces both semantic and spatial prompts for SAM's decoder. On three benchmarks, P$^3$-SAM achieves state-of-the-art results, with a 12.00% mIoU improvement on Surface Defects-4i.