Ask Your Question

Capton's profile - activity

2017-09-04 13:11:16 -0600 received badge  Popular Question (source)
2013-03-30 08:25:43 -0600 received badge  Student (source)
2013-03-16 09:00:19 -0600 asked a question simple image display code not working in qt creator

Hello everyone, I'm running a a simple image display program with opencv in QtCreator but whenever i run the code it opens a console(qtcreator_process_stub.exe),says press<return> to close window and then nothing happens Please i need help Below is my code:

MAIN.CPP

#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
using namespace cv;
int main() {
Mat image= imread("imgage.jpg");
namedWindow("My Image");
imshow("My Image", image);
waitKey(5000);
return 1;
}

.PRO file:

QT += core
TARGET = opencv
CONFIG += console
CONFIG -= app_bundle
TEMPLATE = app
SOURCES += main.cpp
INCLUDEPATH += C:/opencv/build_with_Qt/debug/include
LIBS += -LC:/opencv/build_with_Qt/debug/lib \
-lopencv_core244d\
-lopencv_highgui244d\
-lopencv_imgproc244d\
-lopencv_features2d244d\
-lopencv_calib3d244d
2013-03-09 06:23:34 -0600 answered a question opencv qt creator integration error

This is the error message i get in qt creator

image description

2013-03-07 22:53:32 -0600 commented answer opencv qt creator integration error

I have included the path and libraries in my .pro file but i get a compiled error at where i include the libraries(Parse error[]). Please what do i do next

2013-03-06 23:40:23 -0600 asked a question opencv qt creator integration error

Hello everyone, I'm totally new to opencv and have installed the version 2.4.3 on windows 7 but for weeks now i'm finding difficulties linking its libraries in qt creator.

Please i need how to do it the right way because i'm totally frustrated.


EDIT

This is the error message i get in qt creator

image description