Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cannot Open CSI Camera with OpenCV in TinkerOS 2.0.5
#1
I am using a CSI camera. It uses OV5647, and, according to the vendor, compatible with TinkerOS after 2.0.4.

In a clean TinkerOS 2.0.5, I followed the exact steps in Tinkerboard Wiki and the camera works fine if Gstreamer is used for preview except that it throws out an error message (but the preview still works). All information from Gstreamer is as follows,
       
Code:
        Setting pipeline to PAUSED ...
        libv4l2: error getting pixformat: Bad address
        Pipeline is live and does not need PREROLL ...
        Setting pipeline to PLAYING ...
        New clock: GstSystemClock


However, when I run the "OpenCV in python (Face Detection)" example, cv2.VideoCapture() cannot open the camera and throws out information as follows,
       
Code:
        VIDEOIO ERROR: V4L: device v4l2src ! video/x-raw,format=NV12,width=640,height=480 ! videoconvert ! appsink: Unable to query number of channels
        libv4l2: error getting pixformat: Bad address


Currently I am working on a prototype on Tinker Board, and everything is perfect except this camera issue... Any advice would be appreciated. If it just does not work, I have to look for an alternative for Tinker Board as soon as possible Undecided
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)