仅适用于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.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\"
重新索引,修复效果
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,进入“设置”-“个人”,点击“重建索引”。
暂无评论内容