Bug 377628

Summary: CR2 file face detection misplaced in portrait
Product: [Applications] digikam Reporter: philsweeney25
Component: Faces-DetectionAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles, metzpinguin
Priority: NOR    
Version: 5.5.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 7.0.0
Sentry Crash Report:
Attachments: Image - face tag not aligned
Thumbnail when face tag aligned
Thumbnail when face tag left as detected

Description philsweeney25 2017-03-15 04:07:03 UTC
Created attachment 104574 [details]
Image - face tag not aligned

This may be related to bug ID 326538 

once face detection completed, thumbnail shows face, on preview of image, face tag is misplaced. Only seems to affect CR2 files in portrait orientation

Reproducible: Always

Steps to reproduce:
1. detect faces in portrait CR2 image
2. select "preview" image tag is associated with

Expected Results:
face tag is around detected face

Actual results:
Face tag is not aligned with face.

Of note - when face tag is realigned on picture, the thumbnail does not display the face.
Comment 1 philsweeney25 2017-03-15 04:07:49 UTC
Created attachment 104575 [details]
Thumbnail when face tag aligned
Comment 2 philsweeney25 2017-03-15 04:08:41 UTC
Created attachment 104576 [details]
Thumbnail when face tag left as detected
Comment 3 philsweeney25 2017-03-15 04:10:14 UTC
Comment on attachment 104574 [details]
Image - face tag not aligned

Image shows face tag as face detected
Comment 4 philsweeney25 2017-04-05 04:51:25 UTC
This issue appears to only occur with the following setting:

Settings > Configure Digikam > Views > Preview > Raw Images > Drop down = "Raw Data in half size"

When scanning faces with the above setting in "automatic" face tags and thumbnails are aligned.  Face tag alignment of images previously scanned with "raw data in half size" setting does not change when the setting adjusted to "automatic".

Hope this additional information is helpful.
Comment 5 Maik Qualmann 2017-04-05 18:17:04 UTC

*** This bug has been marked as a duplicate of bug 372340 ***
Comment 6 caulier.gilles 2019-12-23 15:23:00 UTC
7.0.0-beta1 is out with new Face Recognition algorithm based on Deep
Learning/Neural Network API from OpenCV

https://download.kde.org/unstable/digikam/

Please test and give us a feedback

Thanks in advance
Gilles Caulier
Comment 7 caulier.gilles 2020-01-19 08:50:58 UTC
Git commit 32bb16fee6b2676b30bf843bf3e083a23084cd3d by Maik Qualmann.
Committed on 19/01/2020 at 08:37.
Pushed by mqualmann into branch 'master'.

read and write not aligned face metadata from image
FIXED-IN: 7.0.0

M  +2    -1    NEWS
M  +7    -4    core/libs/database/item/scanner/itemscanner_photo.cpp
M  +3    -29   core/libs/fileactionmanager/metadatahub.cpp
M  +0    -6    core/libs/fileactionmanager/metadatahub.h
M  +6    -5    core/utilities/imageeditor/main/imagewindow.cpp

https://invent.kde.org/kde/digikam/commit/32bb16fee6b2676b30bf843bf3e083a23084cd3d