Thursday, December 16, 2010

Image Processing using Open CV (C/C++ languages)


While doing my M.Tech course, in Mobile Robotics paper I faced some problems. This course requires image processing but I do not know anything about it. So I search on net for simple code to learn OpenCV (Image Processing C library) and started my work. It takes so many days to learn the simple things. So here I am uploading some simple and useful code whom I tested and use it  on my Robotics project. Hope it is useful for you all & save lot of your time. Because I think if someone give me this all code previously then it may saved my time.

I do not claim that these code were done by me only. Some part of  them are copied from net and then I modified them according to my requirement. JUST HOPE THAT IT WILL SAVE YOUR VALUABLE TIME if you are working on project like me in past.

OpenCV using C/C++

1) Simple code to Load Images from file:  load_image.c
2) To load Video : video-test.cpp
3)Capture an image from live camera & then save it to your PC save_image.c
4)Detect Circle using live camera & crop & save each image separately: imgCode.cpp
5)Search template in a video(Live) & then write the result in a file:
searchImage.zip
6) Red Ball search in live video: ball-track.c





**Later i will add more. if it is helpful leave a comment..here..!



Wednesday, July 14, 2010

FUNNY thing about Computer

MICROSOFT: 
Most Intelligent Customers Realize Our Software Only (for) Fools  (&) Teenagers. 

WINDOWS: 
Will Install Needless Data On Whole System

PCMCIA : 
People Can't Memorize Computer Industry Acronyms

DOS: 
Defective Operating System

ISDN:   
It Still Does Nothing

MACINTOSH:    Most Applications Crash; If Not, The Operating System Hangs

Some Funny Quotes:

"If at first you don't succeed; call it version 1.0"

"The Internet: where men are men, women are men, and children are FBI  agents."

" UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity"

"Life would be so much easier if we only had the source code."

"To go forward, you must backup."

 "Difference between a virus and windows ? Viruses rarely fail."




Tuesday, July 13, 2010

TALKING LINUX MACHINE... (tested in Ubuntu)

Hello,

You can play with your linux machine. It can talk for you what you want. May be   you know the Linux utility espeak. It can be used to listen the voice as we want. if you type espeak "hi buddy " , in the terminal your computer will speak it.

Another funny thing you can do it with it...! if you append the following code to the espeak "Thanks for login"  to .bash_login inside your home directory( /home/your_name/.bash_logout). Then whenever you login via terminal(not GUI), it will speak like that.

Also you can add espeak "Open terminal" or any message you want it to /home/your_name/.bashrc file. Next see the result while opening new terminal.

However there various place that you can add it and make your Linux machine talk............!