Bug 375142

Summary: The similarity calculated for the fuzzy image drop search is imprecise
Product: [Applications] digikam Reporter: Mario Frank <mario.frank>
Component: Searches-SimilarityAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: mario.frank
Priority: NOR    
Version: 5.4.0   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In: 5.5.0

Description Mario Frank 2017-01-16 15:11:05 UTC
When dropping an image from outside of the digiKam database into the fuzzy search
while an identical image is present in digiKam, the similarity is not even near 100 % though it should be.

The problem seems to be some magic during loading the image as QImage. This seems to reduce the precision.

This file is opened for reference.
Comment 1 Mario Frank 2017-01-16 15:15:41 UTC
Git commit c97ac972bff7914efd94202ef26eb2d5bfb8ff66 by Mario Frank.
Committed on 16/01/2017 at 15:11.
Pushed by mfrank into branch 'master'.

Improved the exactness of fuzzy image drop search.
Some images which were present in DB and outside had only similarity of 98,13 % though they were identical.
The problem seems to be that QImage does some transformations which reduce the exactness.
Now the dropped external image is loaded as DImg which increases the similarity of the specific pictures to 99,41 %.
This is still not perfect but far more precise.
FIXED-IN: 5.5.0

M  +4    -2    NEWS
M  +1    -6    libs/database/haar/haariface.cpp

https://commits.kde.org/digikam/c97ac972bff7914efd94202ef26eb2d5bfb8ff66