I am getting a matrix from a websocket and converting it to an b/w image. Then I do contour detections and get the centroids from that. What I need is to detect one time and the