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?