feat: install.sh + section Installation dans CLAUDE.md
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
11
CLAUDE.md
11
CLAUDE.md
@ -47,5 +47,16 @@ gst-launch-1.0 libcamerasrc ! \
|
||||
- Pas de traitement local (YOLOv8 tourne sur le Jetson CUDA)
|
||||
- Réglages caméra via POST /settings (proxyfié depuis FastAPI Jetson)
|
||||
|
||||
## Installation
|
||||
```bash
|
||||
git clone https://git.syoul.fr/nicoboy/wireclaw-pizero
|
||||
cd wireclaw-pizero
|
||||
bash install.sh
|
||||
cp .env.dev .env
|
||||
python3 camera_server.py
|
||||
```
|
||||
|
||||
## Repo
|
||||
git.syoul.fr/nicoboy/wireclaw-pizero
|
||||
|
||||
Après clone : `bash install.sh`
|
||||
27
install.sh
Normal file
27
install.sh
Normal file
@ -0,0 +1,27 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
sudo apt update
|
||||
sudo apt install -y \
|
||||
python3-flask \
|
||||
python3-opencv \
|
||||
python3-dotenv \
|
||||
gstreamer1.0-tools \
|
||||
gstreamer1.0-plugins-base \
|
||||
gstreamer1.0-plugins-good \
|
||||
gstreamer1.0-plugins-bad \
|
||||
gstreamer1.0-plugins-ugly \
|
||||
gstreamer1.0-libcamera \
|
||||
gstreamer1.0-x \
|
||||
gstreamer1.0-gl \
|
||||
libcamera-apps \
|
||||
rpicam-apps \
|
||||
v4l-utils
|
||||
|
||||
# GPU memory pour v4l2h264enc hardware encoder
|
||||
if ! grep -q "gpu_mem=160" /boot/firmware/config.txt; then
|
||||
echo "gpu_mem=160" | sudo tee -a /boot/firmware/config.txt
|
||||
echo "⚠️ Reboot requis pour activer gpu_mem=160"
|
||||
fi
|
||||
|
||||
echo "✅ Installation terminée"
|
||||
Reference in New Issue
Block a user