Bug 377628 - CR2 file face detection misplaced in portrait
Summary: CR2 file face detection misplaced in portrait
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Faces-Detection (show other bugs)
Version: 5.5.0
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-15 04:07 UTC by philsweeney25
Modified: 2020-01-19 08:51 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 7.0.0


Attachments
Image - face tag not aligned (121.48 KB, image/png)
2017-03-15 04:07 UTC, philsweeney25
Details
Thumbnail when face tag aligned (16.86 KB, image/png)
2017-03-15 04:07 UTC, philsweeney25
Details
Thumbnail when face tag left as detected (31.96 KB, image/png)
2017-03-15 04:08 UTC, philsweeney25
Details

Note You need to log in before you can comment on or make changes to this bug.
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