The invention provides an apparatus and method for dispensing material onto a substrate. The apparatus comprises a dispensing system having a dipenser and a control system adapted to adjust a quantity of material to be dispensed onto the substrate. It also includes an image capturing system adapted to acquire an image of the material that is dispensed onto the substrate, a measuring system to analyze the image and measure the quantity of material dispensed, and a compensation system adapted to provide a correction signal to the control system to vary the quantity of material dispensed.