git clone https://github.com/friendlyarm/rk3399-opencv-uvccamera-cpp-demo.git
cd rk3399-opencv-uvccamera-cpp-demo
mkdir build
cd build
cmake ..
make
su pi
export DISPLAY=:0.0
. setqt5env
./opencamera 1
su pi
export DISPLAY=:0.0
. setqt5env
./opencamera 3
open the camera using the following code:
pCapture[i] = new VideoCapture(get_camerasrc_mjpeg(devIndex),cv::CAP_GSTREAMER);
open the camera using the following code:
pCapture[i] = new VideoCapture(get_camerasrc_nv12(devIndex),cv::CAP_GSTREAMER);
Logitech C922 (NV21, MJPG)
KS2A242 (NV21, MJPG)
NanoPC T4
NanoPi M4/M4v2/M4B
NanoPi NEO4
SOM-RK3399
v4l2-ctl --list-formats-ext -d /dev/video10
https://github.com/friendlyarm/rk3399-opencv-uvccamera-python-demo
https://github.com/friendlyarm/install-opencv-on-friendlycore
https://github.com/friendlyarm/s5pxx18-opencv-uvccamera-cpp-demo