Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I get no video from the camera that is connected with firewire.

I have a question. I get no video from the camera that is connected with firewire. ordinary web camera works properly

I work with opencv3.0.0 and VS12. there is no error, as if the program does not see the camera with VS10 and Opencv231 everything goes without problem

what could be the problem?

    #include "opencv2/opencv.hpp"

using namespace cv;

int main()
{
    int c;
    Mat img;
    VideoCapture cap(0);
    while (true)
    {
        cap >> img;
         if(img.empty()){
        continue;  }  //or break; depending on your application/preferene

        Mat edges;
        cvtColor(img, edges, CV_BGR2GRAY);

        Canny(edges, edges, 10, 100);
        imshow("Canny", edges); //края
        imshow("Norm", img); //обычное видео с камеры
        c=waitKey(1);

         if(c==27) // ESC закрыть окно
         break;
    }
         return 0;
}

I get no video from the camera that is connected with firewire.

I have a question. I get no video from the camera that is connected with firewire. ordinary web camera works properly

I work with opencv3.0.0 and VS12. there is no error, as if the program does not see the camera with VS10 and Opencv231 everything goes without problem

what could be the problem?

    #include "opencv2/opencv.hpp"

using namespace cv;

int main()
{
    int c;
    Mat img;
    VideoCapture cap(0);
    while (true)
    {
        cap >> img;
         if(img.empty()){
        continue;  }  //or break; depending on your application/preferene
 
        Mat edges;
        cvtColor(img, edges, CV_BGR2GRAY);

        Canny(edges, edges, 10, 100);
        imshow("Canny", edges); //края
         imshow("Norm", img); //обычное видео с камеры
         c=waitKey(1);

         if(c==27) // ESC закрыть окно
          break;
    }
         return 0;
}
click to hide/show revision 3
retagged

I get no video from the camera that is connected with firewire.

I have a question. I get no video from the camera that is connected with firewire. ordinary web camera works properly

I work with opencv3.0.0 and VS12. there is no error, as if the program does not see the camera with VS10 and Opencv231 everything goes without problem

what could be the problem?

    #include "opencv2/opencv.hpp"

using namespace cv;

int main()
{
    int c;
    Mat img;
    VideoCapture cap(0);
    while (true)
    {
        cap >> img;
         if(img.empty()){
        continue;  }  //or break; 

        Mat edges;
        cvtColor(img, edges, CV_BGR2GRAY);

        Canny(edges, edges, 10, 100);
        imshow("Canny", edges); 
        imshow("Norm", img); 
        c=waitKey(1);

         if(c==27) 
         break;
    }
         return 0;
}