OSXPhotos – Query Photos.app with Python
May 3, 2021
Rhet Turnbull on Github describes OSXPhotos this way:
Python app to export pictures and associated metadata from Apple Photos on macOS. Also includes a package to provide programmatic access to the Photos library, pictures, and metadata.
I’m planning to use this to pull the Faces metadata out of Photos.app and use machine tags to add keywords to the files themselves. It is the missing piece to my current workflow. If it can also pull out the keywords that Photos’ Machine Learning attributes to the images (animals, objects, color, etc.) then I may pull those as well.
/via Roel Groeneveld.
@cdevroe That’s pretty cool!
>If it can also pull out the keywords that Photos’ Machine Learning attributes to the images (animals, objects, color, etc.) then I may pull those as well.
Hi. I’m the author of this package and yes, it can do this!
It can also pull out a bunch of other machine learning attributes that Photos adds to photos such as “well_timed_shot”, “harmonious_color”, etc.
See: https://github.com/RhetTbull/osxphotos#scoreinfo and https://github.com/RhetTbull/osxphotos#labels-2
Thanks for stopping by and letting me know. I’m looking forward to giving this a try soon.
The biggest question is whether or not I can replace the originals in my Library with the updated originals with metadata without destroying my entire Library.