Smart quality management system in clothing factories