Ask Your Question

bee.'s profile - activity

2018-08-25 06:11:55 -0600 received badge  Famous Question (source)
2016-04-18 10:15:02 -0600 received badge  Notable Question (source)
2016-03-14 10:41:35 -0600 received badge  Famous Question (source)
2015-11-22 23:14:38 -0600 received badge  Popular Question (source)
2014-11-12 08:23:49 -0600 received badge  Notable Question (source)
2014-05-19 23:54:36 -0600 received badge  Popular Question (source)
2013-01-18 08:22:26 -0600 commented answer Problems of Building OpenCV 2.4.3 with Visual Studio 2012

I think there is no 249 version. Have you remove everything and make a build once again withVS11 32bit? And have you add the path to the PATH variable?

2013-01-17 05:18:16 -0600 answered a question Problems of Building OpenCV 2.4.3 with Visual Studio 2012

It should be VS11 32-bit. At least I used it and I have Win8 64bit and 32bit VS.

2013-01-17 05:13:59 -0600 commented question using cout with Mat object

Ok, it's working. For Visual Studio 2012 you have to make a build of OpenCV in CMake and change of course the path to the libs in Linker properties and also change the environmental variable PATH.

2013-01-16 07:34:47 -0600 commented answer Error with Opencv include files in Visual studio 2008

So you have to :)

Project properties -> Linker -> General -> Additional library directories: it will probably be

C:\opencv\build\x86\vc10\lib

but you have to check if libs are there. Also you have to put on list every lib in

Project properties -> Linker -> Input -> Additional dependecies

opencv_calib3d243d.lib opencv_contrib243d.lib opencv_core243d.lib opencv_features2d243d.lib opencv_flann243d.lib opencv_gpu243d.lib opencv_haartraining_engined.lib opencv_highgui243d.lib opencv_imgproc243d.lib opencv_legacy243d.lib opencv_ml243d.lib opencv_nonfree243d.lib opencv_objdetect243d.lib opencv_photo243d.lib opencv_stitching243d.lib opencv_ts243d.lib opencv_video243d.lib opencv_videostab243d.lib

Name with "d" at the end is for debug version. For release you have to remove "d".

2013-01-16 06:53:40 -0600 commented answer Error with Opencv include files in Visual studio 2008

Did you put sth in: Project properties -> Linker -> General -> Additional library directories Project properties -> Linker -> Input -> Additional dependecies ?

2013-01-16 05:40:59 -0600 answered a question Error with Opencv include files in Visual studio 2008

Try:

C:\opencv\build\include C:\opencv\build\include\opencv C:\opencv\build\include\opencv2

because C:\opencv\include is incomplete.

2013-01-16 01:36:38 -0600 commented answer using cout with Mat object

So still waiting, maybe someone will know what to do..

2013-01-16 01:35:35 -0600 commented answer using cout with Mat object

But it's still the same as in the tutorial and still the same exception...

2013-01-15 13:27:46 -0600 received badge  Student (source)
2013-01-15 08:28:58 -0600 asked a question using cout with Mat object

Hi.. I needed to print my Mat object and the programm throws an exception... The project is really simply: creating Mat object and printing by using cout - just like in OpenCV tutorial:

#include <core/core.hpp>
#include <highgui/highgui.hpp>

#include <iostream>

using namespace std;
using namespace cv;

int main(int argc, char *argv[])
{
    Mat O = Mat::ones(2, 2, CV_32F);
    cout << "O = " << endl << " " << O << endl << endl;

    // Point2f P(5, 1);
    // cout << "Point (2D) = " << P << endl << endl;

return 0;
}

The exception says: Unhandled exception at 0x59430671 (msvcp100d.dll) in printingTest.exe: 0xC0000005: Access violation reading location 0x00000000. Console shows only

O = [

Precisely it stops on "operations.hpp" at:

static inline std::ostream& operator << (std::ostream& out, const Mat& mtx) { Formatter::get()->write(out, mtx); return out; } It seems "out" to be empty, but does someone know why? Tutorial says it should work...

I had earlier similar problem with throwing exception and I solved it here:

http://answers.opencv.org/question/5113/problem-with-reading-image-to-mat/

Is it possible that there is another environmental variable conflict? or maybe a collision 'cause I'm using VS2012 and there's OpenCV only for v10?

The thing with Point2f which is commented works normally.

2012-12-12 08:42:57 -0600 commented question problem with reading image to Mat

Thank you for your responses. I actually fixed it. The problem was in environmental variable path, there was for version vs2008 and next for 2012. When I removed the first one, there was a problem with missing .dll, but there are lots of guides how to managed it. So it works :)

@StevePuttemans: I tried manual debugging, but it alwas stopped at imread() line, it didn't read the picture so the mat object was empty. And I didn't know what to do. These are my first steps with opencv and c++. Anyway it works. Thanks for your answer :)

2012-12-12 06:58:42 -0600 received badge  Editor (source)
2012-12-12 06:57:19 -0600 asked a question problem with reading image to Mat

I'm using Visual Studio 2012 with OpenCv 2.4.3 and I don't know if I'm doing sth wrong but I can't do the simplest imread(), because there is a problem with memory I think. Here is the code:

#include <iostream>
#include <string>

#include <imgproc\imgproc.hpp>  
#include <core\core.hpp>        
#include <highgui\highgui.hpp>       


using namespace std;
using namespace cv;

Mat img;

int main(int argc, char *argv[])
{
    img = imread("lena.jpg", 1);
    namedWindow("Lena", CV_WINDOW_AUTOSIZE);
    imshow("Lena", img);
    waitKey();

    return 0;
}

During debuging it stops at imread() and throws exception: Unhandled exception at 0x5B9665AF (msvcr90d.dll) in opencv_test.exe: 0xC0000005: Access violation reading location 0xCCCCCCCC.

If anyone knows what could be wrong, please help