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

API: GET /api/v1/photos should also return face information #4618

Open
DrDonoso opened this issue Nov 6, 2024 · 2 comments
Open

API: GET /api/v1/photos should also return face information #4618

DrDonoso opened this issue Nov 6, 2024 · 2 comments
Labels
idea Feedback wanted / feature request

Comments

@DrDonoso
Copy link

DrDonoso commented Nov 6, 2024

Describe what problem this solves and why this would be valuable to many users

I'm using the api to return a random photo at api/v1/photos. I would like to see the faces appearing in the photo.
When seeing the API, the faces are not returned in the response.
I can see the call at api/v1/photos/{uid} return faces, but it returns a number instead of the faces object.

It would be nice to return an array with the faces detected.

Thanks for your great effort! 😊

Describe the solution you'd like

Improve /api/v1/photos and /api/v1/photos/{uid} to return the faces object.

Describe alternatives you've considered

Additional context

@DrDonoso DrDonoso added the idea Feedback wanted / feature request label Nov 6, 2024
@lastzero
Copy link
Member

lastzero commented Nov 6, 2024

We probably won't be able to do this for performance reasons, as it would most likely require at least one additional query for each result - unless you just want the comma-separated names?

@lastzero lastzero changed the title Category: Photoprism API /api/v1/photos return faces API: GET /api/v1/photos should also return face information Nov 6, 2024
@DrDonoso
Copy link
Author

DrDonoso commented Nov 6, 2024

I understand; comma-separated names would be nice if it's possible and don't have any impact in performance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
idea Feedback wanted / feature request
Projects
None yet
Development

No branches or pull requests

2 participants