Export face and object recognition data.
aero31aero opened this issue ยท 3 comments
Is your feature request related to a problem? Please describe.
I found out about this project from r/selfhosted and I was writing my own tool for my own personal use, didn't want to reinvent the wheel for face and object recog.
Describe the solution you'd like
Have photonix give me an API endpoint or a dump of JSON/XML/similar data that I can parse in my own application to process the face and object recognition data. I am fine with importing photos into Photonix, but I want to use my own tool to ultimately filter the photos.
Additional context
I'll just describe my program for a bit. It works by creating 'views' into your library, using the concept of mounting photos. So, for example, I have a mount map that takes my complete library (or a subsection of it) and mounts it as /year/month/day/time-camera-name.jpg
or another that mounts them as /tags/tag-name/timestamp.jpg
. I can endlessly write my filters and create folder structures I want for viewing the photos how I want. For example, I can easily filter it such that I only mount photos that have certain tags but don't have other tags and are within a particular date range or of a particular location.
You could probably see how I could make use of the face recog data for adding another layer of filtering too.
For geeking out, here's how my maps look like: https://github.com/scarlet-finch/scarfin/blob/master/src/mount-maps/template.js
Hi @aero31aero. Sounds like a neat idea and I've experimented with something similar creating a custom Fuse mount. If you're not aware of it - there is a GraphQL API endpoint you might be interested in experimenting with. If you go to /graphql
you should see a "self-documenting" interface and be able to query with something like this:
We also aim to implement metadata exporting in future as @nomandera mentioned.
That's really powerful and should do what I want. Thanks! I'll try it out and see how it goes.