The determination of the quality of some foods with traditional techniques is considered as deceptive and costly. For this reason, more objective and fair methods are preferred for the measurement of food quality. In food industry it is very common to use image processing methods that uses the color, size etc. of foods to measure the quality and to classify them. In this study, it is aimed to measure the quality of food products (vegetables and fruits) with computerized systems as easily and objectively by a near infrared spectroscopy.