diff --git a/CLAUDE.md b/CLAUDE.md index 1c3c047..d166a6d 100644 --- a/CLAUDE.md +++ b/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 \ No newline at end of file +git.syoul.fr/nicoboy/wireclaw-pizero + +Après clone : `bash install.sh` \ No newline at end of file diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..50acecc --- /dev/null +++ b/install.sh @@ -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"