Object tracking with Arduino and MyRobotLab

01_cup_tracking.png

     Hi guys.

     One month ago I ordered two $1 webcams from eBay for future projects with some vision functions. Last week I received those items and I was thinking about what to do with this. I remembered that some time ago GroG told me about your software, and then I resolved to try something with it. Taking a look at myrobotlab.org I found this tutorial about tracking.

     Before I continue I just would say that my intention with this post is only to share my impressions about MyRobotLab and tracking service, since a great walkthrough is given in the above cited tutorial.

     Well, after looking the tutorial and with some help from GroG the things go easy.

     What I did was join my homemade servo brackets and attach it to a Tamiya plate, hot glue to this a cardboard face with webcams, one servo attached to Arduino pin 3 and other to Arduino pin 11 then upload to Arduino the MRLComm file, run on Python the code below and.... TADAAAA!!!!! It's working like I seen on the tutorial!

    

     Python code

 

tracker = Runtime.createAndStart("tracker","Tracking")

tracker.setRestPosition(90, 90);

tracker.setSerialPort("COM3");

tracker.setXServoPin(3);

tracker.setYServoPin(11);

tracker.setCameraIndex(2);

 

tracker.initTracking();

tracker.initControl();

tracker.initInput();

 

tracker.trackLKPoint();

 

 

     In my video you can see the cardboard face guy tracking my Mario's Mushroom cup.

 

 

    

    

05_mrl.jpg

    

    

 

 

 

 

 

mrl_window.png

 

     One great job that works with MyRobotLab is the amazing project InMoov, which shows the power of this software.

     I still have many features to discover with other services, for example, face detection, color segmentation, speech recognition and many others, but it's been a great new experience and also discovering the Python language, that is new to me.

     I think this is a great platform to create multi-task and more sofisticated robots.

     When I progress into this tool, I'll post here my discoveries.

     P.s.: I'll add more pics later, if my internet allows me. Just added some more pics (04/05/2013).

https://www.youtube.com/watch?v=kQ8pkaK54iw

Yeah, Python is immensely

Yeah, Python is immensely powerful

hello

hello dickel

i am french from france and i juste find your projet

could you tell us where have you buy your webcam

link? for buy same

i think your projet is nice for my robot

http://romeorobot.blogspot.fr/search?updated-min=2013-01-01T00:00:00-08:00&updated-max=2014-01-01T00:00:00-08:00&max-results=7

 

best regard amby

 

Hi again!I’ve bought the web

Hi again!

I’ve bought the web cams from eBay… since it was sometime ago, I don’t have the link. But I’ve paid for each just $ 1 plus shipping costs.

One more time, your project is amazing! And this tracking service it’s very cool to add to an humanoid.