Quality inspection for food and beverage packaging