Machine vision tool for real-time detection of defects on textile raw fabrics