Sensor and camera system for online image analysis of filament yarn defects