Bug 427907 - person name appears in tool tip and also search and also people listing but is shown as unknown in the photo
Summary: person name appears in tool tip and also search and also people listing but i...
Status: RESOLVED NOT A BUG
Alias: None
Product: digikam
Classification: Applications
Component: Faces-Detection (show other bugs)
Version: 7.1.0
Platform: Other Other
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-18 08:19 UTC by Lrnt
Modified: 2020-10-22 19:34 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 7.2.0


Attachments
person name appears in tool tip and also search and also people listing but is shown as unknown in the photo (1.16 MB, image/png)
2020-10-18 08:19 UTC, Lrnt
Details
read metadata from file to database (4.45 KB, image/png)
2020-10-18 08:31 UTC, Lrnt
Details
additonal square around face (from picasa 3) (705.71 KB, image/png)
2020-10-18 08:32 UTC, Lrnt
Details
sample pictures (2.44 MB, image/jpeg)
2020-10-18 09:40 UTC, Lrnt
Details
samples picture before adding metadata (2.44 MB, image/jpeg)
2020-10-18 09:41 UTC, Lrnt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lrnt 2020-10-18 08:19:22 UTC
Created attachment 132516 [details]
person name appears in tool tip and also search and also people listing but is shown as unknown in the photo

SUMMARY
person name appears in tool tip and also search and also people listing but is shown as unknown in the photo

STEPS TO REPRODUCE
1. i installed digikam . then it imported all the photos (they were originally tagged with picasa 3).
all the name of the faces I tagged with Picasa appear in the people listing.
but when you search for the face or make show face tag most of the face are in the "who is it " mode and are listed as unknown although when you hover over the thumbnail the tooltip shows that this person is in the photo. See attachement

It might be a beginner mistake

OBSERVED RESULT


EXPECTED RESULT



SOFTWARE/OS VERSIONS
Windows: 10
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Lrnt 2020-10-18 08:31:20 UTC
Created attachment 132517 [details]
read metadata from file to database
Comment 2 Lrnt 2020-10-18 08:32:08 UTC
Created attachment 132518 [details]
additonal square around face (from picasa 3)
Comment 3 Lrnt 2020-10-18 08:32:12 UTC
I just saw that if I click on the right side (see picture) READ Metadata from file to database it create a new "square" around the face with the correct name (the one I gave in Picasa3)
See pictures.
Comment 4 Maik Qualmann 2020-10-18 09:13:16 UTC
You have to distinguish between tags and the names of the people assigned to face rectangles. Beises is separated in the metadata of the images. Bu probably never confirmed the Picasa faces, so the names were not added to the metadata. Please upload a sample photo.
If face rectangles deviate too far from each other, digiKam creates a new face rectangle. You can temporarily activate a "clean up the database" in the digiKam settings under metadata if you want to reset the face rectangles to the metadata of the images.

Maik
Comment 5 Lrnt 2020-10-18 09:40:21 UTC
Created attachment 132519 [details]
sample pictures

Please find a sample picture
Comment 6 Lrnt 2020-10-18 09:41:23 UTC
Created attachment 132520 [details]
samples picture before adding metadata
Comment 7 Maik Qualmann 2020-10-18 11:00:03 UTC
I can't see any problem with the images here, the girl's name is displayed correctly in the face rectangle. If I compare the size of the face rectangles, I suspect that you did not import the Picasa metadata. We see this problem every now and then under Windows because the file is probably locked during the first scan by another process. We still have to work on that.
Activate the option to clean up the database temporarily in the metadata settings and perform a re-read of the files.

Maik
Comment 8 Lrnt 2020-10-18 11:45:52 UTC
Hi Maik
thanks for the time you spend on my problem. I thought the picasa face tags are transformed in face tags automatically when scanning the first time.

I have two more short questions: 
You wrote: "I suspect that you did not import the Picasa metadata." : I did not do anything actually, I thought it was done by default, because all the name of the persons appeared in the people list. So how do I import the Picasa 3 data (i do not have google, just the stand alone picasa 3 version).

ANd second question: when you write  to clean up the database temporarily do you mean I tick the box "clean up the metadata from the database when rescan file" and then I press "scan collection for faces" or "scan for new items" or ...? 
thanks a lot,
Laurent
Comment 9 Lrnt 2020-10-20 21:09:58 UTC
Hi Maik, 
I was wondering if you had had time to look at my previous message. thanks a lot
Laurent
Comment 10 Maik Qualmann 2020-10-21 05:46:21 UTC
In principle, digiKam imports the metadata (including faces) with the first scan. This sometimes fails on Windows. So, activate the option to temporarily clean up the database. Then re-read the metadata from the affected images. Either from the item menu or with the maintenance tool.

Maik
Comment 11 Lrnt 2020-10-21 13:33:18 UTC
thanks a lot Maik. It worked fine. I selected all the files and reread the metatadata from the item menu. have a great week
Comment 12 Lrnt 2020-10-21 13:48:42 UTC
Hi Maik 
You seem to know well about face recognition. I have the impression that Digikam is quite good for relatively big faces but smaller ones he does not find. For example when erased all the faces that Picasa recognised and then rescanned for faces he most of the time did not find the smaller ones that Picasa had found. 
On the other side, Digikam recognises my dog :-)
Comment 13 Maik Qualmann 2020-10-22 06:51:45 UTC
We are currently using a smaller data model for facial detection so as not to enlarge the install bundle too much. Another large data model also recognizes small faces. We plan to make it available as a download within digiKam. See these bug reports: Bug 426309, Bug 420128

Maik
Comment 14 Lrnt 2020-10-22 19:34:08 UTC
Hello Maik,
thanks for this feedback. 
After our discussion i went to try to import part of the photos I have (more than 600Gbyte, about 150'000 photos. 
The original scanning took Digikam almost 24hours (first comment here. I do not have an issue with this but probably many users that just want to try digikam would be scared away from the SW and go for ACDSEE or something else....the reason why is that it blocked my computer for a full day: So could you not improve it and do the scanning in the background like PICASA3 does. So at least the people can browse their photos immediatly. User Experience would be 100 times better).

Next when the scan was finished, again NO Face rectangles were recognised at all out of the PICASA3 faces. All the names of the people were in the list of persons but no face rectangles at all. So same as my first experience. 
I had to reread the metadata for each photo. 

This was my input for this big bunch of photos.

But basically, making Digikam do the scanning and then face recognition work in the background would make it a great SW like Picasa3 was.