There are two branches of Artificial Intelligence: connectivism and symbolism. The latter uses standard structures of programming for knowledge representation. Now read about the alternative.
This variant of the popular method of image processing has certain benefits.
If real-world objects may be represented as combinations of simple geometric shapes, we need a theory of how to detect such shapes on the picture.