OpenCV image test for defect detection (OBACHT, DESY)