Line 27: |
Line 27: |
| Radxa ZERO 3W provides a 22-pin connector compatible with Raspberry Pi, allowing our camera to be installed on its motherboard without the need for an adapter board. | | Radxa ZERO 3W provides a 22-pin connector compatible with Raspberry Pi, allowing our camera to be installed on its motherboard without the need for an adapter board. |
| ====Connection of Camera and Radxa ZERO 3W Board==== | | ====Connection of Camera and Radxa ZERO 3W Board==== |
− |
| |
− | The two are connected using 1.0 mm pitch*15P FFC cable with opposite direction. The cable must be inserted with the silver contacts facing outside.
| |
| | | |
| Both use a 15-to-22-pin FFC cable for connection, ensuring that the silver contact surface faces outward. | | Both use a 15-to-22-pin FFC cable for connection, ensuring that the silver contact surface faces outward. |
Line 43: |
Line 41: |
| | | |
| In addition, a compiled linux kernel installation package is provided in the [https://github.com/veyeimaging/rk356x_radxa/releases releases]. | | In addition, a compiled linux kernel installation package is provided in the [https://github.com/veyeimaging/rk356x_radxa/releases releases]. |
− | ====Upgrade Radxa Debain system====
| + | ===Upgrade Radxa Debain system=== |
− | =====Overview=====
| + | ====Overview==== |
| This section describes how to update the RK35xx system to support our camera modules. | | This section describes how to update the RK35xx system to support our camera modules. |
| | | |
| We provide a deb installation package that can be installed directly. | | We provide a deb installation package that can be installed directly. |
− | =====kernel version 4.19=====
| + | ====Burn Radxa standard system==== |
− | ======Burn Radxa standard system======
| |
| Refer to the [https://wiki.t-firefly.com/en/ROC-RK3566-PC/01-bootmode.html Radxa documentation] to burn in a standard system. | | Refer to the [https://wiki.t-firefly.com/en/ROC-RK3566-PC/01-bootmode.html Radxa documentation] to burn in a standard system. |
− | ======Using prebuilt Image and dtb file======
| + | ====Using prebuilt Image and dtb file==== |
| Using the compiled debain installation package | | Using the compiled debain installation package |
| | | |
| On the RK35xx board, | | On the RK35xx board, |
| | | |
− | Download the latest rk356x_Radxa_ubuntu.tar.gz from [https://github.com/veyeimaging/rk35xx_firefly/releases/ https://github.com/veyeimaging/rk35xx_Radxa/releases/] . | + | Download the latest rk356x_Radxa_ubuntu.tar.gz from [https://github.com/veyeimaging/rk35xx_radxa/releases/ https://github.com/veyeimaging/rk35xx_Radxa/releases/] . |
| | | |
| <code>tar -xavf rk356x_radxa_zero3w.tar.gz</code> | | <code>tar -xavf rk356x_radxa_zero3w.tar.gz</code> |
Line 69: |
Line 66: |
| | | |
| If the version does not match, it needs to be compiled from the source code. | | If the version does not match, it needs to be compiled from the source code. |
− | ====Check system status====
| + | ===Check system status=== |
| Run the following command to confirm whether the camera is probed. | | Run the following command to confirm whether the camera is probed. |
| | | |
Line 91: |
Line 88: |
| | | |
| For Radxa Zero 3W, the camera is connected to i2c-2. | | For Radxa Zero 3W, the camera is connected to i2c-2. |
− | ====Application examples====
| + | ===Application examples=== |
− | =====v4l2-ctl=====
| + | ====v4l2-ctl==== |
− | ======Install v4l2-utils======
| + | =====Install v4l2-utils===== |
| <code>sudo apt-get install v4l-utils</code> | | <code>sudo apt-get install v4l-utils</code> |
− | ======List the data formats supported by the camera======
| + | =====List the data formats supported by the camera===== |
| <code>v4l2-ctl --list-formats-ext</code> | | <code>v4l2-ctl --list-formats-ext</code> |
− | ======Snap YUV picture======
| + | =====Snap YUV picture===== |
| <code>v4l2-ctl --set-fmt-video=width=1920,height=1080,pixelformat='NV12' --stream-mmap --stream-count=100 --stream-to=nv12-1920x1080.yuv</code> | | <code>v4l2-ctl --set-fmt-video=width=1920,height=1080,pixelformat='NV12' --stream-mmap --stream-count=100 --stream-to=nv12-1920x1080.yuv</code> |
| | | |
Line 105: |
Line 102: |
| | | |
| You can use software like YUV Player or Vooya to play the images. | | You can use software like YUV Player or Vooya to play the images. |
− | ======Check frame rate======
| + | =====Check frame rate===== |
| <code>v4l2-ctl --set-fmt-video=width=1920,height=1080,pixelformat=UYVY --stream-mmap --stream-count=-1 --stream-to=/dev/null</code> | | <code>v4l2-ctl --set-fmt-video=width=1920,height=1080,pixelformat=UYVY --stream-mmap --stream-count=-1 --stream-to=/dev/null</code> |
− | =====yavta=====
| + | ====yavta==== |
| <code>git clone <nowiki>https://github.com/veyeimaging/yavta.git</nowiki></code> | | <code>git clone <nowiki>https://github.com/veyeimaging/yavta.git</nowiki></code> |
| | | |
Line 113: |
Line 110: |
| | | |
| <code>./yavta -c1 -Fnv12-1920x1080.yuv --skip 0 -f NV12 -s 1920x1080 /dev/video0</code> | | <code>./yavta -c1 -Fnv12-1920x1080.yuv --skip 0 -f NV12 -s 1920x1080 /dev/video0</code> |
− | =====gstreamer=====
| + | ====gstreamer==== |
| We provide several gstreamer routines that implement the preview, capture, and video recording functions. See the [https://github.com/veyeimaging/rk356x_firefly/tree/main/linux/samples samples] directory on github for details. | | We provide several gstreamer routines that implement the preview, capture, and video recording functions. See the [https://github.com/veyeimaging/rk356x_firefly/tree/main/linux/samples samples] directory on github for details. |
− | =====Import to OpenCV=====
| + | ====Import to OpenCV==== |
| First install OpenCV: | | First install OpenCV: |
| | | |
Line 121: |
Line 118: |
| | | |
| We provide several routines to import camera data into opencv. See the [https://github.com/veyeimaging/rk356x_firefly/tree/main/linux/samples samples] directory on github for details. | | We provide several routines to import camera data into opencv. See the [https://github.com/veyeimaging/rk356x_firefly/tree/main/linux/samples samples] directory on github for details. |
− | ====Compile drivers and dtb from source code====
| + | ===Compile drivers and dtb from source code=== |
| | | |
| *RK356x | | *RK356x |