5 Replies Latest reply on Mar 3, 2015 2:38 PM by Intel_Peter

    opencv in IOT

    annu_shah

      hi i have started working on IOT firstly i am not able to find any tutorial on it if you could help.

      i tried compiling basic opencv cpp code and it gives me this error :-

       

      VIDIOC_QUERYMENU: Invalid argument

      VIDIOC_QUERYMENU: Invalid argument

      VIDIOC_QUERYMENU: Invalid argument

       

      #include <opencv2/opencv.hpp>

      #include <math.h>

      using namespace cv;

      int main(int argc, char *argv[])

      {

      Mat image;

      VideoCapture cap(0);

      while(image.empty())

      {

      cap.read(image);

      }

      cap.release();

       

       

      imwrite("webcam_image.jpg", image);

       

       

      return 0;

      }

       

       

      the same code worked on yocto