黑群晖DSM7.0/7.1/7.2 Synology Photos人脸识别补丁

仅适用于X86_64的黑群晖7.0-7.2机型,目前测试识别正常,索引期间CPU占用率也不高。

原理修改为不调用GPU显卡,只用CPU,所以不算完美!仅测试了DS918+、DS920+,其它机型自行研究!

万由NS202直接支持face识别,不需要修复,BIOS里面关闭vt-d即可!所以建议先研究下实在不行再搞补丁。

操作步骤

1、停用Synology Photos套件

2、不限制Synology Photos套件的版本,ssh执行修复

sudo -i

输入密码

【Synology Photos安装1.7.0-0795版本的点这里进来】

synopkgctl stop SynologyPhotos
cp -f /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-platform.so /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-platform.so-bak
cp -f /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-platform.so.1.0 /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-platform.so.1.0-bak
cd /tmp
wget --no-check-certificate https://mirror.ghproxy.com/https://github.com/jinlife/Synology_Photos_Face_Patch/releases/download/1.7.0-0795/libsynophoto-plugin-platform.so
wget --no-check-certificate https://mirror.ghproxy.com/https://github.com/jinlife/Synology_Photos_Face_Patch/releases/download/1.7.0-0795/libsynophoto-plugin-platform.so.1.0
cp -f libsynophoto-plugin-platform.so /var/packages/SynologyPhotos/target/usr/lib/
cp -f libsynophoto-plugin-platform.so.1.0 /var/packages/SynologyPhotos/target/usr/lib/
chmod +x /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-platform.so
chmod +x /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-platform.so.1.0
chown SynologyPhotos:SynologyPhotos /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-platform.so
chown SynologyPhotos:SynologyPhotos /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-platform.so.1.0
synopkgctl start SynologyPhotos

Synology Photos 1.6.x版本手动打补丁(建议方式)

wget http://code.imnks.com/face/PatchELFSharp
chmod +x PatchELFSharp
# support face and concept
./PatchELFSharp "/var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-platform.so.1.0" "_ZN9synophoto6plugin8platform20IsSupportedIENetworkEv" "B8 00 00 00 00 C3"
# force to support concept
./PatchELFSharp "/var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-platform.so.1.0" "_ZN9synophoto6plugin8platform18IsSupportedConceptEv" "B8 01 00 00 00 C3"
# force no Gpu
./PatchELFSharp "/var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-platform.so.1.0" "_ZN9synophoto6plugin8platform23IsSupportedIENetworkGpuEv" "B8 00 00 00 00 C3"

Synology Photos 1.3.3及之前的旧版本手动打补丁(建议方式)

wget http://code.imnks.com/face/PatchELFSharp
chmod +x PatchELFSharp
./PatchELFSharp "/var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-model.so.1.0" "_ZN9synophoto6plugin7network9IeNetwork11IsSupportedEv" "B8 00 00 00 00 C3"

重新索引,修复效果

黑群晖DSM7.X的Synology Photos套件没有人脸识别的解决方法

PS:视频缩略图问题(群友实测OK,成功条件?:CPU核数≥4)

提前安装矿神SPK源里面的ffmpeg套件

mv /usr/bin/ffmpeg /usr/bin/ffmpeg.bak
ln -s /var/packages/ffmpeg/target/bin/ffmpeg /usr/bin/ffmpeg

进入DSM后台,“控制面板”-“共享文件夹”,为“photo”和“homes”设置“sc-ffmpge”的“可读写”访问权限;登录Synology Photos,进入“设置”-“个人”,点击“重建索引”。

© 版权声明
THE END
喜欢就支持一下吧
点赞3 分享