matiasdelellis / facerecognition

Nextcloud app that implement a basic facial recognition system.
GNU Affero General Public License v3.0
507 stars 46 forks source link

Not detect all new file in shared/group folders #765

Open mrmipo opened 2 months ago

mrmipo commented 2 months ago

Hi

I use group folder for keeping family photo with my wife (auto upload from phone to selected group folder). But face recognize process only file that was upload by one user. To process all new file I need to execute : occ face:background_job --sync-mode what take loot of time (group folder have around 42k files). Same situation are with shared folder (I tested after notice that group folder has that issue)

Steps to reproduce

  1. crate and enable group folder scanning
  2. enable face recognition for user A
  3. upload photo to group folder by user A
  4. check that if photo are process (occ face:background_job -vvv -u A)
  5. upload photo to group folder by user B
  6. check that if photo are process (occ face:background_job -vvv -u A)
  7. sync file (occ face:background_job --sync-mode)
  8. check that if photo are process (occ face:background_job -vvv -u A)

Server configuration

{ "apps": { "facerecognition": { "analysis_image_area": "8167200", "enabled": "yes", "assigned_memory": "3221225472", "installed_version": "0.9.51", "types": "filesystem", "model": "5", "sensitivity": "0.4", "handle_group_files": "true", "min_confidence": "0.7", "handle_shared_files": "true", "handle_external_files": "true", "clustering_batch_size": 5000, "min_faces_in_cluster": "10" } } }

vwbusguy commented 1 month ago

Yeah, I have a cron job that keeps setting full_image_scan_done false on my user, since that's the only way I've found for it to keep clustering pictures in shared folders.