what is real-time defect detection