Saturday, May 14, 2011

Relief ;-)

Completed my final year project through many difficulties. Thanks a lot for every one who helped me in various ways. :)

After my exams (from next month), I'll surely share the knowledge gained throughout the project, with you all.

Have a nice Day!!!

Sunday, January 23, 2011

Undefined reference to CVKnearest...... Issue.

Hi....


People who are using OpenCV may come across this issue. This Quick and Brief post is to help those who are still struggling with this compilation problem.


Issue is "undefined reference to `CvKNearest::CvKNearest(CvMat const*, CvMat const*, CvMat const*, bool, int)' collect2: ld returned 1 exit status"

In my case, I am using OpenCV with Qt. 

Things to be checked are,
  • header file ml.h should be in your source file.
  • ml library path and the ml library should be in your project properties (if you are using Visual Studio) or in .pro file (if using Qt).
You have done above steps and still getting the same issue.. :S What should you check next ??????

This is where I got stuck. I got the exact help from OpenCV community. What he said was 
If you are trying to use with GCC the precompiled binaries of OpenCV for Windows, it won't work for C++ functionality. Have you recompiled OpenCV with GCC? C++ binaries produced by MSVC and GCC and not compatible against each other "

In my case, I had used MinGW for compiling. Now I am using MSVC and problem solved. :)


This URL helps to add MSVC compiler to a Qt project.
http://doc.qt.nokia.com/qtcreator-snapshot/creator-project-qmake.html

Have a nice DAY!!! :)

Saturday, January 1, 2011

2011

Wish you all a Happy New Year 2011. May all your dreams come true. :)

Friday, December 24, 2010

New Look

I gave a new look to my blog today.. he he ;-)

Wednesday, December 22, 2010

How to link OpenCV with Qt

Hi... after a long time!!!.

These days, I am learning OpenCV and Qt programming for my undergraduate project. So, I thought to share my knowledge with you all.

I was struggling a lot to link both OpenCV and Qt as a beginner. Finally, I found these posts which are great.



This is how my project's .pro file looks... (OS - Windows 7)

INCLUDEPATH += "C:\OpenCV2.1\include\opencv" \
"C:\OpenCV2.1\src\cv" \
"C:\OpenCV2.1\src\cvaux" \
"C:\OpenCV2.1\src\cxcore" \
"C:\OpenCV2.1\src\highgui" \
"C:\OpenCV2.1\src\ml"

LIBS += -L"C:\OpenCV2.1\lib" \
-lcv210 \
-lcvaux210 \
-lhighgui210 \
-lcxcore210

Here cv210, cvaux210 and so on..... are the names of lib files in your opencv lib folder.

Very simple thing... but as a beginner, I know how I struggled with this.. So, this post is for those who are new to OpenCv with Qt Programming.

Have a nice day!!! :)



Thursday, October 7, 2010

Nice :)

Nice thoughts..but, not by me. :P

"Have I told you yet...
How much you mean to me...
How I told you yet
About all the happiness you bring!
Have I told you yet...
That you mean the world to me!
Just in case I haven't...
I want you to know that...
You're the best thing
that's ever happened to me!"


Quoted from a B'day Card.
Really nice :-)

Sunday, May 23, 2010

Exams Over... :)

Exams are over for this semester. Feel comfort now. But, it was not much easy.

Only one year remains to complete my degree. And it is the hardest part. Everyone must work hard to cross this stream.

Good Luck everyone :)

I have a dream, a song to sing
To help me cope with anything
If you see the wonder of a fairy tale
You can take the future even if you fail
I believe in angels
Something good in everything I see
I believe in angels
When I know the time is right for me
I'll cross the stream - I have a dream........
By Swedish pop group ABBA.

Amazing Products