identifying packaging defects with ai