From b71de38e771a7c0289d2030dc5f1ea18647314b0 Mon Sep 17 00:00:00 2001 From: Moe <github@m03.ca> Date: Thu, 23 Apr 2020 14:33:01 -0700 Subject: [PATCH] Face Manager : Add Install rule for Face Manager in Face plugin Installer - This is a customAutoLoad module, once added Shinobi needs to be restarted. --- plugins/face/INSTALL.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/plugins/face/INSTALL.sh b/plugins/face/INSTALL.sh index 348727a2..684abbec 100644 --- a/plugins/face/INSTALL.sh +++ b/plugins/face/INSTALL.sh @@ -15,7 +15,7 @@ echo "----------------------------------------" echo "-- Installing Face Plugin for Shinobi --" echo "----------------------------------------" echo "Are you Installing on an ARM CPU?" -echo "like Jetson Nano or Raspberry Pi B+. Default is No." +echo "like Jetson Nano or Raspberry Pi Model 3 B+. Default is No." echo "(y)es or (N)o" read useArm if [ "$useArm" = "y" ] || [ "$useArm" = "Y" ] || [ "$useArm" = "YES" ] || [ "$useArm" = "yes" ] || [ "$useArm" = "Yes" ]; then @@ -79,6 +79,12 @@ if [ ! -e "./conf.json" ]; then else echo "conf.json already exists..." fi +if [ ! -e "$DIR/../../libs/customAutoLoad/faceManagerCustomAutoLoadLibrary" ]; then + echo "Installing Face Manager customAutoLoad Module..." + sudo cp -r $DIR/faceManagerCustomAutoLoadLibrary $DIR/../../libs/customAutoLoad/faceManagerCustomAutoLoadLibrary +else + echo "Face Manager customAutoLoad Module already installed..." +fi if [ "$INSTALL_WITH_GPU" = "1" ]; then echo "TensorFlow.js plugin will use GPU" sed -i 's/"tfjsBuild":"cpu"/"tfjsBuild":"gpu"/g' conf.json