A method for subsurface inspection of food safety and quality is presented. The method is based on line-scan spatially offset Raman spectroscopy technique. The method can detect cane sugar through original plastic packaging. The method can detect melamine powder under a 5 mm thick carrot slice.