catch defects on power cables using OpenCv