Microcontroller › 8051 › image recongnition using matlab › Shape identification in matlab
September 30, 2010 at 9:55 am
#5070
Anonymous
Guest
Vinod
Once you have identified the object.. find its area (A) and perimeter (P) which is fairly easy to calculate.
Compute the ratio : R = P2 / A
If R comes out to be around 4*pi (=12.56), then the surface is sphere otherwise its a cube.