+ 1
How to write a program for detection of shapes such as square,rectangle,triangle etc using python
10 ответов
+ 2
shapes such as square,rectangle,triangle
+ 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.
+ 1
What input do you have?
+ 1
I mean, how is it formatted? Image? Array of points?
+ 1
image
+ 1
Any special features of that image? Like it having only 2 colors?
+ 1
no such features
+ 1
Thank you
0
by prediction
- 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.