Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

OpenCV C++ interface and Qt framework

Hello all.

I've been using OpenCV to create a project I need to make. I made a fully functioning console application, and now want to make it more graphical (adding a GUI). I'm using Qt for that.

Everything went well, I was getting into Qt programming, but then something strange happened. When I was calling some of my functions from the Qt project, I was experiencing strange crashes. From some reason, certain opencv functions fail when called from a 'qt project'. Functions include split, findChessboardcorners, cornerSubPix, ... I used the c++ interface. Strangly, the crashes seemed to resolve when calling the function with the c interface.

Does anybody has ANY idea why this might happen? I'm using OpenCV 2.4.2, and Qt 4.8.4.

Any help would be greatly appreciated.

Note: I'm using Windows 7, 64 bit. IDE is Visual Studio 2010.

Kind regards, Philip