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

Open source local provider #6

Open
FerronN opened this issue Sep 27, 2022 · 8 comments
Open

Open source local provider #6

FerronN opened this issue Sep 27, 2022 · 8 comments

Comments

@FerronN
Copy link

FerronN commented Sep 27, 2022

Hi @Zacharieg,

Thank you for writing this extension! I'm going to run Piwigo and face tag is a must have.
I have Azure and could use that but I'm always for the most secure option and that's running is peace of software myself.

I'm looking to use deepface or compreface. Both supply a simple REST api. I'm going to run one of these two in a docker container like piwigo itself.

What do you think? Could we work together to implement one of these products and there api for a self-hosted solution?

@Zacharieg
Copy link
Collaborator

Hi FerronN !

You're welcome ! Unfortunately, I don't work in the project anymore... But I developped the app thinking of different ways to generate the tags !

I encourage you to clone the repository and try to adapt it, create a new api_class in this folder.

If you have any question, you can ask them here, and if you succeed to developp it, don't hesitate to do a merge request to let the other enjoy your work !

@Zacharieg
Copy link
Collaborator

So you have to :
Create a new file in the api_classes folder (you can copy an existing file)
The functions you have to write here are : getInfo to add information about your API (here it should be like "self hosted api), getConfParams to ask the user some information like the url of your selfhosted API, and finally generateTags a function that should return an array with all the tags

Inform the plugin of your new API
In this file, add your API name (should be the same file and class name) in the TR_API_LIST

After that it should work, notice me if you find bugs

@FerronN
Copy link
Author

FerronN commented Sep 28, 2022

Thank you for the description! I'm going to try to make it work :)

@FerronN
Copy link
Author

FerronN commented Sep 28, 2022

The extension is not specifically designed for face recognition right (if I look at the code)?

@Zacharieg
Copy link
Collaborator

Hum at the start no you're right, but in fact the input is an image and the output is an array of text so you can do what ever you want.

@FerronN
Copy link
Author

FerronN commented Sep 28, 2022

True, but then I would need a page in Piwigio to show all recognized faces so you can name them. Any suggestions how to approach this?

@Zacharieg
Copy link
Collaborator

With my extension yeah it should be hard to do, maybe with this plugin ?

@3JL
Copy link

3JL commented Mar 24, 2023

@FerronN, could you test this code? Let me know if you need help! https://github.com/Piwigo/piwigo-tag-recognition/issues/7

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

3 participants