$ 0 0 As I wrote, you need to do blob detection. There are some Processing libraries able to do that. No idea on the algorithm they use...