树莓派5上的MIPI摄像头

有关支持的摄像头类型的概述,请打开https://github.com/raspberrypi/firmware/blob/master/boot/overlays/README

并在其中搜索 IMX219。你会获得一个可用内核模块的列表。仅支持 64 位安装。

需要安装 libcamera0.1 软件包。默认情况下它应该已被安装。

/boot/config.txt 文件应包含/省略以下设置:

dtparam=i2c_param=on
dtaparam=i2s=on

# disable auto detect
# it seems to interfer with the camera init
camera_auto_detect=0

# SENSOR is the camera model used, e.g. imx290, imx296, etc.
# X is the port used either 0 or 1
dtoverlay=<SENSOR>,cam<X>

重启之后,摄像头应该能被正确检测到。imx290 需要额外进行配置。

下载并解压 IMX290 Config file

将 "pi/imx290.json" 复制到 "/usr/share/libcamera/ipa/rpi/pisp/imx290.json".

工具

如需安装工具,请执行 "sudo apt install rpicam-apps libcamera-tools".

列出摄像头:

cam -l

To display a sample live stream

libcamera-raw --camera <X> -t 0 --width 1920 --height 1080 --framerate 30

其中 X 是 cam -l 命令输出中的列表编号。

36SX296 Sensor board

将附件中的 36sx296.dtbo 文件放置在树莓派 5 上的 /boot/firmware/overlays 文件夹中。

E编辑 /boot/firmware/config.txt 文件,将 dtoverlay=imx296 这行替换为:dtoverlay=36sx296.

然后重启。

如有进一步的问题,请使用我们的 contact form.