I'm struggling to find the right algorithm to filter a list of x,y coordinates (source : cv2.matchTemplate).
My data is like: [(552, 429), (553, 429), (457, 477), (458, 478), (1208, 671), (1209, 671), (467, 712), (468, 712)]
These coordinates are useful to draw rectangles to locate where template is found in a picture but I need to "click" on this template so I need only one angle. I want to keep only coordinates whose distance is greater or less than N from all other points.
In this picture, I want to keep only red dots coordinates not blue rectangle coordinates.
