Copy link to clipboard
Copied
I have some vintage photos (taken at least 100 years ago) that I've carefully tagged using facial recognition in Lightroom Classic CC. I'd like to share these photos with each photo tag preserved above each face with family and genealogical societies. In some cases, I have class or sports team photos, and identification of the individuals in the photo holds a great deal of value for the people I'm sharing the photos with. Is there any way of exporting people tags with associated faces to the web?
Copy link to clipboard
Copied
I think I misread some of the postings about what LRc will export in terms of people's name set up with Facial Recognition. It does export the names in both and XMP and IPTC metadata tags.
Now, back to the original question " Is there any way of exporting people tags with associated faces to the web?" this thread identifies that:
Here's what I found from playing around. I also changed names to see how things were affected.
$ exiftool -xmp:subject -iptc:keywords S-026-T-001.jpg
Subject : ?, Bill, Gail, LOW RES, Richard, Rose, SLIDE
Keywords : ?, Bill, Gail, LOW RES, Richard, Rose, SLIDE
$ REM Change Some Name Assgigned to Faces
$ exiftool -xmp:subject -iptc:keywords S-026-T-001.jpg
Subject : Betsy, Bill, LOW RES, Richard, SLIDE, Sally, Shella, Sue
Keywords : Betsy, Bill, LOW RES, Richard, SLIDE, Sally, Shella, Sue
Copy link to clipboard
Copied
Hi @DS256, for well labelled image files with exif data available, I suspect you should probably be able to find what you need in the exif metadata.
Context
The way I read this thread, I interpreted there are 2 levels of detail ... firstly just /having/ the person metadata, and secondly /visually/ showing that on an image. The second point is where I started with the LRc plug-in concept, since I had lots of carefully labelled images with person metadata in EXIF, and there are plenty of programs and online platforms where you can point at people one at a time to see who they are, but I had never found anything that allowed visual annotation of all the people on the image for publishing, whether online or in print.
As you say, LRc can include the person metadata in the image export, though it can be enabled/disabled in the export dialog settings, so needs some care to get what you need.
ExifTool and Region Metadata
You have found and used the amazingly powerful exiftool, which has both a wealth of helpful information online and an expert and active community using it and answering questions. As mentioned above, my plugin uses exiftool to access the image file metadata. I have chosen to put much of the complexity into an exiftool 'config file' (basically a bunch of exiftool supported perl code) to handle different metadata standards (e.g. Microsoft, MWG, IPTC) and the different tag names and coordinate systems that they use. I'm sure it is not the most streamlined implementation, so could well show its limitations on bulk exports, but it felt like a decent partitioning of functionality for clarity and future maintenance. See file currently named "get_regions.config" in the github repository as per link above (I won't give a file link here since I might break it in future if I do any file renaming or structuring in my FLE plugin).
In that exiftool 'config file', I also try to handle the surprisingly complicated implications of rotation and crop, and whether those have been already applied or not. I didn't find any good documentation or examples on how to handle that, beyond a few useful illustrations of what the rotation scenarios looked like, and from what I have seen I have the impression there are many variations and inconsistencies in how these fields are used in the wild. So I fully expect to find cases that I have not handled correctly.
Anyway, that is complicated background on why there isn't a one-line answer, but not yet addressing your question about names per face/person ... see the following which might help:
Examples of viewing region metadata
If you want to see all the region data, including names per face-region (if image file is appropriately labelled in metadata), then if it is in MWG format (from the 'Metadata Working Group') then you should be able to use:
exiftool <image_file> -j -XMP-mwg-rs:all
If the region data is in Microsoft format then this should help:
exiftool <image_file> -j -XMP-MP:all
Notes: