Page 1 of 2

Cool image search feature; probably not hard...

Posted: 28 May 2024 23:58
by Malarki
I recently needed to find pictures that are similar to one particular "reference" image.

I did try XY's Find w Dupe, but with 80K files this just slowed to a crawl, since every photo is compared against every other (I think).

Whereas all I really need is for every photo to be compared to my one reference shot.

Every "photo de-dupe" app I can find does the same thing as XY: compare all to all. None of them can just compare all to one.

So I suggest this as a cool and unique feature, which as noted I don't think would be hard to add.

Re: Cool image search feature; probably not hard...

Posted: 29 May 2024 00:38
by yusef88
try search by Image Hash ?Image Hash: 0703032500e7

Re: Cool image search feature; probably not hard...

Posted: 29 May 2024 00:53
by Malarki
Thanks; that looks like a clever way to find exact matches. But I want to find similar pictures, not just exact matches. So I need XY's "Dupe similarity" search feature.

Re: Cool image search feature; probably not hard...

Posted: 30 May 2024 09:22
by admin
Post two images that you would like to be considered similar.

Re: Cool image search feature; probably not hard...

Posted: 30 May 2024 11:10
by Malarki
Here are two pictures that I'd like to find as "similar". XY will match them if Dupe "Image Tolerance" is set to 13 or higher.

So for example I'd like to set "Reference.jpg" as my Reference picture, and "Image Tolerance" at 13, and have XY search through my folder tree of 80K+ images. It should find "Found.jpg" and any others that are just as similar or more similar to "Reference".

Re: Cool image search feature; probably not hard...

Posted: 30 May 2024 11:26
by admin
That would be a cool feature. Although there is no AI involved, so people will probably expect more than is possible without AI. Anyway, I'll add it to my list.

These are just some quick syntax sketches for later:

Quick Search Syntax: imgdupe:[reference image path] [/tolerance]

Example: imgdupe:C:\Users\Donald\Desktop\Desk\Reference.jpg /13

Re: Cool image search feature; probably not hard...

Posted: 30 May 2024 18:37
by Malarki
Glad to hear it! Thanks for considering this.

Re: Cool image search feature; probably not hard...

Posted: 31 May 2024 01:53
by jupe
Yeah I previously suggested it would be good to open tolerance up to quicksearch, but via image hash, your way probz more user friendly though.

viewtopic.php?p=212857#p212857

Re: Cool image search feature; probably not hard...

Posted: 31 May 2024 08:34
by admin
I think I can overload it like this, there are no ambiguities between a path and a hash:
imgdupe:[reference image path OR image hash] [/tolerance]

Re: Cool image search feature; probably not hard...

Posted: 31 May 2024 14:48
by admin
jupe wrote: 31 May 2024 01:53 Yeah I previously suggested it would be good to open tolerance up to quicksearch, but via image hash, your way probz more user friendly though.

viewtopic.php?p=212857#p212857
It ended up pretty close to your suggestion (12 is the tolerance here):
prop:#image.hash:12~518ce71800d7

Re: Cool image search feature; probably not hard...

Posted: 31 May 2024 23:19
by Malarki
Thank you! Added practically overnight; and it works great. This is something that AFAIK no other app can do. Plus I appreciate having my doll's hash enshrined in the XY change log. Couldn't be better.

Re: Cool image search feature; probably not hard...

Posted: 01 Jun 2024 01:06
by eil
Maybe i'm taking it too far, but somehow i feel this thing needs an own button added, 'cause indeed it's not a feature met casually in other file managers and decent users will never find it as filter commands use.
For example button could have something like 3 actions menu:
- Dupe-search of <selected> in Other Panel;
- Dupe-search of <selected> in <path in clipboard>;
- Set dupe-search tolerance.

Me personally can add this as script for myself, just tossing an idea for advertising feature to users.

Re: Cool image search feature; probably not hard...

Posted: 01 Jun 2024 02:06
by jupe
Just tested this out, works well, I think I will make use of this a lot more than the duplicates search panel. Nice job. :tup:

One thing I noticed in the changelog though, the tolerance range is listed as 0-99, but the find files panel is 0-16, is that correct?

Also since on the subject, theoretically would there be any speed difference to limiting search to images in the search term, or does the image.hash prefix already imply that? It's hard to tell based on testing with the caching affecting it.

Re: Cool image search feature; probably not hard...

Posted: 01 Jun 2024 02:15
by Malarki
eil: That's actually what I had in mind, not knowing that a workable version could be effected through the "Name" box with props. And I thought that with such buttons on the interface as you describe it might could be an advertisable feature. But that may put Don in the position of "supporting" or justifying the widely-varying results from the dHash method.

Re: Cool image search feature; probably not hard...

Posted: 01 Jun 2024 09:47
by admin
@jupe:

0-99: That's just what the parsing allows at the moment. In reality values > 16 quickly start to see everything as similar.

limiting search to images: yes, that's implied.