Camera resolution, lighting geometry, and AI-based classification algorithms all contribute to detection accuracy — but the single biggest factor is how well the system integrates with your existing line speed and product handling, not raw megapixels.