+ 1

How to write a program for detection of shapes such as square,rectangle,triangle etc using python

22nd Jan 2018, 10:05 AM
Samrudh MK Acharya
Samrudh MK Acharya - avatar
10 Answers
+ 2
shapes such as square,rectangle,triangle
22nd Jan 2018, 10:11 AM
Samrudh MK Acharya
Samrudh MK Acharya - avatar
+ 2
The usual solution could be a feed forward neural network. If that is not what you are looking for, you could simplify colors in the image and the search for straight lines of similar colors. Then with these lines, check if their extreme points are nearby enough that they can be considered to be part of the same polygon and the with the angles they have infer the polygon. This process complicates if you the polygons cam be in 3D. This solution is far more complicated than a NN.
22nd Jan 2018, 11:23 AM
spcan
spcan - avatar
+ 1
What input do you have?
22nd Jan 2018, 10:08 AM
BlazingMagpie
BlazingMagpie - avatar
+ 1
I mean, how is it formatted? Image? Array of points?
22nd Jan 2018, 10:15 AM
BlazingMagpie
BlazingMagpie - avatar
+ 1
image
22nd Jan 2018, 10:15 AM
Samrudh MK Acharya
Samrudh MK Acharya - avatar
+ 1
Any special features of that image? Like it having only 2 colors?
22nd Jan 2018, 10:18 AM
BlazingMagpie
BlazingMagpie - avatar
+ 1
no such features
22nd Jan 2018, 10:19 AM
Samrudh MK Acharya
Samrudh MK Acharya - avatar
+ 1
Thank you
22nd Jan 2018, 10:29 AM
Samrudh MK Acharya
Samrudh MK Acharya - avatar
0
by prediction
26th Apr 2018, 2:03 AM
azdin
azdin - avatar
- 2
Machine learning, probably simple neural network would be enough. I don't think there's feasible way to do it without one. If input data was simpler, it could be solved in simpler way. This topic is way out of scope of SoloLearn, so either you should check other sources or do something simpler.
22nd Jan 2018, 10:25 AM
BlazingMagpie
BlazingMagpie - avatar