feat: install.sh + section Installation dans CLAUDE.md

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-09 18:21:46 +02:00
parent 920e0a9871
commit 9d026fa986
2 changed files with 39 additions and 1 deletions

View File

@ -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
git.syoul.fr/nicoboy/wireclaw-pizero
Après clone : `bash install.sh`

27
install.sh Normal file
View 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"