Quality Inspection of Food and Agricultural Products using Artificial Intelligence