Measuring the quality of packed foods