A method is provided for controlling the quality of a fiberglass mat. The method includes the steps of dyeing a test specimen of the fiberglass mat, scanning the test specimen with an optical detector to collect color data and comparing the color data to a predetermined standard to determine if the fiberglass mat is within the desired product specification.