.. |br| raw:: html
.. _qsmp2-bsp-camera: Camera Guide ============ Camera Enablement ----------------- .. list-table:: :header-rows: 1 * - Module - Camera - Precompiled Image - Yocto Enablement * - QSMP-2550 - `RaspberryPi Camera`_ - *qsmp-2550-karo-image-weston* in `Download Area`_ - :ref:`yocto-guide/mainline/build:Raspberry Pi Camera` * - QSMP-2350 - `RaspberryPi Camera`_ - *qsmp-2350-karo-image-weston* in `Download Area`_ - :ref:`yocto-guide/mainline/build:Raspberry Pi Camera` Camera DTB ---------- To enable camera support you need to load the appropriate FDT overlay according to the following table. .. list-table:: :header-rows: 1 :widths: 25 25 50 * - Module - Camera Supported - FDT overlay * - qsmp-2* on qsbase5 - `RaspberryPi Camera`_ - qsmp-csi Stream Camera ------------- To stream a camera live video on your weston desktop follow the instructions listed below. .. list-table:: :header-rows: 1 :widths: 15 15 70 * - Module - Camera - Stream Options * - qsmp-2* - `RaspberryPi Camera`_ - Start camera stream from serial terminal: .. prompt:: :prompts: # export XDG_RUNTIME_DIR=/run/user/1000 export WAYLAND_DISPLAY=wayland-1 media-ctl -r media-ctl -d platform:48030000.dcmipp -l \ '"stm32_csi 48020000.csi":1->"dcmipp_input":0[1]' media-ctl -d platform:48030000.dcmipp -l \ "'dcmipp_input':2->'dcmipp_main_isp':0[1]" media-ctl -d platform:48030000.dcmipp \ --set-v4l2 "'imx219 0-0010':0[fmt:SRGGB10_1X10/2592x1940]" media-ctl -d platform:48030000.dcmipp \ --set-v4l2 "'stm32_csi 48020000.csi':1[fmt:SRGGB10_1X10/2592x1940]" media-ctl -d platform:48030000.dcmipp \ --set-v4l2 "'dcmipp_input':2[fmt:SRGGB10_1X10/2592x1940 field:none]" media-ctl -d platform:48030000.dcmipp \ --set-v4l2 "'dcmipp_main_isp':1[fmt:RGB888_1X24/2592x1940 field:none]" media-ctl -d platform:48030000.dcmipp \ --set-v4l2 "'dcmipp_main_postproc':0[compose:(0,0)/640x480]" media-ctl -d platform:48030000.dcmipp \ --set-v4l2 "'dcmipp_main_postproc':1[fmt:RGB888_1X24/640x480]" export main_capture_dev=\ $(media-ctl -d "platform:48030000.dcmipp" -e "dcmipp_main_capture") gst-launch-1.0 v4l2src device=$main_capture_dev ! \ "video/x-raw, format=RGB16, width=640,height=480, framerate=30/1" ! \ queue ! waylandsink fullscreen=true .. _`RaspberryPi Camera`: https://www.raspberrypi.org/products/camera-module-v2/ .. _`Download Area`: https://www.karo-electronics.com/downloads