This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unable to use CSI camera module!
#1
My board: Thinkerboard S

OS: Xubuntu (The same problem stands for Debian V2.0.8!)

Camera : Raspberry Pi camera. Tried both V2.1 (8 Mega-pixel) and Rev 1.3 (5 Mega-Pixel)
****************************************************
Cmd line output:

$ ls /dev/video*

/dev/video0 /dev/video1 /dev/video2 /dev/video3

$ gst-launch-1.0 v4l2src ! video/x-raw,format=NV12,width=640,height=480 ! videoconvert ! autovideosink

Setting pipeline to PAUSED ...
error: XDG_RUNTIME_DIR not set in the environment.
gbm: failed to open any driver (search paths /usr/lib/arm-linux-gnueabihf/dri:${ORIGIN}/dri:/usr/lib/dri)
gbm: Last dlopen error: /usr/lib/dri/rockchip_dri.so: cannot open shared object file: No such file or directory
failed to load driver: rockchip
Pipeline is live and does not need PREROLL ...
Got context from element 'autovideosink0': gst.gl.GLDisplay=context, gst.gl.GLDisplay=(GstGLDisplay)"\(GstGLDisplayGBM\)\ gldisplaygbm0";
Setting pipeline to PLAYING ...
New clock: GstSystemClock

NOTHING HAPPENS! NO WINDOW PUP UP!
****************************************************
After pressing cntr+c:

^Chandling interrupt.
Interrupt: Stopping pipeline ...
Execution ended after 0:00:02.606803902
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
****************************************************

I tried also with another c++ code from github which works on my labtop:
github.com/SamVadidar/OpenCV-CPP-show-webcam-stream-on-Qt-GUI

But while running, I get this runtime-error:

select timeout
VIDIOC_DQBUF: Resource temporarily unavailable
terminate called after throwing an instance of 'cv::Exception'
  what():  OpenCV(3.4.4) /home/tinker/Applications/opencv-3.4.4/modules/imgproc/src/color.cpp:181: error: (-215:Assertion failed) !_src.empty() in function 'cvtColor'

The program has unexpectedly finished.
****************************************************

Any advice or hint will be highly appreciated. Smile
Reply
#2
Hi,

According tinker board wiki, on TinkerOS v2.0.8 you should use following command to see preview:
Code:
$ gst-launch-1.0 rkcamsrc device=/dev/video0 io-mode=4 isp-mode=2A tuning-xml-path=/etc/cam_iq/IMX219.xml ! videoconvert ! video/x-raw,format=NV12,width=1800,height=960 ! rkximagesink

Best regards
Reply
#3
(01-08-2019, 08:27 PM)masw3 Wrote: Hi,

According tinker board wiki, on TinkerOS v2.0.8 you should use following command to see preview:
Code:
$ gst-launch-1.0 rkcamsrc device=/dev/video0 io-mode=4 isp-mode=2A tuning-xml-path=/etc/cam_iq/IMX219.xml ! videoconvert ! video/x-raw,format=NV12,width=1800,height=960 ! rkximagesink

Best regards

Hi Masw3. How you can open CSI cam from opencv-python ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)