Pi Camera setup in Crowsnest¶
The crowsnest program is a systemd-managed service that exposes endpoints for streaming video and images. These streams can be opened directly in mainsail.
- Install crowsnest using KIAUH.
- Answer "yes" to the add 'update manager' entry prompt.
- Shut down completely and power off.
- Connect the pi camera using the ribbon cables.
- Power up, and use
rpicam-helloto obtain the device's path.
A pi camera v1.3. shows up like this:
Available cameras
-----------------
0 : ov5647 [2592x1944 10-bit GBRG] (/base/axi/pcie@1000120000/rp1/i2c@88000/ov5647@36)
Modes: 'SGBRG10_CSI2P' : 640x480 [30.00 fps - (65535, 65535)/65535x65535 crop]
1296x972 [30.00 fps - (65535, 65535)/65535x65535 crop]
1920x1080 [30.00 fps - (65535, 65535)/65535x65535 crop]
2592x1944 [30.00 fps - (65535, 65535)/65535x65535 crop]
- Add the following to
crowsnest.confand restart the service.
[cam pi_camera]
mode: spyglass
port: 8080
device: /base/axi/pcie@1000120000/rp1/i2c@88000/ov5647@36
resolution: 1296x972
max_fps: 15
- Add the camera to Mainsail.
| Setting | Value |
|---|---|
| Name | Pi Camera |
| URL Stream | /webcam/?action=stream |
| URL Snapshot | /webcam/?action=snapshot |
| Service | MJPEG-Streamer |
| Rotation | As required |