forked from Nerdy-Things/raspberry-pi-ai-camera-yolov8
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·31 lines (22 loc) · 937 Bytes
/
install.sh
File metadata and controls
executable file
·31 lines (22 loc) · 937 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
# https://www.raspberrypi.com/documentation/accessories/ai-camera.html
# Required - installing dependencies
sudo apt update && sudo apt full-upgrade
sudo apt install imx500-all
sudo apt install python3-opencv python3-munkres
pip install model_compression_toolkit --break-system-packages
pip install imx500-converter[pt] --break-system-packages
# Optional - Changing Locale
sudo sed -i 's/LANG=en_US.UTF-8/LANG=en_US.UTF-8/' /etc/default/locale
sudo sed -i 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen
sudo locale-gen
sudo update-locale LANG=en_US.UTF-8
# Optional - installing FTP
sudo apt install vsftpd
sudo sed -i 's/#write_enable=YES/write_enable=YES/' /etc/vsftpd.conf
sudo systemctl restart vsftpd.service
# Opional
# in case if you need original repositories.
# git clone https://github.com/raspberrypi/picamera2.git
# git clone https://github.com/raspberrypi/imx500-models.git
sudo reboot now