# Caméra #### Installer la caméra: https://www.rs-online.com/designspark/raspberry-pi-camera-setup 1. Eteindre le Raspberry 2. Brancher la caméra au connecteur CSI (entre Ethernet et HDMI), la partie alu côté HDMI. 3. Redémarrer le Raspberry et activer la caméra dans Raspi-config ```bash $ sudo raspi-config # 5 Interfacing Options -> P1 Camera -> enable ``` 4. Redémarrer #### Capturer une image: ```bash # au format jpeg $ raspistill -o image.jpg # largeur 1200px $ raspistill -w 1200 -o image.jpg ``` #### Capturer une video: ```bash # 5s au format h264 $ raspivid -o video.h264 # 10s $ raspivid -o video.h264 -t 10000 # largeur 1200px $ raspivid -w 1200$ raspivid -o video.h264 -t 10000 # 10s dans le mode demo $ raspivid -o video.h264 -t 10000 -d ``` Pour voir la liste des options de **raspivid** ou **raspistill**: ```bash $ raspivid | less $ raspistill | less ```