Wednesday, November 07, 2007

Object Tracking using Camera and Lasers



Hey folks! Here's a little something I built about a month ago, but couldn't get enough time from college to write about it. Well, it's an object tracking camera panner which tracks any object moving in close range. Unlike my previous method for object tracking, this technique will track almost any moving object, irrespective of its color, using two lasers for edge detection. Depending on which laser is focused on the object, the computer decides which direction to drive. I came up with this idea after watching a video on SoR (Society of Robots) of a sumo robot, called Stampy. Stampy uses a single IR rangefinder for edge detection. Watch the video below:



I used lasers instead of IR rangefinders. My initial plan was to use a single laser..but then it occurred to me that I would have to shake the laser left/right continuously for tracking the trailing edge of an object. So, I decided to go with two lasers instead of one. :)

Well, I guess I've finally put my computer controlled stepper motor to some use. I might be using this object tracking technique in my future projects as it's working very nicely. If you're interested in controlling stepper motors with your computer, read my new article on Coding4Fun. Enjoy! :)

17 comments:

Anonymous said...

Excellent project.

kw

xHx said...

This is a pretty good idea. You must have thought of it yourself or must have been inspired from somewhere, but whatever it is, its good.

Here is something much more advance but the same idea, maybe useful to you for improvements.

http://www.k2.t.u-tokyo.ac.jp/fusion/LaserActiveTracking/index-e.html

ashvini said...

hi ashish
the laser tracker was neat.
i love electronics/pc interfacing too.

where are you located ? - if you are in the new delhi area,i'd like to synch up with you.
regards

avishvak at gmail dot com

Anonymous said...

thought I'd chime in, I like the work, well done. Just an idea to help conserve power, you could still only use one laser, and just use a beam spliter in order to get 2 dots. A piece of plexi-glass would suffice, unless you had an old CD/DVD drive you could salvage, some have small cubic beam splitters inside.

~2bits

Anonymous said...

That's a really good idea. cheers

John said...

This is John from societyofrobots.com. I see my Stampy has inspired you =)

Good job! I was already a fan of your webcam + laser idea already =)

Ashish Derhgawen said...

Hey John,

I'm glad you liked the idea. :)

Your website is the best. :D

Anonymous said...

hey ashish, what are you using BasicStamp or PIc, and if your using PIC, which version are you using.

Jasmine said...

Hey, I have a commercial application for this. If you want to possibly make some money with this idea... let me know.

Jasmine

Lemoj said...

Nice project! I am very interesting with your work... If you dont mind, i'dlike to know what programming language do you use for this project.. Thanks!

Ashish Derhgawen said...

@Lemoj: I used C# :)

RRC said...

Hi Ashish,
Pretty nifty app that you have made..I like it a lot.
I am trying something similar for a project,and I actually do tyriangluation using recognition of a laser spot using a camera,
I need some info from your side,Do you mind sharing?
Let me know of your comments
Rupin

Adel said...

Ur projects r awsome.Keep it up.
I'm very much interested in Robotics,Obstacle sensing,motion detection etc.
But i don't know where to start.Perhaps U can give me some guidelines or staarting point regarding Mechanical part as well as programming part.
Im a mechanical engineer student of BUET bangladesh. My eamil add. is adelbuet@gmail.com

omer said...

Outstanding brilliance Ashish!
Can u pls mail me the source code or at-least an application code for this project. My email address is : m_omer_iqbal@yahoo.co.uk
Why don't you couple your obstacle detecting RC car with this one to form an intelligent object tracking robot...
Thanks

Whestiner said...

hey ashish

i just want to ask you if you can email me the code of this?can you?

again, my email is umayam_hestermana@yahoo.com

thanks!

i am looking forward to your reply.

hester=)

lloyd angelo said...

Hi ashish,

Very neat job on this project. I'm interested in robotics but I'm not yet oriented in the programming part. Can I have a copy of the compilation code in this project just for my study? Please send it to mayurisama@yahoo.com.ph Thanks!

Anonymous said...

Hello



Hello, Ashish Derhgawen. I'm Fusan, Nice to meet you. my English writing was not good.



I like your project very much. Laser Guided Camera Panner, Object Tracking using Camera and Lasers.



How did you get it to search for the brightest pixel and return this to your program?



For Laser (it is LED, IR OR other). and you develop from C#, C++, VB or other?



Can you please send me the Source code to my email: tuinui-phoenix@hotmail.com



thanks so much