侧边栏壁纸
  • 累计撰写 71 篇文章
  • 累计创建 15 个标签
  • 累计收到 3 条评论

目 录CONTENT

文章目录

关于Synology Photos 人脸识别的网上资料

寒江孤影
2023-11-30 / 0 评论 / 0 点赞 / 3 阅读 / 7064 字
温馨提示:
本文最后更新于 2023-12-04,若内容或图片失效,请留言反馈。部分素材来自网络,若不小心影响到您的利益,请联系我们删除。

关于Synology Photos 人脸识别的网上资料

一、打开群晖套件中心,已安装,找到Synology Photos,查看下图位置,先确认一下安装的套件版本是1.3.3-0330或者1.4.0-0458或者1.5.0-0489;

屏幕截图 2023-09-08 190626.jpg

屏幕截图 2023-09-08 190626.jpg

二、在电脑打开SSH软件,用root用户登录到群晖的SSH下,如果你的群晖没有启用root,,看到以root@开头的就表示已经处于root状态了;

三、Synology Photos套件是1.3.3-0330版本的,输入以下命令:

synopkgctl stop SynologyPhotos
cp -f /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so-bak
cp -f /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so.1.0 /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so.1.0-bak
wget https://ghproxy.com/https://github.com/jinlife/Synology_Photos_Face_Patch/releases/download/1.3.3-0330/libsynophoto-plugin-model.so
wget https://ghproxy.com/https://github.com/jinlife/Synology_Photos_Face_Patch/releases/download/1.3.3-0330/libsynophoto-plugin-model.so.1.0
cp -f libsynophoto-plugin-model.so /var/packages/SynologyPhotos/target/usr/lib/
cp -f libsynophoto-plugin-model.so.1.0 /var/packages/SynologyPhotos/target/usr/lib/
chmod +x /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so
chmod +x /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so.1.0
chown SynologyPhotos:SynologyPhotos /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so
chown SynologyPhotos:SynologyPhotos /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so.1.0
synopkgctl start SynologyPhotos

四、Synology Photos套件是1.4.0-0458版本的,输入以下命令:

synopkgctl stop SynologyPhotos
cp -f /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so-bak
cp -f /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so.1.0 /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so.1.0-bak
wget https://ghproxy.com/https://github.com/jinlife/Synology_Photos_Face_Patch/releases/download/1.4.0-0458/libsynophoto-plugin-model.so
wget https://ghproxy.com/https://github.com/jinlife/Synology_Photos_Face_Patch/releases/download/1.4.0-0458/libsynophoto-plugin-model.so.1.0
cp -f libsynophoto-plugin-model.so /var/packages/SynologyPhotos/target/usr/lib/
cp -f libsynophoto-plugin-model.so.1.0 /var/packages/SynologyPhotos/target/usr/lib/
chmod +x /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so
chmod +x /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so.1.0
chown SynologyPhotos:SynologyPhotos /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so
chown SynologyPhotos:SynologyPhotos /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so.1.0
synopkgctl start SynologyPhotos

五、Synology Photos套件是1.5.0-0489版本的,输入以下命令:

synopkgctl stop SynologyPhotos
cp -f /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so-bak
cp -f /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so.1.0 /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so.1.0-bak
wget https://ghproxy.com/https://github.com/jinlife/Synology_Photos_Face_Patch/releases/download/1.5.0-0489/libsynophoto-plugin-model.so
wget https://ghproxy.com/https://github.com/jinlife/Synology_Photos_Face_Patch/releases/download/1.5.0-0489/libsynophoto-plugin-model.so.1.0
cp -f libsynophoto-plugin-model.so /var/packages/SynologyPhotos/target/usr/lib/
cp -f libsynophoto-plugin-model.so.1.0 /var/packages/SynologyPhotos/target/usr/lib/
chmod +x /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so
chmod +x /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so.1.0
chown SynologyPhotos:SynologyPhotos /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so
chown SynologyPhotos:SynologyPhotos /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so.1.0
synopkgctl start SynologyPhotos

六、在浏览器打开Synonlogy Photos,在右上角设置菜单,点”重建索引“,耐心等待;

屏幕截图 2023-09-08 190817.jpg

屏幕截图 2023-09-08 190817.jpg

七、如果你的群晖系统重装系统、升级系统、重装Synlology Photos套件、升级Synlology Photos套件,那么该补丁都会失效,需要重新打上对应版本的补丁。

八、如果使用虚拟机安装群晖,至少要分四个CPU核心给群晖虚拟机,否则这个人脸识别有可能无法正常使用。

九、如果使用上述补丁后,想恢复系统默认的文件,需要输入以下命令:

synopkgctl stop SynologyPhotos
rm -f /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so
rm -f /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so.1.0
mv -f /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so-bak /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so
mv -f /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so.1.0-bak /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so.1.0
chmod +x /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so
chmod +x /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so.1.0
chown SynologyPhotos:SynologyPhotos /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so
chown SynologyPhotos:SynologyPhotos /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so.1.0
synopkgctl start SynologyPhotos

以上原来来自:https://www.sanqian.fun/index.php/archives/121/

0

评论区