23. Scrap Trailer Content Extraction Using YOLOv8 and SAM2

Authors

Keywords:

industrial computer vision, scrap recycling, object detection, image segmentation, YOLOv8, SAM2

Abstract

Automated recognition of scrap loads in trailers can be affected by trailer interior and background content that visually resemble the material of interest. Extracting the visible scrap before downstream recognition can reduce this interference, but creating dense segmentation annotations for steel scrap contents, which have a highly irregular appearance, is a time-consuming task. We first evaluated a lightweight region-proposal pipeline based on Sobel edge energy combined with a pretrained SAM2, which achieved successful extraction in 918 of 1,002 held-out images (91.62%). To improve localization, we manually annotated 368 scrap bounding boxes and fine-tuned a pretrained YOLOv8small detector. The detector was then used to propose boxes for another 466 images. After visual inspection, all proposals were accepted, producing 834 verified bounding-box annotations. The final YOLOv8–SAM2 pipeline requires no manually annotated segmentation masks, SAM2 fine-tuning, or mask post-processing. On the same held-out benchmark, it successfully extracted the contents from 980 images (97.80%), providing 62 additional successful cases over the heuristic baseline. The results show that reliable scrap-content extraction can be achieved with limited task-specific annotation by combining learned localization with pretrained segmentation.

Downloads

Published

2026-09-24