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

Mario Frank bugzilla_noreply at kde.org
Fri Jan 6 16:24:54 GMT 2017


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

--- Comment #36 from Mario Frank <mario.frank at uni-potsdam.de> ---
(In reply to Simon from comment #35)
> I use internal mysql and the images are not (exclusively) identical ones
> (range 30-100% gives all kinds of "similar" pictures as is to be expected).
> 
> I added your snippet and it produces 0/1 outputs like this:
>     digikam.database: Similarity of image  77839 in imageLister:  0
>     digikam.database: Similarity of image  77845 in imageLister:  1

Okay, I have found the evil thing. On SQLite, my solution works. I return the
similarity as constant in the select statement. But in MySQL the Query I
created is not stable. It seems that the double was cast to integer in the
database. Thus, the results are wrong. 

Can you replace the imagelister.cpp with my new one? The new solution still
works under SQLite.

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


More information about the Digikam-devel mailing list