Initial upload: aesthetic-immich-starter
This commit is contained in:
@@ -0,0 +1,71 @@
|
||||
# Aesthetic Immich Planner - Patch V2.4 Visages Immich
|
||||
|
||||
## Ce patch ajoute
|
||||
|
||||
- Liste des personnes reconnues par Immich dans l'application.
|
||||
- Bouton **Visages Immich** dans le dossier patient.
|
||||
- Recherche d'une personne Immich par nom.
|
||||
- Affichage des miniatures de visages reconnues par Immich.
|
||||
- Import du visage sélectionné dans le dossier patient comme photo `face`.
|
||||
- Envoi automatique de cette photo dans l'album Immich du patient.
|
||||
|
||||
## Fichiers à copier
|
||||
|
||||
Copier ces fichiers dans le projet existant :
|
||||
|
||||
```text
|
||||
backend/app/main.py
|
||||
backend/app/schemas.py
|
||||
backend/app/services/immich.py
|
||||
flutter_app/lib/api_service.dart
|
||||
flutter_app/lib/main.dart
|
||||
```
|
||||
|
||||
## Important
|
||||
|
||||
La clé API Immich doit avoir au minimum les droits :
|
||||
|
||||
- `person.read`
|
||||
- `asset.read`
|
||||
- `asset.upload`
|
||||
- `album.read`
|
||||
- `album.create`
|
||||
- `album.update`
|
||||
|
||||
## Relance
|
||||
|
||||
Backend :
|
||||
|
||||
```powershell
|
||||
cd D:\07-Logiciels\19-aesthetic_immich_starter\backend
|
||||
.\.venv\Scripts\python.exe -m uvicorn app.main:app --reload --host 0.0.0.0 --port 8000
|
||||
```
|
||||
|
||||
Flutter :
|
||||
|
||||
```powershell
|
||||
cd D:\07-Logiciels\19-aesthetic_immich_starter\flutter_app
|
||||
flutter pub get
|
||||
flutter run -d windows
|
||||
```
|
||||
|
||||
Ou Android :
|
||||
|
||||
```powershell
|
||||
flutter run -d f10778d8
|
||||
```
|
||||
|
||||
## Test rapide
|
||||
|
||||
Dans Chrome :
|
||||
|
||||
```text
|
||||
http://127.0.0.1:8000/immich/people
|
||||
```
|
||||
|
||||
Puis dans l'app :
|
||||
|
||||
1. Ouvrir un patient.
|
||||
2. Cliquer **Visages Immich**.
|
||||
3. Choisir un visage reconnu.
|
||||
4. Vérifier qu'une nouvelle carte `visage Immich` apparaît dans le dossier patient.
|
||||
Reference in New Issue
Block a user