Ask Your Question

croco's profile - activity

2015-05-05 20:27:54 -0600 commented question Building Library using Visual Studio 2013

I've installed opencv 3.0 with visual studio 2013. Actually CMake shows you Visual Studio 12 13. I'm using windows 7 though.

2015-05-05 20:23:32 -0600 asked a question why some samples are removed from opencv 3

I just wonder why some interesting samples have been removed from opencv 3? I've installed both opencv 3 and opencv 2.4.10. It seems the latter has move samples than the former. Why is that? For example, in the

...\opencv_2.4.10\sources\samples\cpp\tutorial_code\features2D

there are four interesting examples

1- SURF_descriptor.cpp 2- SURF_detector.cpp 3- SURF_FlannMatcher.cpp 4- SURF_Homography.cpp

while in the same folder in OpenCV 3, there is only

AKAZE_match.cpp

Are there any problems with the old samples?

2015-05-03 00:31:48 -0600 asked a question can't acquire frame from webcam dell after changing the display cable

I have posted the full description for this problem in here but no solution so far.

I've recently changed the Dell LCD LED Display cable (i.e. #: 61TN9 ). The webcam is working (i.e. tested with Skype). Before changing the cable, the webcam was working with opencv however after the replacement, I can't acquire frames from the webcam. In my code, it shows me that the webcam is opened successfully but fails to capture frames. The below picture shows the result

This is the code

#include <iostream>
#include <cstdlib>
#include "opencv2/core/core.hpp"
#include "opencv2/highgui/highgui.hpp"

int main()
{
    // access the default webcam 
    cv::VideoCapture cap(0); 

    // Double check the webcam before start reading. 
    if ( !cap.isOpened() ){ 
        std::cerr  << "Cannot open the webcam " << std::endl;
        exit (EXIT_FAILURE);
    }

    cv::Mat frame;
    cv::namedWindow("webcam",CV_WINDOW_AUTOSIZE);

    while ( true ){

       // acquire frame 
       cap >> frame;

       // Safety checking 
       if ( !frame.data ){ 
         std::cerr << "Cannot acquire frame from the webcam " << std::endl;
            break;
       }

       cv::imshow("webcam", frame); 

       if ( cv::waitKey(30) == 27){
        std::cout << "esc key is pressed" << std::endl;
        break; 
       }
    }

    return 0;
}

I have run the same code in ubuntu (dual boot alongside windows 7) and it opens the webcam but not through HighGUI and I got this error

HIGHGUI ERROR: V4L/V4L2: VIDIOC_S_CROP
init done 
opengl support available

I've re-installed the opencv with making sure that -DWITH_V4L=ON because some ppl suggested so. I'm using Visual Studio 2013, OpenCV 2.4.10. Windows 7 and the laptop is dell inspiron 1564. For the program, I'm using Release mode. I'm not able to know exactly why this occurs.