Bug 425359 - First face tag moves intermittently
Summary: First face tag moves intermittently
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Preview-Image (show other bugs)
Version: 7.0.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-14 22:22 UTC by Tom Cunningham
Modified: 2022-01-09 21:31 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 7.5.0


Attachments
Example for Bug 425359 (780.55 KB, image/jpeg)
2020-08-15 02:38 UTC, Tom Cunningham
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Cunningham 2020-08-14 22:22:42 UTC
SUMMARY
When assigning face tags via the preview screen, sometimes the first face tag does not end up on the face, but a little smaller and to the left.  Removing the errant rectangle and redoing fixes it, but it's kind of a pain.

STEPS TO REPRODUCE
1. Select "Add a Face Tag" from the preview image
2. Draw rectangle around face and fill in name then confirm
3. Mouse over face

OBSERVED RESULT
The rectangle with name appears smaller and to the left of the intended face.

EXPECTED RESULT
The rectangle with name should appear around the face.

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

ADDITIONAL INFORMATION
Comment 1 Maik Qualmann 2020-08-14 22:35:12 UTC
I think the problem has already been reported. But I can't reproduce it. Are they RAW files? The original size of the image may not be correctly determined from the metadata data. Otherwise, upload an example image that shows the problem.

Maik
Comment 2 Tom Cunningham 2020-08-15 02:38:30 UTC
Created attachment 130880 [details]
Example for Bug 425359
Comment 3 Tom Cunningham 2020-08-15 02:44:44 UTC
(What happened to my original comment?)  Triggering it may be related to running the Image Editor prior to tagging.  I tagged a few photos without running the Image Editor and could not reproduce.  Then I ran the Editor on the attached file, performed a local contrast and color auto correction (both with default settings), saved, and exited the Editor.  After I tagged the boy in the water I could not find his associated face rectangle.  When I tagged the other boy, all was fine.  (BTW, I had to resize this photo to add as an attachment; is there any way to upload the original?)
Comment 4 Tom Cunningham 2020-08-15 16:00:11 UTC
It may also have something to do with cropping and/or rotating the image in the Editor; I've been able to reproduce it just using those changes.
Comment 5 Maik Qualmann 2020-08-16 05:43:10 UTC
Not in the camera settings of the camera, but in the digiKam camera settings in the digiKam setup. ((:-))
In the Renaming section of the import tool you will see a link stating whether metadata is being used. The link takes you to the digiKam camera settings under Behavior there is the option.

Maik
Comment 6 Tom Cunningham 2020-08-16 15:21:10 UTC
So is the problem something that happens at import time?  I unchecked the box "Use file metadata (makes connection slower)" and the behavior persists.  What is the upshot of using/not using file metadata?
Comment 7 Tom Cunningham 2020-08-16 15:28:27 UTC
Just imported a file with metadata NOT used and the problem persists.
Comment 8 Tom Cunningham 2020-08-19 19:15:32 UTC
Another data point, although just anecdotal: after performing edits and returning to the preview screen, just before tagging if I click on another thumbnail and then return to the original, I can tag and the problem does not appear.  If I tag immediately after the edits, the problem more often than not recurs.
Comment 9 caulier.gilles 2022-01-09 18:17:22 UTC
Hi Tom and happy new year,

Can you check if the problem remain with current digiKam 7.5.0 pre-release available here :

https://files.kde.org/digikam/

Thanks in advance

Gilles Caulier
Comment 10 Tom Cunningham 2022-01-09 19:59:12 UTC
I believe this may have been fixed as far back as 7.2, certainly 7.3.  The extra confirmation step on face tags seems to have ushered in the fix.  Thanks Gilles and Maik for all the hard work you do!