Bug 420401

Summary: Face region bounding boxes are in wrong location if photo Orientation != Horizontal
Product: [Applications] digikam Reporter: shiregators-2003
Component: Faces-WorkflowAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles, metzpinguin
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In: 7.1.0
Sentry Crash Report:
Attachments: Original image
File metadata
Correct bounding box
digiKam bounding box

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