I have 60ish objects in an image that I detected minarerect's for and I'd like to find clusters of similarly angled rectangles within a certain distance threshold of each other. I looked into kmeans a little, and I'm still kind of confused about the approach, but I'm pretty sure that kmeans isn't what I want to use since it needs me to tell it how many clusters I want to find, which is something I don't know.
As you can tell I'm new to opencv. I would appreciate any advice I can get from you all.