A Vision-Based Quality Control Model for Manufacturing Systems