lisa: Bring back face detection libs

Change-Id: I50af944e9398eef352f72f4729999f8d0c556837
This commit is contained in:
Arian 2022-06-22 16:31:14 +02:00 committed by zaidkhan0997
parent 7ed18af0c4
commit 7acd7e8f16
Signed by: zaidkhan0997
GPG Key ID: 6C50557AD547C980
2 changed files with 12 additions and 4 deletions

View File

@ -12,14 +12,17 @@ function blob_fixup() {
[ "$2" = "" ] && return 0
sed -i 's/=\([0-9]\+\)>/="\1">/g' "${2}"
;;
vendor/lib64/hw/camera.qcom.so)
[ "$2" = "" ] && return 0
sed -i "s/\x73\x74\x5F\x6C\x69\x63\x65\x6E\x73\x65\x2E\x6C\x69\x63/\x63\x61\x6D\x65\x72\x61\x5F\x63\x6E\x66\x2E\x74\x78\x74/g" "${2}"
;;
vendor/lib64/hw/camera.xiaomi.so)
[ "$2" = "" ] && return 0
"${SIGSCAN}" -p "29 07 00 94" -P "1F 20 03 D5" -f "${2}"
;;
vendor/lib64/hw/camera.qcom.so | vendor/lib64/libFaceDetectpp-0.5.2.so | vendor/lib64/libfacedet.so)
[ "$2" = "" ] && return 0
sed -i "s/\x73\x74\x5F\x6C\x69\x63\x65\x6E\x73\x65\x2E\x6C\x69\x63/\x63\x61\x6D\x65\x72\x61\x5F\x63\x6E\x66\x2E\x74\x78\x74/g" "${2}"
sed -i "s|libmegface.so|libfacedet.so|g" "${2}"
sed -i "s|libMegviiFacepp-0.5.2.so|libFaceDetectpp-0.5.2.so|g" "${2}"
sed -i "s|megviifacepp_0_5_2_model|facedetectpp_0_5_2_model|g" "${2}"
;;
*)
return 1
;;

View File

@ -424,6 +424,11 @@ vendor/etc/camera/xiaomi/thirdpartydualbokehyuvsnapshot.json
vendor/etc/camera/xiaomi/thirdpartyjpegsnapshot.json
vendor/etc/camera/xiaomi/thirdpartysnapshot.json
# Camera face detection
vendor/etc/camera/megviifacepp_0_5_2_model:vendor/etc/camera/facedetectpp_0_5_2_model
vendor/lib64/libMegviiFacepp-0.5.2.so:vendor/lib64/libFaceDetectpp-0.5.2.so;FIX_SONAME
vendor/lib64/libmegface.so:vendor/lib64/libfacedet.so;FIX_SONAME
# Camera firmware
vendor/firmware/CAMERA_ICP_170.elf