-
Notifications
You must be signed in to change notification settings - Fork 41
libcamera enablement
Module | Sensor | Rating | Notes |
---|---|---|---|
Camera Module v1 | ov5647 | B | Max exposure: 6s |
Camera Module v2 | imx219 | B | Max exposure: 11s |
HQ Camera | imx477 | A | |
imx378 | imx378 | A | Virtually identical to imx477 |
imx519 | imx519 | A | |
HawkEye 64MP | imx682 | A | Processing RAW/DNG bin1 data is slow on SBCs. RAW frames are 122MB. |
OwlSight 64MP | ov64a40 | ? | |
imx290 | imx290 | Untested | |
imx462 | imx462 | A | |
imx327 | imx327 | Untested | |
Camera Module v3 | imx708 | A | |
GS Camera Module | imx296 | A |
Please read the instructions on the Waveshare site
- IMX477 - https://www.waveshare.com/wiki/IMX477_12.3MP_Camera
- IMX378 - https://www.waveshare.com/wiki/IMX378-190_12.3MP_Camera
- IMX519 - https://www.waveshare.com/wiki/IMX519-78_16MP_AF_Camera
- 64mp HawkEye - https://www.arducam.com/64mp-ultra-high-res-camera-raspberry-pi/
- 64mp OwlSight - https://docs.arducam.com/Raspberry-Pi-Camera/Native-camera/64MP-OV64A40/
- IMX462 - https://www.waveshare.com/wiki/IMX462_2MP_Starlight_Camera
Camera auto-detection may not detect the camera. You may need to manual load the overlay for your camera.
Add to /boot/config.txt
dtoverlay=imx477
# imx477 requires minimum 32MB of GPU memory
#gpu_mem=32
Add to /boot/config.txt
dtoverlay=imx378
# imx378 requires minimum 32MB of GPU memory
#gpu_mem=32
Add to /boot/config.txt
dtoverlay=imx708
# imx708 requires minimum 32MB of GPU memory
#gpu_mem=32
Add to /boot/config.txt
dtoverlay=imx462,clock-frequency=74250000
# imx462 requires minimum 32MB of GPU memory
#gpu_mem=32
Add to /boot/config.txt
dtoverlay=imx519
# imx519 requires minimum 32MB of GPU memory
#gpu_mem=32
dtoverlay=imx296
# imx296 requires minimum 32MB of GPU memory
#gpu_mem=32
dtoverlay=arducam-64mp
gpu_mem=128
- There is likely no difference between low and high speeds in an all sky system
Low Speed
dtoverlay=ov64a40,link-frequency=360000000
camera_auto_detect=0
gpu_mem=128
High Speed
dtoverlay=ov64a40,link-frequency=456000000
camera_auto_detect=0
gpu_mem=128
The command used to generate images with libcamera-still may be customized.
https://www.raspberrypi.com/documentation/computers/camera_software.html
Focusing will only work with camera modules with auto-focuser capability like the camera module 3
--autofocus-mode manual --lens-position 7.1
Moves the lens to a fixed focal distance, normally given in dioptres (units of 1 / distance in metres).
0.0 will move the lens to the "infinity" position
Any other number: move the lens to the 1 / number position, so the value 2 would focus at approximately 0.5m
default - move the lens to a default position which corresponds to the hyperfocal position of the lens.
Bin2 mode (half resolution). This is useful with SoCs with lower memory resources like Raspberry Pi 3.
--mode 2028:1520
Bin4 mode
--mode 1014:760
# cropped
--mode 1332:990:10
July 2023 update. The location of the tuning files has changed.
--tuning-file /usr/share/libcamera/ipa/rpi/pisp/camera.json
--tuning-file /usr/share/libcamera/ipa/rpi/vc4/camera.json
Old location
--tuning-file /usr/share/libcamera/ipa/raspberrypi/camera.json
--width and --height only change the output image size in software, but it does not change the sensor parameters.
--width 2028 --height 1520
Bin2 (16mp)
--mode 4624:3472
Bin4 (4mp)
--mode 2312:1736