-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
Initial commit to expose face recognition information through DAV properties #549
base: master
Are you sure you want to change the base?
Conversation
…perties Until now, just implemented get the persons and faces within an image.. curl -u user:password 'https://example.com/remote.php/dav/files/user/Photos/someimage.jpg' -X PROPFIND --data '<?xml version="1.0" encoding="UTF-8"?> <d:propfind xmlns:d="DAV:" xmlns:fr="http://github.com/matiasdelellis/facerecognition/ns"> <d:prop> <fr:persons/> </d:prop> </d:propfind>'
Well, basically it is an almost exact copy of FilesReportPlugin.php, making it practically compatible. You just have to take into account the the new XML namespace and the appropriate filters. So, to get photos that include a person: curl -u user:password 'https://example.com/remote.php/dav/files/user/' -X REPORT --data '<?xml version="1.0" encoding="UTF-8"?> <fr:filter-files xmlns:d="DAV:" xmlns:nc="http://nextcloud.org/ns" xmlns:fr="http://github.com/matiasdelellis/facerecognition/ns"> <fr:filter-rules> <fr:filter-name>Stan Lee</fr:filter-name> </fr:filter-rules> <d:prop> <nc:has-preview/> </d:prop> </fr:filter-files>' | xmllint --format - ...and note that you can ask for all the standard DAV/Nextcloud properties. ;)
More examples:Images that include some Face Recognition Person:
Response:
Favorites files for user:
Response:
|
How to get the Face Reccognition Person of a user?Let's see how to get nextcloud collaborative tags. Tags for user
Response:
Well, the queries will be made to |
See examples:
Faces of image:
Response:
Faces of images within an folder:
Response: