Photo Station Gescihtserkennung aus Picasa übernehmen

Status
Für weitere Antworten geschlossen.
Also ich bin da einen anderen Weg gegangen. Arbeite schon länger mit Picasa und hatte die Gesichts-Tags in den Bildern abgespeichert. Irgendwo in den Tiefen des engl. Forums habe ich den Hinweis auf ein php-Skript gefunden, daß die Gesichtsinfos aus Picasa übernimmt: picasaXMPFacesToDatabaseAndXMPMP.php. In der Readme steht die Anleitung drin, kopiere sie mal hier rein. Bei funktioniert das einwandfrei!!

  1. Wait until DiskStation have finished the indexing of all images. Only already indexed images will be noticed by the script.
  2. Copy picasaXMPFacesToDatabaseAndXMPMP.php to your DiskStation
  3. Make a backup of your photos in shared-folder /photo and /home/photo
  4. Backup your databases.
  5. Go to Webinterface of your DiskStation and enable SSH-service
    Control-Panel -> Terminal
  6. For Windows User download free SSH-Client Putty.exe
  7. Login via ssh client with connection string root@<IP-DISKSTATION> and your admin-password
  8. Change shell prompt for better overview:
    PS1="\u@\h:\w>"
  9. Copy the php-script to this directory:
    cp /volume1/homes/public/picasaXMPFacesToDatabaseAndXMP.php /volume1/@appstore/PhotoStation/photo_scripts/
    <PATH-TO-FILE> normally something like: /volume1/homes/<USERNAME>/

    Notice: I have no idea yet why the script is working correctly only in this directory and can not lay in other directories
  10. Change to directory:
    cd /volume1/@appstore/PhotoStation/photo_scripts/
    Run script:
    php picasaXMPFacesToDatabaseAndXMPMP.php
  11. If script execution timeout (for example on very first run) just execute again
  12. Enjoy you're Picasa faces in PS.
  13. You can re-run the script each time you have uploaded new images and DS have finished the indexing of these files.

Hallo,

funktioniert dieses Script auch mit DSM 5.2-5592 ?

Danke und VG
Micha
 
Ja, ist (noch) völlig unabhängig von der DSM Version. Probiers einfach mal aus ....
 
Hi Arni,
bei mir (DSM DSM 5.2-5592, Update 4) kommt nur folgender Output:

PHP Warning: Unknown: open_basedir restriction in effect. File(/volume1/@appstore/PhotoStation/photo_scripts/picasaXMPFacesToDatabaseAndXMPMP.php) is not within the allowed path(s): (/etc.defaults:/etc:/usr/syno/synoman:/var/services/tmp:/var/services/web:/var/services/homes:/tmp:/root:/var/packages/PEAR/target) in Unknown on line 0

Picasa XMP- Faces to Photo Station database and XMP.MP

Copyright (C) 2013 Johannes "DerOetzi" Ott <http://DerOetzi@gmail.com>

This program comes with ABSOLUTELY NO WARRANTY;
This is free software, and you are welcome to redistribute it
under certain conditions;

Starting process...

Username: COMMON
No database!

Finished process!


Hast Du eine Ahnung, wo da der Fehler liegt? Suche gerade, wo ich die open_basedir-Variable anpassen kann....

EDIT: open_basedir angepasst, tut leider immer noch nicht, nur die erste FM ist weg. Kann es sein, dass der nur die home-Verzeichnisse durchsucht und nicht die photo-Freigabe?

Gruß
Michael
 
Zuletzt bearbeitet:
Status
Für weitere Antworten geschlossen.
 

Kaffeautomat

Wenn du das Forum hilfreich findest oder uns unterstützen möchtest, dann gib uns doch einfach einen Kaffee aus.

Als Dankeschön schalten wir deinen Account werbefrei.

:coffee:

Hier gehts zum Kaffeeautomat