05 December 2019 5 6K Report

Hello,

I am using Python and openCV to find the centroid of the blobs in a binary image. I use cv2.Moments() function to identify the centroid if there is only one blob. However, I do not have a system to loop through the blobs when there are multiple objects in the frame. I have tried using a contour based loop, however there are too many identified contours. I have also tried Canny Edge detection paired with a Gaussian Blur to help reduce the amount of edges picked up. Attaches is one of the binary images I am sending the python script.

More Martika J-M's questions See All
Similar questions and discussions