Bug 478525 - Face Region Shifted Slightly When Tagging Face
Summary: Face Region Shifted Slightly When Tagging Face
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Faces-Detection (show other bugs)
Version: 8.3.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-14 21:10 UTC by rb2005
Modified: 2023-12-17 16:13 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 8.3.0
Sentry Crash Report:


Attachments
Screen recording doing face scan and tagging. (844.92 KB, video/mp4)
2023-12-14 21:10 UTC, rb2005
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rb2005 2023-12-14 21:10:37 UTC
Created attachment 164168 [details]
Screen recording doing face scan and tagging.

SUMMARY
When detecting faces, the face region shifted slightly upon the appearance of the face rectangle box. After tagging the face region seemingly "bounced" back into its original position.

STEPS TO REPRODUCE
1.  Scan for faces. When face rectangle box shows up, the face region shifted slightly, mainly to the left.
2.  After tagging the face, upon pressing enter, the face region seemed to "snap back" into its original position.
3.  This was not observed prior to version 8.3 and can be annoying because the face seems to be floating ever so slightly.

OBSERVED RESULT
Face region shifted when scanning for face and tagging the face.

EXPECTED RESULT
Face region not moving when doing face scan and tagging.

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

ADDITIONAL INFORMATION
Comment 1 Maik Qualmann 2023-12-14 21:38:48 UTC
I've never seen that before. We're just drawing lines around the face in the image, in this case we're not drawing a face graphic that could shift. I think this happens at the level of the graphics card driver for you. I'll test it tomorrow on my two Windows computers.

Maik
Comment 2 Maik Qualmann 2023-12-15 07:37:38 UTC
The cause is an odd desktop scaling factor, you'll be using something like 125% on Windows. I can also reproduce it here on Linux. I can fix it with:

QGuiApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::RoundPreferFloor);

Maik
Comment 3 rb2005 2023-12-15 10:27:14 UTC
(In reply to Maik Qualmann from comment #2)
> The cause is an odd desktop scaling factor, you'll be using something like
> 125% on Windows. I can also reproduce it here on Linux. I can fix it with:
> 
> QGuiApplication::setHighDpiScaleFactorRoundingPolicy(Qt::
> HighDpiScaleFactorRoundingPolicy::RoundPreferFloor);
> 
> Maik

As mentioned in the other bug report, the device is a notebook with intel 11th gen chip and built-in graphics engine. Screen setting at recommended resolution settings and app running in maximized mode. No up-scaling or magnifier mode used.

Anyway I reverted back to version 8.2 using digiKam-8.2.0-20231116T055817-Win64.exe and the face scan and tagging have no issue at 100% or fit image in the view pane.
Comment 4 Maik Qualmann 2023-12-17 16:13:19 UTC
Git commit b9b77f4b5b534468cc2d5f8cecf59c721ddc34d6 by Maik Qualmann.
Committed on 17/12/2023 at 17:12.
Pushed by mqualmann into branch 'master'.

set high DPI scale factor rounding policy
FIXED-IN: 8.3.0

M  +1    -1    NEWS
M  +2    -0    core/app/main/main.cpp
M  +2    -0    core/showfoto/main/main.cpp

https://invent.kde.org/graphics/digikam/-/commit/b9b77f4b5b534468cc2d5f8cecf59c721ddc34d6