[digikam] [Bug 320666] Add search of similar images outside digiKam collections [patch]

Mario Frank bugzilla_noreply at kde.org
Wed Jan 4 23:17:27 GMT 2017


https://bugs.kde.org/show_bug.cgi?id=320666

--- Comment #17 from Mario Frank <mario.frank at uni-potsdam.de> ---
Hey Guys and Ladies,

I implemented the possibility to show the similarity of the pictures in table
view, when the fuzzy search sidebar is active. But I had to refactor my
similarity sort patch. It was not optimal and I would have had to communicate
the reference image id to which the specific image is similar everywhere via
signal/slot communication or application settings. I already had that and
learned that switching between the tabs in the fuzzy search sidebar leads to
instable similarity results.

Thus I took another approach. The current similarity value is stored in the
ImageInfo. Getting the correct similarity in the image info was not really
complex. The image search, sketch search and extern image drop search are all
HAAR searches. Thus, the albums are rebuilt automatically when i get to the
specific tab and the similarities can be extracted from the search results.
This way, I only have to store the similarities for duplicates search since one
image can be present in different duplicates albums with different
similarities.

The new solution is much more robust. Also, sorting by similarity is now also
possible in table view and also in the sketch search which was not possible
before.

But currently, when when the fuzzy search sidebar is not active, the similarity
column in the table view is still shown. But the similarity of the images is
0.0 since no reference image is present.

Also, I polished the code a lot and polished the patch for bug
https://bugs.kde.org/show_bug.cgi?id=374191 .

So, concerning the handbook, there would be the following changes:
In Table view, the context menu for activating colums contains the the option
similarity in the item section.
The find duplicates option in the context menu in faces sidebar uses the
selected face tags as ordinary tags in duplicates search.

I will upload the patch for review.

Cheers,
Mario

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Digikam-devel mailing list