Aller au contenu

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

$ sudo raspi-config 
# 5 Interfacing Options -> P1 Camera -> enable
  1. Redémarrer

Capturer une image:

# au format jpeg
$ raspistill -o image.jpg
# largeur 1200px
$ raspistill -w 1200 -o image.jpg

Capturer une video:

# 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:

$ raspivid | less

$ raspistill | less

Dernière mise à jour: March 15, 2019