Can't use camera in opencv for python

Discussion in 'Troubleshooting' started by Takahashi, Nov 11, 2015.

  1. Takahashi

    Takahashi New Member

    Joined:
    Nov 9, 2015
    Messages:
    1
    Likes Received:
    0
    I'm using UDOO Quad with UDOObunu.
    I van use the MIPI 5MP IR AF Camera with "gst-launch-0.10 mfw_v4lsrc ! mfw_v4lsink" command.
    I am trying to use the MIPI 5MP IR AF Camera in python using opencv.
    when I try to Capture a image from the camera, it makes a error like this.

    ubuntu@udoobuntu: ~ $ python
    Python 2.7.3 (default, Apr 21 2012, 01:05:55)
    [GCC 4.6.3] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import cv2
    >>> cap=cv2.VideoCapture(0)
    HIGHGUI ERROR: libv4l unable to ioctl S_FMT
    HIGHGUI ERROR: libv4l unable to ioctl VIDIOCSPICT

    >>>

    How can i fix this?
     
    Last edited: Nov 12, 2015

Share This Page