ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: neebah on August 17, 2016, 07:44:45 AM

Title: Mwg regions face tagging
Post by: neebah on August 17, 2016, 07:44:45 AM
I'm writing a little application for face tagging as I don't trust Picasa or Microsoft.  This will call exiftool directly.  What commands should I use to place the face info in the Mwg regions xmp info
Title: Re: Mwg regions face tagging
Post by: Phil Harvey on August 17, 2016, 08:43:02 AM
See the Serialization section of the Structured information page (https://exiftool.org/struct.html#Serialize) for an example of this.

- Phil
Title: Re: Mwg regions face tagging
Post by: neebah on August 17, 2016, 02:52:26 PM
Okay I think I have the jist of what to do from the documentation.  Since I'm storing to mwg should I used -XMP-mwg-rs  instead of -RegionInfo
Title: Re: Mwg regions face tagging
Post by: Phil Harvey on August 17, 2016, 03:07:49 PM
RegionInfo is a structured MWG tag.  See the  MWG Regions tags documenation (https://exiftool.org/TagNames/MWG.html#Regions) for details.

- Phil
Title: Re: Mwg regions face tagging
Post by: neebah on August 22, 2016, 10:30:51 PM
Okay I've got how the INFILE works with adding an entire face to the MWG region.  Is it possible to target a face by description or name and change just the name and leave the other parts the same or vice versa. 
Title: Re: Mwg regions face tagging
Post by: StarGeek on August 22, 2016, 11:21:36 PM
I haven't tried anything like that but I faintly remember something previously posted...

From the Structured information page (https://exiftool.org/struct.html#Deleting):
"When deleting and adding back items in lists in the same command, new items are inserted at the point in the list where the first item was removed, or at the end of the list if no items were deleted. This applies to lists of structures as well as simple lists of string values, and provides a mechanism to replace a specific structure or field."

Also, just doing a substitution from this post (https://exiftool.org/forum/index.php/topic,5570.msg27063.html#msg27063).