Industrial defect detection step by step