nextcloud / recognize

👁 👂 Smart media tagging for Nextcloud: recognizes faces, objects, landscapes, music genres
https://apps.nextcloud.com/apps/recognize
GNU Affero General Public License v3.0
537 stars 43 forks source link

Ability to restrict scanning to a single folder #625

Open SofianeLasri opened 1 year ago

SofianeLasri commented 1 year ago

Describe the feature you'd like to request

Instead of manually creating .nomedia files, it should be possible to restrict the scan to a folder.

Describe the solution you'd like

Create a section the admin panel to specify the folders/

Describe alternatives you've considered

There is no alternatives to my request.

kc9jud commented 1 year ago

@SofianeLasri Wouldn't be better to have .includemedia files, with a toggle in the admin panel to turn on indexing of explicitly included directories only? Explicit whitelists seem like they could get unwieldy, especially if they're in the admin panel and have to be managed by an admin for all users.

SofianeLasri commented 1 year ago

I have some difficulties to see how this would work. The idea is to restrict the scan to some folders only, and without manually creating a thousand of meta files.

kc9jud commented 1 year ago

Why would you need to create a thousand metafiles? I assume the presence of .includemedia would turn on scanning for a directory and all of its descendants.

SofianeLasri commented 1 year ago

Ah, then why not. But I still think that a dedicated parameter in the settings page, would be better option for a finished version of the addon.

kc9jud commented 1 year ago

Do you mean to create a new settings page for users, or that only admins should be able to add/remove directories from scanning? Right now all the Recognize settings are at the admin level only, and are instance-wide. Simply adding a new setting would require admins to manage all users' directories on one page.

kc9jud commented 1 year ago

If it's at the user level, we could provide a settings panel which works under the hood by managing .nomedia/.includemedia files -- that might be a good UX.

SofianeLasri commented 1 year ago

Ah that's a good point, I forgot that the addon worked on all accounts. For users, I definitely think it would be a great thing to having a parameter to handle that in their settings page.

BETEP-ok commented 1 year ago

I second that request gentlemen!

for my fresh installation of NC i explicitly decided to not proceed with the recognition plugin untill this feature is enabled. My media library is hosting both - things that are OK to be shown to broader audience as well as some sensitive stuff.

and the faces can be same here and there as well.

and it is UNAPPROPRIATE to click on a "%username%" tag and get some family friednly stuff and couple of wild pics alltogether. (haha- imagine you are showing your kinds all the sweet memories of your studenthood- in the lecture class, in the library, making a conference report, THROWING OUT ON A WILD BACHELOR PARTY WITH HALF-NAKED CHICKS ALLAROUND - can bring a bit of controversy into the room ))))

so it is essential to be able to restrict some of the user folders (for every user) from any scanning\tagging\recognition.