Text this: PCB defect detection system using run-length encoding