You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
In my using of this function, I've encountered the problem of it detecting a single RuneLiteObject as being multiple, i.e. it spits out a List with duplicates in it.
Describe the solution you'd like
deduplication.
Describe alternatives you've considered
In my local copy I've patched the function like so:
before creating the RuneLiteObject and added it to the List objs, I run a check comparing its euclidean distance (np.linalg.norm is very fast) between centers to every other RLO in objs currently. If it's less than 10 pixels, I chuck it instead of appending.
My setup is a bit different to yours, I just snagged this function, so this isn't a direct drag-and-drop patch, but here's the code I have in my local copy to explain the idea. This has totally eradicated my duplicate problem.
Is your feature request related to a problem? Please describe.
In my using of this function, I've encountered the problem of it detecting a single RuneLiteObject as being multiple, i.e. it spits out a List with duplicates in it.
Describe the solution you'd like
deduplication.
Describe alternatives you've considered
In my local copy I've patched the function like so:
before creating the RuneLiteObject and added it to the List
objs
, I run a check comparing its euclidean distance (np.linalg.norm is very fast) between centers to every other RLO inobjs
currently. If it's less than 10 pixels, I chuck it instead of appending.My setup is a bit different to yours, I just snagged this function, so this isn't a direct drag-and-drop patch, but here's the code I have in my local copy to explain the idea. This has totally eradicated my duplicate problem.
The text was updated successfully, but these errors were encountered: