Please enable javascript, or click here to visit my ecommerce web site powered by Shopify.
Jump to: navigation, search

RockpiN10/hardware/camera/

< RockpiN10‎ | hardware
Revision as of 07:56, 16 April 2020 by Stephen (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
    ROCK Pi N10 >  Hardware >  Camera module

MIPI CSI Camera

ROCK Pi N10 supports The Raspberry Pi Camera Module v2 now.

Connect the display like HDMI monitor on ROCK Pi N10 before testing the camera module.

Install necessary packages:

rock@rockpin10:~$ sudo apt-get update
rock@rockpin10:~$ sudo apt-get install -y gstreamer1.0-rockchip1-extra  #version: 20190621-1
rock@rockpin10:~$ sudo apt-get install -y gstreamer1.0-rockchip1-extra-dbgsym  #version: 20190621-1
rock@rockpin10:~$ sudo apt-get install -y rkisp-engine  #version: 2.0.1

Test script:

rock@rockpin10:~$ cat test-camera.sh 
#!/bin/sh
export DISPLAY=:0.0
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/aarch64-linux-gnu/gstreamer-1.0
#export GST_DEBUG=ispsrc:5
#export GST_DEBUG_FILE=/tmp/2.txt
echo "Start RKISP Camera Preview!"
su rock -c " \
    gst-launch-1.0 rkv4l2src device=/dev/video0 ! video/x-raw,format=NV12,width=800,height=480, framerate=30/1 ! videoconvert ! autovideosink"

Run command:

rock@rockpin10:~$ ./test-camera.sh 
Start RKISP Camera Preview!
Password: 

USB Camera

Troubleshooting