RatScanner / RatEye

Image processing library for Escape from Tarkov
12 stars 5 forks source link

pHash for image matching #4

Open alexandru-bagu opened 1 year ago

alexandru-bagu commented 1 year ago

Hello!

Has pHash been considered for finding the closest match? pHash performance is pretty good because it allows you to precompute all hashes of the images you want to compare with.

You can try their demo here: https://www.phash.org/demo/

Implementation wise it's pretty simple.

Blightbuster commented 1 year ago

I've never heard of it before. It indeed sounds very interesting and looks really promising from what I've seen yet. It would also remove the need to include the game icons with the library and instead only a small list of the hashes. Unfortunately I'm currently busy in life with other projects so it is unlikely I'll dedicate any time to it in the near future. If you'd submit a PR though (maybe even with some performance comparisons attached) I'd be more then willing to merge. There actually seem to be bindings for C# although I dont know if they are still maintained since they haven't been touched in a good while.