Quality measurement of fruits and vegetables