Camera doesnt work

Discussion in 'UDOO QUAD' started by dunfrey, Apr 18, 2018.

  1. dunfrey

    dunfrey New Member

    Joined:
    Apr 18, 2018
    Messages:
    5
    Likes Received:
    0
    Trying use my Udoo QUAD to capture images the camera doesn't work. Running a simple code in python and opencv, when i call the camera using `cap = cv2.VideoCapture(-1)`, for example, this message is returned.
    --------------------------------------------------------------------------------
    HIGHGUI ERROR: libv4l unable to ioctl S_FMT
    HIGHGUI ERROR: libv4l unable to ioctl VIDIOCSPICT

    OpenCV Error: Assertion failed (size.width>0 && size.height>0) in imshow, file /build/buildd/opencv-2.4.8+dfsg1/modules/highgui/src/window.cpp, line 261
    Traceback (most recent call last):
    File "face.py", line 7, in <module>
    cv2.imshow("Video", frame)
    cv2.error: /build/buildd/opencv-2.4.8+dfsg1/modules/highgui/src/window.cpp:261: error: (-215) size.width>0 && size.height>0 in function imshow
    --------------------------------------------------------------------------------

    If a use a UsbCam, WORK OK!!
    WHY? Whats is the problem??
     
  2. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
  3. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
  4. dunfrey

    dunfrey New Member

    Joined:
    Apr 18, 2018
    Messages:
    5
    Likes Received:
    0
    Thanks! This command worked: gst-launch-1.0 imxv4l2videosrc! imxipuvideosink


    But, I have some questions using cam. how can I do it using opencv c++ and, seeing the error returned, do I need to compile opencv again?
     

Share This Page