Implemented the blob detector algorithm