real time defect detection technology