Various methods are employed for food inspection; however, the persistent demand from both manufacturers and consumers remains due to the limitations of existing inspection technologies. This study introduces a novel technique for enhancing food safety and conducting large-area quality assessments using terahertz (THz) waves. This approach enables the classification of quality grades and the safe detection of soft matter, facilitated by high-speed mechanical raster scan imaging. Leveraging a two-dimensional complex refractive index map, we address the challenges posed by the uniformity in optical properties within food materials and foreign bodies, attributed to high water absorption and the presence of diverse compounds. Consequently, we anticipate improved foreign substance inspection and detection. These cutting-edge THz spectroscopic and imaging techniques, representing nondestructive inspection approaches, have the potential to elevate food safety and quality standards.