Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

See https://github.com/RhetTbull/osxphotos #3

Open
junkblocker opened this issue Jun 10, 2020 · 1 comment
Open

See https://github.com/RhetTbull/osxphotos #3

junkblocker opened this issue Jun 10, 2020 · 1 comment

Comments

@junkblocker
Copy link

Saw the note about difficulties with keeping up with format changes. @RhetTbull has been doing a lot of work on reverse engineering OSX Photos library format over at https://github.com/RhetTbull/osxphotos . Maybe it would be helpful to look at that.

@RhetTbull
Copy link

Thanks for the mention @junkblocker

I don't yet have Faces implemented in osxphotos (though Persons are implemented). I do plan to eventually add support though -- see issue #21.

In Photos 5, the detailed face info is in ZDETECTEDFACE. The following SQL snipped shows how to associate the face with a photo and a person. The coordinates all appear to be percent of X, Y, reference seems to be bottom left corner. Haven't done a lot of experimenting with this yet though. The columns in ZDETECTEDFACE are self-explanatory.

SELECT 
ZGENERICASSET.ZUUID, 
ZPERSON.ZFULLNAME, 
ZDETECTEDFACE.ZCENTERX, 
ZDETECTEDFACE.ZCENTERY, 
ZDETECTEDFACE.ZSIZE
FROM 
ZGENERICASSET
JOIN ZDETECTEDFACE ON ZDETECTEDFACE.ZASSET = ZGENERICASSET.Z_PK
JOIN ZPERSON on ZDETECTEDFACE.ZPERSON = ZPERSON.Z_PK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants