Ask Your Question

Shivam's profile - activity

2014-02-12 10:17:41 -0600 answered a question CMake Error: INSTALL(EXPORT) given unknown export "OpenCVModules"

you can try this :

cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_TBB=ON -D BUILD_NEW_PYTHON_SUPPORT=ON -D WITH_V4L=ON -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON -D BUILD_EXAMPLES=ON -D WITH_QT=ON -D WITH_OPENGL=ON ..

2014-02-10 05:05:39 -0600 received badge  Editor (source)
2014-02-10 05:04:32 -0600 answered a question how to install opencv 2.4.8 in windows

Hi there!!

I have created document (with help of various sources from different websites) for installing OpenCV 2.4.7 on visual studio which works completely fine and will go for 2.4.8 too. Here is the dropbox link for that, you can download pdf file from here https://www.dropbox.com/s/3hawgbe3u9shakh/Documentation%28windows%29.pdf

If you find this useful and if it works for you, please mark it as correct answer. Thank you ;)

2014-01-25 11:27:03 -0600 commented question Building application using Qt and Opencv

If you are using Windows environment on other computer then you can do it by installing visual studio on it and configuring it with opencv. :)

2014-01-25 11:24:56 -0600 commented question Fully manual web-cam?

Hello, didn't get your question. Please explain what exactly you want?

2014-01-22 08:00:00 -0600 commented question Video streaming with opencv 2.4.7 on visual studio 2010

Ok. Will surely look at it. Thanks for the help :) @StevenPuttemans

2014-01-21 11:33:12 -0600 commented question Video streaming with opencv 2.4.7 on visual studio 2010

@berak and @StevenPuttemans still after using 2 backslashes it is showing same output as I mentioned above and thus as a result, video I am trying to load is not opening.

2014-01-20 12:33:55 -0600 asked a question Video streaming with opencv 2.4.7 on visual studio 2010

Hi all :) I tried to load tree.avi file present in sample code of opencv 2.4.7 on visual studio 2010 express edition. I used following code :

#include<opencv\highgui.h>
#include<stdio.h>
#include<opencv\cv.h>

#include<conio.h>
#include <opencv2/imgproc/imgproc.hpp>   
#include <opencv2/core/core.hpp>         
#include <opencv2/highgui/highgui.hpp>

#include<iostream>


using namespace cv;
using namespace std;


 int main()
{
    CvCapture* capture = cvCreateFileCapture("C:\opencv247\samples\c\tree.avi");

    IplImage* frame = NULL;

    if(!capture)
    {
        printf("Video Not Opened\n");
        return -1;
    }

    int width = (int)cvGetCaptureProperty(capture,CV_CAP_PROP_FRAME_WIDTH);
    int height = (int)cvGetCaptureProperty(capture,CV_CAP_PROP_FRAME_HEIGHT);
    double fps = cvGetCaptureProperty(capture, CV_CAP_PROP_FPS);
    int frame_count = (int)cvGetCaptureProperty(capture,  CV_CAP_PROP_FRAME_COUNT);

    printf("Video Size = %d x %d\n",width,height);
    printf("FPS = %f\nTotal Frames = %d\n",fps,frame_count);

    while(1)
    {
        frame = cvQueryFrame(capture);

        if(!frame)
        {
            printf("Capture Finished\n");
            break;
        }

        cvShowImage("video",frame);
        cvWaitKey(10);
    }

    cvReleaseCapture(&capture);
    return 0;
}

I am getting following result after I debug the above code and thus video is not opening :

'OPEN_CV_TEST.exe': Loaded 'C:\Users\Shivam\Documents\Visual Studio 2010\Projects\OPEN_CV_TEST\Debug\OPEN_CV_TEST.exe', Symbols loaded.
'OPEN_CV_TEST.exe': Loaded 'C:\Windows\System32\ntdll.dll', Symbols loaded (source information stripped).
'OPEN_CV_TEST.exe': Loaded 'C:\Windows\System32\kernel32.dll', Symbols loaded (source information stripped).
'OPEN_CV_TEST.exe': Loaded 'C:\Windows\System32\KernelBase.dll', Symbols loaded (source information stripped).
'OPEN_CV_TEST.exe': Loaded 'C:\opencv247\build\x86\vc10\bin\opencv_highgui247d.dll', Cannot find or open the PDB file
'OPEN_CV_TEST.exe': Loaded 'C:\Windows\System32\user32.dll', Symbols loaded (source information stripped).
'OPEN_CV_TEST.exe': Loaded 'C:\Windows\System32\gdi32.dll', Symbols loaded (source information stripped).
'OPEN_CV_TEST.exe': Loaded 'C:\Windows\System32\lpk.dll', Symbols loaded (source information stripped).
'OPEN_CV_TEST.exe': Loaded 'C:\Windows\System32\usp10.dll', Symbols loaded (source information stripped).
'OPEN_CV_TEST.exe': Loaded 'C:\Windows\System32\msvcrt.dll', Symbols loaded (source information stripped).
'OPEN_CV_TEST.exe': Loaded 'C:\Windows\System32\ole32.dll', Symbols loaded.
'OPEN_CV_TEST.exe': Loaded 'C:\Windows\System32\rpcrt4.dll', Symbols loaded (source information stripped).
'OPEN_CV_TEST.exe': Loaded 'C:\Windows\System32\oleaut32.dll', Symbols loaded (source information stripped).
'OPEN_CV_TEST.exe': Loaded 'C:\Windows\System32\advapi32.dll', Symbols loaded (source information stripped).
'OPEN_CV_TEST.exe': Loaded 'C:\Windows\System32\sechost.dll', Symbols loaded (source information stripped).
'OPEN_CV_TEST.exe': Loaded 'C:\opencv247\build\x86\vc10\bin\opencv_core247d.dll', Cannot find or open the PDB file
'OPEN_CV_TEST.exe': Loaded 'C:\Windows\System32\msvcp100d.dll', Symbols loaded.
'OPEN_CV_TEST.exe': Loaded 'C:\Windows\System32\msvcr100d.dll', Symbols loaded.
'OPEN_CV_TEST.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.7601.17514_none_ec83dffa859149af\comctl32.dll', Symbols loaded (source information stripped).
'OPEN_CV_TEST.exe': Loaded 'C:\Windows\System32\avifil32.dll', Symbols loaded (source information stripped).
'OPEN_CV_TEST.exe': Loaded 'C:\Windows\System32\winmm.dll', Symbols loaded (source information stripped).
'OPEN_CV_TEST.exe': Loaded 'C:\Windows\System32\msacm32.dll', Symbols loaded (source information stripped).
'OPEN_CV_TEST.exe': Loaded 'C:\Windows\System32\msvfw32.dll', Symbols loaded (source information stripped).
'OPEN_CV_TEST.exe': Loaded 'C:\Windows\System32\shell32.dll', Symbols loaded (source information stripped).
'OPEN_CV_TEST.exe': Loaded 'C:\Windows\System32\shlwapi.dll', Symbols loaded ...
(more)