Where to look when a vision station overcounts parts
Connected component counts come from the segmented pixel mask. Reflections or shadows can break a single physical part into several labeled regions, increasing the count.
How to test it
Overlay the labels on one overcount frame and compare them with manually confirmed part boundaries. Keep the source image and mask to locate the error in segmentation or counting.

ZHILIANHAI