Bug 420401 - Face region bounding boxes are in wrong location if photo Orientation != Horizontal
Summary: Face region bounding boxes are in wrong location if photo Orientation != Hori...
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Faces-Workflow (show other bugs)
Version: unspecified
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-21 21:13 UTC by shiregators-2003
Modified: 2020-07-25 14:29 UTC (History)
2 users (show)

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


Attachments
Original image (1.37 MB, image/jpeg)
2020-04-21 21:13 UTC, shiregators-2003
Details
File metadata (6.05 KB, text/plain)
2020-04-21 21:14 UTC, shiregators-2003
Details
Correct bounding box (53.03 KB, image/jpeg)
2020-04-21 21:15 UTC, shiregators-2003
Details
digiKam bounding box (92.75 KB, image/jpeg)
2020-04-21 21:15 UTC, shiregators-2003
Details

Note You need to log in before you can comment on or make changes to this bug.
Description shiregators-2003 2020-04-21 21:13:55 UTC
Created attachment 127760 [details]
Original image

SUMMARY
The displayed face region bounding boxes are incorrect for photos with Orientation != Horizontal.  The image is not rotated before the bounding box is applied, thus the box is in the wrong location.  

STEPS TO REPRODUCE
1. Import a photo that has existing face regions populated and has Orientation != Horizontal
2. Hover over the image and find the bounding box. 
3. 

OBSERVED RESULT
Notice that the bounding box is not in the correct location.

EXPECTED RESULT
The image shall be rotated according to the Orientation field prior to drawing the bounding box so that the box will be in the proper location.

SOFTWARE/OS VERSIONS
Windows: Windows 10 Pro

ADDITIONAL INFORMATION
File to reproduce is attached along with bounding box snapshots.
Comment 1 shiregators-2003 2020-04-21 21:14:46 UTC
Created attachment 127761 [details]
File metadata

Note the Orientation:
Orientation                     : Rotate 270 CW
Comment 2 shiregators-2003 2020-04-21 21:15:08 UTC
Created attachment 127762 [details]
Correct bounding box
Comment 3 shiregators-2003 2020-04-21 21:15:34 UTC
Created attachment 127763 [details]
digiKam bounding box
Comment 4 Maik Qualmann 2020-04-21 21:21:28 UTC
*** This bug has been marked as a duplicate of bug 415550 ***
Comment 5 Maik Qualmann 2020-04-21 21:27:39 UTC
Your test image tested with digiKam-7.0.0-Beta3, the face rectangle is displayed correctly.

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

If you use the Beta3, you need to re-read the metadata from these images with activated function to clean up the database. Future image imports will work without problems.

Maik
Comment 6 shiregators-2003 2020-04-21 22:21:30 UTC
Great.  Thank Maik.

-Jamie
Comment 7 caulier.gilles 2020-07-25 14:29:42 UTC
Fixed with #415550