Hello,
I was wondering if there is any automated way to find all such pictures and get rid of duplicate face tags using Digikam. Please share ideas if you have any. Best regards, Andrey Goreev |
Here is an extract from the output of ExifTool -a -G1 -s FILE command:
[XMP-digiKam] TagsList : People/Jack, Places/zoo [XMP-microsoft] LastKeywordXMP : People/Jack, Places/zoo [XMP-microsoft] LastKeywordIPTC : Places/zoo, Jack [XMP-acdsee] Categories : <Categories><Category Assigned="0">People<Category Assigned="1">Jack</Category></Category><Category Assigned="0">Places<Category Assigned="1">zoo</Category></Categories> [XMP-mwg-rs] RegionAppliedToDimensionsW : 2048 [XMP-mwg-rs] RegionAppliedToDimensionsH : 1536 [XMP-mwg-rs] RegionAppliedToDimensionsUnit : pixel [XMP-mwg-rs] RegionName : Jack, Jack [XMP-mwg-rs] RegionType : Face, Face [XMP-mwg-rs] RegionAreaX : 0.805176, 0.802246 [XMP-mwg-rs] RegionAreaY : 0.470703, 0.501953 [XMP-mwg-rs] RegionAreaW : 0.198242, 0.109375 [XMP-mwg-rs] RegionAreaH : 0.316406, 0.145833 [XMP-mwg-rs] RegionAreaUnit : normalized, normalized [XMP-MP] RegionRectangle : 0.706055, 0.3125, 0.198242, 0.316406, 0.747559, 0.429036, 0.109375, 0.145833 [XMP-MP] RegionPersonDisplayName : Jack, Jack [XMP-lr] HierarchicalSubject : People|Jack, Places|zoo [XMP-mediapro] CatalogSets : People|Jack, Places|zoo [XMP-dc] Subject : Jack, zoo [IPTC] Keywords : Jack, zoo Best regards, Andrey Goreev On Tue, Jan 17, 2017 at 5:46 AM, Andrey Goreev <[hidden email]> wrote:
|
Were the data considerate as duplicated for you ? Gilles Caulier 2017-01-17 17:37 GMT+01:00 Andrey Goreev <[hidden email]>:
|
When I hover the mouse over the face I see two regions with the same name. I think this is where the information got duplicated:[XMP-mwg-rs]
RegionName [XMP-mwg-rs] RegionType [XMP-mwg-rs]
RegionAreaX [XMP-mwg-rs]
RegionAreaY [XMP-mwg-rs]
RegionAreaW [XMP-mwg-rs]
RegionAreaH [XMP-mwg-rs]
RegionAreaUnit [XMP-MP]
RegionRectangle [XMP-MP]
RegionPersonDisplayName Best regards, Andrey Goreev On Tue, Jan 17, 2017 at 10:22 AM, Gilles Caulier <[hidden email]> wrote:
|
All this data are "duplicated" for Interoperability purpose with other photo management softwares. That all... Look in Setup/Metadata/Advanced panel to customize some tags to store in file metadata. But it's currently limited, and we have file in bugzilla to improve it. Gilles Caulier 2017-01-17 18:27 GMT+01:00 Andrey Goreev <[hidden email]>:
|
I see. I guess I will write a script or an exiftool command to find files with such duplicates and assign a tag to them and then I will go through all of them and manually delete the duplicated regions. Best regards, Andrey Goreev On Tue, Jan 17, 2017 at 10:33 AM, Gilles Caulier <[hidden email]> wrote:
|
On mardi 17 janvier 2017 10:40:16 CET Andrey Goreev wrote:
> I see. I guess I will write a script or an exiftool command to find files > with such duplicates and assign a tag to them and then I will go through > all of them and manually delete the duplicated regions. > That is of course possible, but from what Gilles wrote, for Digikam those tags exist only _once_, but are just stored in several ways to accomodate other programs that only look at one particular type of metadata or tag. Removing versions of those tags can mean that other programs you use won't see that tag anymore. And all you win is a few 10s of bytes on the file length. And why do you care so much about what exactly is stored in the metadata as long as everything works as expected? A basic engineering principle is "if it isn't broken, don't fix it". But, if you want to go that way, exiftool allows you to remove unwanted tags, so once your script identifies a file with duplicate tags, it can also remove them. But any such operation is completely at your own risk. Remco |
Your comment makes sense. I guess I won't be touching anything. The only thing that catches my eye is that I just noticed that face regions are in a completely wrong places in some pictures.Best regards, Andrey Goreev On Tue, Jan 17, 2017 at 11:03 AM, Remco Viëtor <[hidden email]> wrote: On mardi 17 janvier 2017 10:40:16 CET Andrey Goreev wrote: |
Free forum by Nabble | Edit this page |