15-03-2019
This commit is contained in:
53
docs/Raspberry/materiels/camera.md
Normal file
53
docs/Raspberry/materiels/camera.md
Normal 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
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user