Miscellaneous › Others › DIP.. shape detection › Hello Shah Thanks for
May 10, 2014 at 8:01 am
#11715
Participant
Hello Shah
Thanks for reply. I have been doing some research on this. I have extracted rgb, I am have a problem with figuring the shape ratios. I need to detect like nine shapes in my test image and put a number at the centre of the shape. Like all squares with number one in centre, all trinagles number two in centre and up to nine for nine shapes. I want to know if you can help me with what ratios represent what shape. Output image will be black background and shapes in white.
if abs(allRatios-1.12) < 0.2
shape = ‘triangle’;