15-03-2019

This commit is contained in:
2019-03-15 20:20:37 +01:00
parent 53d2ce1c0d
commit 941984f1ee
52 changed files with 6416 additions and 70 deletions

View File

@@ -0,0 +1,53 @@
# 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
```