I got this image

I like to find the centre of each white area and mark it as red (also get their coordinates).
I am looking into moments functions, is there a better way to get the centre point? do help or share ur codes/ideas.
↧