diff --git a/BEDIENUNGSANLEITUNG.md b/BEDIENUNGSANLEITUNG.md index f4e3fb4..ec795c5 100644 --- a/BEDIENUNGSANLEITUNG.md +++ b/BEDIENUNGSANLEITUNG.md @@ -98,6 +98,7 @@ EAN/Barcode eingeben ODER CD-Hülle fotografieren B: musiksammlung scan back.jpg C: musiksammlung scan back.jpg --vision D: musiksammlung scan --barcode 0602557360561 + E: musiksammlung scan --from-photo cover.jpg → album.json prüfen/korrigieren │ ▼ @@ -341,6 +342,20 @@ MusicBrainz liefert bei einem Treffer: Interpret, Albumtitel, Erscheinungsjahr u Beim interaktiven Rip-Befehl (`musiksammlung rip`) wird die EAN als erstes abgefragt. Bei einem MusicBrainz-Treffer startet automatisch der Rip-Vorgang für alle Discs — kein Albumname, keine CDDB-Bestätigung nötig. Das `album.json` wird direkt aus den MusicBrainz-Daten gespeichert. +### Variante E: EAN per Foto (Vision-LLM liest Barcode) + +Wenn die EAN nicht bekannt ist, aber ein Foto der CD-Hülle vorliegt, kann ein Vision-LLM den Barcode automatisch auslesen: + +```bash +musiksammlung scan --from-photo cover.jpg -o album.json +``` + +Das Programm schickt das Bild an das Vision-LLM (Standard: `qwen3-vl:235b-cloud`), extrahiert die EAN-Ziffern und führt anschließend einen MusicBrainz-Lookup durch — identisch zu Variante D. Anderes Modell oder URL: + +```bash +musiksammlung scan --from-photo cover.jpg --vision-model qwen3-vl:7b --url http://localhost:11434 -o album.json +``` + ### album.json prüfen und bearbeiten Das Programm prüft automatisch, ob die Anzahl der erkannten Tracks mit den gerippten Dateien übereinstimmt. Bei Abweichungen erscheint eine Fehlermeldung: diff --git a/README.md b/README.md index da43d75..61ed265 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,9 @@ musiksammlung rip -j 0 -P # Variante A: EAN/Barcode → MusicBrainz → album.json (schnellste Methode) musiksammlung scan --barcode 0602557360561 -o album.json +# Variante A2: EAN per Foto (Vision-LLM liest Barcode) → MusicBrainz → album.json +musiksammlung scan --from-photo cover.jpg -o album.json + # Variante B: Coverbild per Vision-LLM → album.json musiksammlung scan back.jpg --vision -o album.json