Society of Robots - Robot Forum
Software => Software => Topic started by: kasundinesh on June 21, 2009, 11:43:53 AM
-
hi,
I am planning to build a robot that able to identify simple shapes(circle, triangle, rectangle ). I am using CMU cam.
I think it will correct if i use Line mode. Can anyone help me with some source codes and methods to do this. I am a little bit confused in line mode. i didnt understand how can i manage the data sending in line mode of CMU cam.
thank you
-
For identifying shapes you'll need image analysis techniques and those are quite computational intensive. You need to do segmentation on your frames (and you somehow need to automatically find the threshold and that's not simple), labeling eventually and the simple stuff involve just the calculation of surface and perimeter. This is the easiest way to tell apart a circle from a square (and maybe even a triangle!).
The more complex method use shape descriptors (there are about 9 of them I think) and they work really great (they're invariant to rotation, scaling, translation etc). The problem is that again, it's a little too tough on the MCU because you'll have to compute multiple order statistical moments.
If you really wanna do it I'll help you out with the algorithms.
-
Hay thankz buddy, i really appreciate you for replying.i also thought to identify shapes by counting the area. but i m using CMU cam2. i think to use line mode of that cam. manual says in line mode, we can get a binary image of a given color.but i m confused with that data. i only tested it one time using hyper terminal. if u can, please explane about line mode of CMU CAM.i try to finish the mechanical part these days.soon i ll post some pic s.
thankz
-
hi,
ahh CMUcam, thats my area. What you'll have to do is Dump Frame into you microcontroller, basically giving you access to every single pixel. Then you can figure out everything else. You'll know the color of every single pixel.
-
hi,
thankz for replying. i read about the frame dumping in cmu cam manual. but i dont know weather mcu can handle those data. do you have any tutorials? i already tried shape recognition by using Nokia N70. it works. i am going to interface the MCU via bluetooth. code is still under developing. soon i will post it. please send me some tutorials/cods in CMU cam to this purpose.
thank you