Update install.sh
Browse files- install.sh +5 -5
install.sh
CHANGED
@@ -14,7 +14,7 @@ if [ "$ubuntu_version" \< "22.04" ]; then
|
|
14 |
fi
|
15 |
|
16 |
# Install packages:
|
17 |
-
apt-get install -y binutils python3 python3-pip python3-opencv libcurl4-openssl-dev libssl-dev libpcsclite-dev
|
18 |
|
19 |
# Install requirements:
|
20 |
python3 -m pip install --upgrade pip && python3 -m pip install opencv-python gradio
|
@@ -22,17 +22,17 @@ python3 -m pip install --upgrade pip && python3 -m pip install opencv-python gra
|
|
22 |
# Copy libraries to /usr/lib based on Ubuntu version
|
23 |
if [ "$ubuntu_version" = "20.04" ]; then
|
24 |
# Copy library for Ubuntu 20.04
|
25 |
-
cp -f ./id_ocr/dependency/libimutils.so /usr/lib
|
26 |
elif [ "$ubuntu_version" = "22.04" ]; then
|
27 |
# Copy library for Ubuntu 22.04
|
28 |
-
cp -f ./id_ocr/dependency/libimutils.so_for_ubuntu22 /usr/lib/libimutils.so
|
29 |
else
|
30 |
# Print an error message for unsupported Ubuntu versions
|
31 |
echo "Error: Unsupported Ubuntu version"
|
32 |
exit 1
|
33 |
fi
|
34 |
|
35 |
-
cp -f ./id_ocr/dependency/libttvcore.so /usr/lib
|
36 |
-
cp -rf ./id_live/dependency/* /usr/lib
|
37 |
|
38 |
echo "Installed successfully!"
|
|
|
14 |
fi
|
15 |
|
16 |
# Install packages:
|
17 |
+
sudo apt-get install -y binutils python3 python3-pip python3-opencv libcurl4-openssl-dev libssl-dev libpcsclite-dev
|
18 |
|
19 |
# Install requirements:
|
20 |
python3 -m pip install --upgrade pip && python3 -m pip install opencv-python gradio
|
|
|
22 |
# Copy libraries to /usr/lib based on Ubuntu version
|
23 |
if [ "$ubuntu_version" = "20.04" ]; then
|
24 |
# Copy library for Ubuntu 20.04
|
25 |
+
sudo cp -f ./id_ocr/dependency/libimutils.so /usr/lib
|
26 |
elif [ "$ubuntu_version" = "22.04" ]; then
|
27 |
# Copy library for Ubuntu 22.04
|
28 |
+
sudo cp -f ./id_ocr/dependency/libimutils.so_for_ubuntu22 /usr/lib/libimutils.so
|
29 |
else
|
30 |
# Print an error message for unsupported Ubuntu versions
|
31 |
echo "Error: Unsupported Ubuntu version"
|
32 |
exit 1
|
33 |
fi
|
34 |
|
35 |
+
sudo cp -f ./id_ocr/dependency/libttvcore.so /usr/lib
|
36 |
+
sudo cp -rf ./id_live/dependency/* /usr/lib
|
37 |
|
38 |
echo "Installed successfully!"
|