İçeriğe geç
GPIO ve Donanım

MIPI CSI kamera (IMX415 / OV13850)

Banana Pi BPI-W3 NAS router board · Kamera modülünü doğrulama, görüntü yakalama ve canlı önizleme.

Önerilen kamera modülü IMX415'tir; OV13850 (13 MP) de desteklenir. Modülü bağlayıp açtıktan sonra algılandığını kontrol edin:

dmesg | grep imx415

Görüntü yakalama ve GStreamer ile önizleme (IMX415, 4K):

v4l2-ctl -d /dev/video11 --set-fmt-video=width=3840,height=2160,pixelformat=NV12 --stream-mmap=3 --stream-skip=60 --stream-to=/tmp/cif73.out --stream-count=3 --stream-poll
gst-launch-1.0 v4l2src device=/dev/video11 ! video/x-raw,format=NV12,width=3840,height=2160, framerate=30/1 ! xvimagesink

OV13850 için:

dmesg | grep ov13850
v4l2-ctl -d /dev/video11 --set-selection=target=crop,top=0,left=0,width=2112,height=1568 --set-fmt-video=width=2112,height=1568,pixelformat=NV12 --stream-mmap=3 --stream-to=/nv12.bin --stream-count=1 --stream-poll
gst-launch-1.0 v4l2src device=/dev/video11 ! video/x-raw,format=NV12,width=2112,height=1568, framerate=30/1 ! xvimagesink

USB 3.0 kameralar "Qt V4L2 test Utility" uygulamasıyla (örnekte video21 düğümü) test edilebilir.