Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

idea: compare avatars #13

Closed
tobozo opened this issue Aug 26, 2023 · 13 comments
Closed

idea: compare avatars #13

tobozo opened this issue Aug 26, 2023 · 13 comments
Labels
enhancement New feature or request

Comments

@tobozo
Copy link

tobozo commented Aug 26, 2023

hi,

The possibility of false positive matching with short account names (e.g. less than 5 characters) is superior to 10%.

This number can eventually be lowered by comparing avatar images between twitter and bluesky, giving more confidence to the matching evaluation.

However, similar images may still differ (scaling, cropping), so this is a double-edged situation.

https://github.com/rsmbl/Resemble.js
https://github.com/mapbox/pixelmatch

@kawamataryo kawamataryo added the enhancement New feature or request label Aug 27, 2023
@kawamataryo
Copy link
Owner

Thank you for the suggestion. It's a good idea.
There may be some issues such as differences in image size and performance of comparison processing, but I will consider if it is implementable.

@cooljeanius
Copy link

I was thinking of this, too, as it's one of the steps that I take manually

@Zero3K
Copy link

Zero3K commented Feb 8, 2024

Any news regarding this?

@cooljeanius
Copy link

@PropertyOfMyCat had some ideas relevant to this in issue #33

@PropertyOfMyCat
Copy link

For avatar matching, I propose first preprocessing the images from both Twitter and Bluesky to account for differences that are artefacts that might result from differences in image compression. Probably the route to go could be:

  1. Greyscale
  2. Threshold to create B/W image
  3. Reduce pixel resolution to something common to both (side-effect: should speed-up processing)
  4. Compare with pixelmatch (simple) or opencv (more complicated, likely better results)
  5. Check if similarity score passes threshold to infer a match/mismatch

Alternatively, just show both avatars side-by-side in the results and let the human verify that the match isn't a false positive!

@tobozo
Copy link
Author

tobozo commented Nov 20, 2024

palette analysis could also help with identifying default avatar images so that their score can be lowered

image

@kawamataryo
Copy link
Owner

kawamataryo commented Jan 29, 2025

I am currently working on this feature. There is a possibility of false negatives, but it seems feasible to some extent. Please look forward to the release.

wip branch: https://github.com/kawamataryo/sky-follower-bridge/tree/compaire-image

Clipboard-20250129-212620-449.mp4

@tobozo
Copy link
Author

tobozo commented Jan 29, 2025

@kawamataryo you might be interested by this project https://github.com/ISCPIF/OpenPortability

theyr'e running a site that should eventually help with migrating the followers by using account matching https://openportability.org

@kawamataryo
Copy link
Owner

@tobozo That's website was previously called HelloQuiteX, wasn't it? I signed up, but it didn't work properly. Did you manage to transfer your account?

@tobozo
Copy link
Author

tobozo commented Jan 29, 2025

yup that's HelloQuitteX, they had to move to a hosting with better DDOS protection, and they should enable the migration tools any time soon.

@tobozo
Copy link
Author

tobozo commented Feb 3, 2025

@kawamataryo the migration tool was finally enabled, it only found 29 more accounts but doesn't specify if those are followers, followees, or both, I suspect it is both so I can't tell if/why sky follower bridge missed those accounts.

Image

@kawamataryo
Copy link
Owner

@tobozo
I see! I'll check it out myself.

I think OpenPortability matches using a different logic than Sky Follower Bridge. Since the matching logic of Sky Follower Bridge is not perfect, discrepancies are unavoidable.

@kawamataryo
Copy link
Owner

Avatar comparison was implemented in v2.8.0. Please give it a try.
https://bsky.app/profile/sky-follower-bridge.dev/post/3lheppj4jlc2s
Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants