How to check a shifted contour centroid before picking
The moments-based centroid refers to the region represented by the contour. Fixture occlusion or a part cutout can shift it away from a usable contact area.
How to test it
Plot the centroid and the tooling contact region on the same source image. Sort samples by occlusion and record both centroid displacement and the remaining usable grasp region.

ZHILIANHAI