Vision inspection project

During assembly, defects such as rips, tears or folded in tubes occur.
A tube is pushed onto a 15mm diameter connector which has a taper.
Tubes will be pushed on by varying amounts.
I’ve looked at using find_line_segments, summing horizontal lines in a ROI and comparing total length, but sometimes due to transparency, lines from rear are seen.
Not sure if I should approach this as defining the good feature mathematically or do some form of image comparison?

What method or methods would you recommend to detect?

Just use get_stats() and compare the color distribution of a few areas in the region of interest and see if they match the milky white color or not. This is all you need to do to detect a difference.

Thanks, I had looked at that but hadn’t tried but I’ll give it a go.