Halcon缺陷检测实例转OpenCV实现