Monday, July 12, 2010




For the whole of my last semester, I was totally uninterested in one of my subjects, that was Artificial Intelligence. Although before the starting of this semester, this was the subject, I was just waiting for. So what was the reason behind such a change in mindset. Well let me explain a little...
The AI starts with "Making the computers think...."
I don't quite understand. What do they mean by think? We do think... What's that...? Isn't that a computation itself. Isn't that something that our mind computes as per our motor nerve responses, and our earlier experiences, which can be thought of a database. So why do we say, "Making the computers think" Why not just "compute in a way human minds can do". I am not advocating computers here. I am just saying, that it's just a thought of people, however of a larger group, but why it has to be implemented on everyone . Why everyone have to study the "Making the computers think..." thing.


So after thinking so long over it, and getting some "Not So Good" grades in my AI subject, I am left with nothing else to say.

Thursday, July 8, 2010

Configuring Visual Studio 2008 with OpenCV2.0

You will find a lot of tutorials on the web telling you how to configure Visual Studio 2008 with OpenCV2.0. One of them was this. I bookmarked it, but still for two days I had been trying different IDEs and a lot of tools... and so many things. But the truth was that I was not able to run a single program on it. At first I thought that it's a bad idea to change from JMF to OpenCV but some how, I got out of these problems.
I got an error that was error PRJ0003 : Error spawning rc.exe
The rc.exe seems to be the resource compiler and it was missing in my visual studio. Some blogs told me to reinstall the Visual studio, Of-course that didn't worked. some even told to reinstall windows, but that was a really bad suggestion. There was One suggestion about installing SDK also. So I did that, and I installed Visual C++ 2008. As the file missing was related to Visual C++ so I thought reinstalling it may solve the problem. And really it was solved.

The next part was telling the linker about the files to be include.
Well the files that they tell over here don't seem to exist for me.
Also I tried these two blogs : http://blog.aguskurniawan.net/post/OpenCV-210-with-Visual-Studio-2010.aspx
and
http://uowteaminvincible.wordpress.com/2010/01/09/getting-started-with-opencv-in-microsoft-visual-studio-2008-in-windows-vista/

and in case of the linker input the files I included were in C:\OpenCV2.0\build\lib\Debug\ eg.
C:\OpenCV2.0\build\lib\Debug\cv200d.lib

Also the program given at one of above resources have to include some header.
The edited program that was running is as below:
------------------------------------------------------------------
#include
#include "stdafx.h"
#include

int main( int argc, char** argv )


{


IplImage* img = cvLoadImage( "c:/temp/monas.jpg",1 );


cvNamedWindow("Monas", CV_WINDOW_AUTOSIZE );


cvShowImage("Monas", img );


cvWaitKey(0);


cvReleaseImage( &img );


cvDestroyWindow("Monas");


}

------------------------------------
So...
Now i am ready to switch to OpenCV.
:)
It Feels Good.

Friday, July 2, 2010

Virus Everywhere

Well while posting this, I just got out of a great virus attack. This is a common thing now a days, when your anti-virus program will start beeping up, but it was kind of a new experience for me.
These viruses were removed by MSE(Microsoft Security Essentials) however, there were some problems that were created by those viruses, which I was still facing, they were
1. Task Manager not working
2. Command Prompt not working
3. Mozilla Firefox and Google Chrome not working
4. Also many other programs were not working....

So I got this tool, called RRT Sergiwa Antivirul Toolkit, and this has to be run in safe mode,
So I used it in safe mode after a restart and got all my problems solved. :)