PDA

View Full Version : image processing in Qt4 with opencv library



jakr13
2nd January 2013, 16:25
hi,

I am newbie for Qt and i wrote an image processing program that opens an image, converts it into grayscale image, then converts the grayscale image into binary thresholded image, erodes the binary image, dilates the eroded image, finds the connected components and then labels it in visual studio 2010 with opencv231 and i was successful in that.

Now i have to create a GUI for all the processes which i said above using Qt like i have to create six push buttons and when i push a button, an image should be opened and when i push the next pushbutton the image should be converted into grayacale image and it goes on. I managed to write open an image if i push a button and after that when i am converting it into grayscale image and building it, i am alwayz getting an error like this

Starting D:\qtproject\gui\debug\gui.exe...
The program has unexpectedly finished.
D:\qtproject\gui\debug\gui.exe exited with code -1073741515

i am not sure where is the problem, either with my program or system variables. can anyone help me out with this? because i have very less time to implement this.

i have attached my code below.

thanx

ChrisW67
2nd January 2013, 19:51
Starting D:\qtproject\gui\debug\gui.exe...
The program has unexpectedly finished.
D:\qtproject\gui\debug\gui.exe exited with code -1073741515

-1073741515 = 0xc0000135 The application failed to initialize properly

Your program is running in an environment where it cannot find one or more of the C++ runtime, Qt or OpenCV DLLs. Ensure that these items can be found in the PATH of the running process or in the same directory as the executable.

jakr13
3rd January 2013, 21:18
thanx for your reply.

can you please tell me in detail wat i have to do? because i am new to this and i am not good in softwares.

\\jakr13

ChrisW67
4th January 2013, 06:40
Have you tried searching this forum for your "1073741515"? It's not uncommon.

Deploying an Application on Windows: Creating the Application Package
Dependency Walker (http://www.dependencywalker.com/)
Dynamic-Link Library Search Order (Windows) (http://msdn.microsoft.com/en-us/library/windows/desktop/ms682586%28v=vs.85%29.aspx)