nextcloud / nextcloud/recognize

Add PATH option to recognize:classify command

Open
#785 10 comments 12 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement good first issue
Dominant language
PHP
Stars
699
Forks
68
Avg merge
1d 4h
Merged PRs (30d)
5

Description

Describe the feature you'd like to request

Ability to limit occ recognize:classify to a single path.

Describe the solution you'd like

Something like other apps have :
occ recognize:classify --path="/username/files/MyFolder/"

Describe alternatives you've considered

Running occ recognize:classify again on the whole server, but that takes hours and hours just to go through the photos that are already indexed and classified.

Alternative could be something like occ recognize:classify --new which would skip all the files that have already been classified.
(or making this default behavior for occ recognize:classify and adding something like occ recognize:classify --force to force re-scan/re-index/re-classification of whole server)

I do realize this app is now on the "limited effort" maintenance, but hopefully someone picks up the task eventually...

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the occ recognize:classify command entry point and reading how it selects files for classification. Add a path-limiting option matching the requested usage, then verify that classification is restricted to the selected directory without changing whole-server behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.